Hi, On Sat, 8 Feb 2025 01:37:16 +0200 Kapetanakis Giannis <bil...@edu.physics.uoc.gr> wrote: > Hi, > > I'm trying to setup a new router with pppoe connection. > Using the same settings from a linux pc or a microtik switch with > routerOS, I can get the pppoe connection up with an IP address from > the provider. > > From OpenBSD I'm having problems in the ipcp stage. Authentication is > ok. > > I have a continuous (very fast) loop of > Feb 8 01:02:37 /bsd: pppoe0: ipcp parse opt values: still need > hisaddr send conf-nak > > debugging shows that I get a remote peer IP, but local client does not > like it. > > Feb 8 01:02:37 /bsd: 10.106.108.100 [not agreed] send conf-nak > > My config is > inet 0.0.0.0 255.255.255.255 NONE > pppoedev vport3 authproto chap authname 'username' authkey 'pass' > peerproto none > dest 0.0.0.1 > inet6 eui64
I could repeat the problem with this config. It seems /etc/netstart assumes the "dest" line is the next line of the "inet" line. So if you move the "dest" line to the next of "inet", the problem will be solved. Otherwise, the dest address does not seem to be configured properly. > Adding some extra debugging in if_spppsubr.c:2435 I see that: > desiredaddr [10.106.108.100] > hisaddr [0.0.0.0] <--- is this ok? > IPCP_HISADDR_DYN is NOT set <--- is this ok? > > adding dest 10.106.108.100, does not change anything > > If I manually set IPCP_HISADDR_DYN, then I'm getting a much slower > loop of the following, but no IP. > > Feb 8 01:14:52 /bsd: pppoe0: ipcp input(starting): <conf-req id=0x5 > len=10 > 03-06-0a-6a-6c-64-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00> > Feb 8 01:14:52 /bsd: pppoe0: BILIAS: desiredaddr [10.106.108.100] > Feb 8 01:14:52 /bsd: pppoe0: BILIAS: hisaddr [10.106.108.100] > Feb 8 01:14:52 /bsd: pppoe0: BILIAS: IPCP_HISADDR_DYN is set > Feb 8 01:14:52 /bsd: pppoe0: BILIAS: desiredaddr != 0 > Feb 8 01:14:52 /bsd: pppoe0: ipcp parse opts: address > Feb 8 01:14:52 /bsd: pppoe0: ipcp parse opt values: address > 10.106.108.100 [ack] send conf-ack > Feb 8 01:14:52 /bsd: pppoe0: ipcp output <conf-ack id=0x5 len=10 > 03-06-0a-6a-6c-64> > Feb 8 01:14:52 /bsd: pppoe0 (8864) state=3, session=0x26d output -> > ac:de:48:00:00:01, len=18 > Feb 8 01:14:57 /bsd: pppoe0: lcp input(opened): <echo-req id=0x2 > len=8 > 51-33-33-bd-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00> > Feb 8 01:14:57 /bsd: pppoe0: got lcp echo req, sending echo rep > Feb 8 01:14:57 /bsd: pppoe0: lcp output <echo-reply id=0x2 len=8 > 92-c3-0a-96> > Feb 8 01:14:57 /bsd: pppoe0 (8864) state=3, session=0x26d output -> > ac:de:48:00:00:01, len=16 > > Feb 8 01:15:02 /bsd: pppoe0: ipcp input(starting): <conf-req id=0x6 > len=10 > 03-06-0a-6a-6c-64-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00> > Feb 8 01:15:02 /bsd: pppoe0: BILIAS: desiredaddr [10.106.108.100] > Feb 8 01:15:02 /bsd: pppoe0: BILIAS: hisaddr [10.106.108.100] > Feb 8 01:15:02 /bsd: pppoe0: BILIAS: IPCP_HISADDR_DYN is set > Feb 8 01:15:02 /bsd: pppoe0: BILIAS: desiredaddr != 0 > Feb 8 01:15:02 /bsd: pppoe0: ipcp parse opts: address > Feb 8 01:15:02 /bsd: pppoe0: ipcp parse opt values: address > 10.106.108.100 [ack] send conf-ack > Feb 8 01:15:02 /bsd: pppoe0: ipcp output <conf-ack id=0x6 len=10 > 03-06-0a-6a-6c-64> > Feb 8 01:15:02 /bsd: pppoe0 (8864) state=3, session=0x26d output -> > ac:de:48:00:00:01, len=18 > > Why IPCP_HISADDR_DYN is NOT set even if I add dest 0.0.0.1 which > suppose to do that? > Even with this, something else must also be missing either in my > config or in the code. > > Thanks for any help on this, > > G > ps. from linux I see this: > > Feb 8 01:18:59 pppd[7756]: local IP address xx.xx.xx.xx > Feb 8 01:18:59 NetworkManager[7756]: local IP address xx.xx.xx.xx > Feb 8 01:18:59 NetworkManager[7756]: remote IP address 10.106.108.100 > Feb 8 01:18:59 NetworkManager[7756]: primary DNS address > xx.xx.xx.xx > Feb 8 01:18:59 NetworkManager[7756]: secondary DNS address > xx.xx.xx.xx > Feb 8 01:18:59 pppd[7756]: nm-ppp-plugin: ip-up event > Feb 8 01:18:59 pppd[7756]: remote IP address 10.106.108.100 >