Up to OpenBSD 3.9 the following config is what one would use in /etc/hostname.pppoe0 if there's also /etc/hostname.rl1.
pppoedev rl1 !/usr/sbin/spppcontrol \$if myauthproto=chap myauthname=username \ myauthkey=password !/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 !/sbin/route add default 0.0.0.1 up
The current branch and probably OpenBSD 4.0 will have an updated config which is more sane. As per Reyk Floeter's email the following config changes occured.
Date: Wed, 17 May 2006 06:33:24 +0200 From: Reyk FloeterTo: misc@openbsd.org Cc: tech@openbsd.org Subject: in-kernel pppoe configuration with ifconfig hi, the kernel-based pppoe(4) implementation uses the sppp(4) network layer for PPP connectivity, configuration and status reporting. this has been previously configured with the spppcontrol(8) utility, as mentioned in the manual page of the pppoe driver: ---/etc/hostname.pppoe0--- pppoedev ne0 !/sbin/ifconfig ne0 up !/usr/sbin/spppcontrol \$if myauthproto=pap myauthname=testcaller \ myauthkey=donttell !/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0xffffffff !/sbin/route add default 0.0.0.1 up ---snap--- i just commited some bits for ifconfig(8) to replace the spppcontrol functionality. users running -current and kernel pppoe should try to update their configuration, accordingly. ---/etc/hostname.pppoe0--- inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev ne0 \ authproto pap authname testcaller authkey donttell up !/sbin/route add default 0.0.0.1 ---snap--- and ---snip--- $ ifconfig pppoe0 pppoe0: flags=8851 mtu 1492 dev: fxp2 state: session sid: 0x496 PADI retries: 6 PADR retries: 0 time: 01:14:47 sppp: phase network authproto pap authname "XXX" groups: pppoe egress inet6 fe80::203:1dff:fe01:a31f%pppoe0 -> prefixlen 64 scopeid 0xa inet 82.xx.xx.xx --> 0.0.0.1 netmask 0xffffffff ---snap--- reyk -- /* .vantronix|secure systems - (research & development) * reyk floeter - friendly known free software engineer * reyk@vantronix.net - http://team.vantronix.net/reyk/ */