peterwkc <[email protected]> writes: > Dear All, > > I would like to setup my openbsd as router. > /etc/hostname.fxp0 > up > > /etc/hostname.pppoe0 > pppoedev fxp0 authproto pap authname "" authkey "" up > dest 0.0.0.1 > !/sbin/route add default -ifp pppoe0 0.0.0.1 > > > Not able to get a connection. What wrong with it? > > > > -- > Sent from: http://openbsd-archive.7691.n7.nabble.com/openbsd-user-misc-f3.html > Hello,
I've already had the similar (same?) issue with PPPoE on OpenBSD 6.5 and 6.6 when I tried to simply use the example from man pppoe(4). After looking through source code I thought it's like needed configuration structs are not fully populated (missed dest value), as if it were 2 different commands (inet 0.0.0.0… and dest 0.0.0.1), but looks like it wants both address and dest being set during one single configuration line (command). So I've just used slightly different config format, with both address and source set in one single line: #cat /etc/hostname.pppoe0 inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev cnmac0 authproto chap authname '<login> authkey '<password> up !/sbin/route add default -ifp pppoe0 0.0.0.1 And it works very well for me! So I hope this would help you tooo. P.S. Also would be nice if anyone with knowledge of C language look once more at this example from man pppoe(4) and verified it against current pppoe initialization code… best regards, -- Andrey Korobkov

