Hi there,
I've written a patch to fix two subtle errors in the example file for
/etc/hostname.pppoe0 that prevent it from working.
Placing inet6 eui64 before the PPPoE parameters inadvertently brings
the interface up, after which the parameters can't be changed.
route add default fe80:: doesn't work either unless the -inet6 option
is specified, because incompatible address families arise.
Cheers,
Delan Azabani
Index: share/man/man4/pppoe.4
===================================================================
RCS file: /cvs/src/share/man/man4/pppoe.4,v
retrieving revision 1.28
diff -u -p -u -r1.28 pppoe.4
--- share/man/man4/pppoe.4 16 Feb 2015 16:38:54 -0000 1.28
+++ share/man/man4/pppoe.4 6 Aug 2015 17:30:00 -0000
@@ -96,13 +96,13 @@ This all is typically accomplished using
file.
A typical file looks like this:
.Bd -literal -offset indent
-inet6 eui64
inet 0.0.0.0 255.255.255.255 NONE \e
pppoedev em0 authproto pap \e
authname 'testcaller' authkey 'donttell' up
dest 0.0.0.1
+inet6 eui64
!/sbin/route add default -ifp pppoe0 0.0.0.1
-!/sbin/route add default -ifp pppoe0 fe80::
+!/sbin/route add -inet6 default -ifp pppoe0 fe80::
.Ed
.Pp
The physical interface must also be marked