Some ISP’s establish connections with their customers' networks through PPPoE. I recently setup an OpenBSD 6.6 router which required PPPoE. This is my story.
If necessary, configure your system to use your preferred DNS nameservers.
A common way of connecting to your ISP’s network is through DHCP. DHCP is capable of providing your system with DNS nameservers according to RFC 2132 and RFC 2937. To my knowledge, this capability is absent from the PPPoE Specification. If you are switching from DHCP to PPPoE, be mindful that you may need to set your nameservers if you have not explicitly done so.
nameserver 22.214.171.124 (1) nameserver 126.96.36.199 (2)
The configuration is fairly straightforward.
I use a hostname.if file to initialize the PPPoE interface when the system boots.
This example is very similar to the jumbo frames example provided in the PPPOE(4) manpage.
Because this is a router, it requires more than the basic setup. PPPoE has an overhead and the incoming LAN connections will not be aware of this.
My modifications to the example are as follows.
pap as the authentication protocol.
Second, only IPv4 options are present since my ISP doesn’t support IPv6.
inet 0.0.0.0 255.255.255.255 NONE mtu 1500 \ (1) pppoedev em0 authproto chap \ (2) authname 'username' authkey 'password' up dest 0.0.0.1 !/sbin/route add default -ifp pppoe0 0.0.0.1
|1||Set the IP to
em0 interface must be up.
up mtu 1508
Start up the
sh /etc/netstart em0 pppoe0