Using fe80:: as gateway is not be a good idea since by default
netstart(8) insert:

fe80::/10          ::1          UGRS    0  0 32768     8 lo0  

As you can see this route is attached to lo0 *and* has RTF_GATEWAY.

This contradicts what rt_setgwroute() wants and make the kernel unhappy,
diff below fixes that.

ok?

Index: pppoe.4
===================================================================
RCS file: /cvs/src/share/man/man4/pppoe.4,v
retrieving revision 1.31
diff -u -p -r1.31 pppoe.4
--- pppoe.4     1 Apr 2016 05:47:34 -0000       1.31
+++ pppoe.4     15 Aug 2016 09:00:56 -0000
@@ -102,7 +102,7 @@ inet 0.0.0.0 255.255.255.255 NONE \e
 dest 0.0.0.1
 inet6 eui64
 !/sbin/route add default -ifp pppoe0 0.0.0.1
-!/sbin/route add -inet6 default -ifp pppoe0 fe80::
+!/sbin/route add -inet6 default -ifp pppoe0 fe80::%pppoe0
 .Ed
 .Pp
 The physical interface must also be marked

Reply via email to