Closed brianjmurrell closed 4 years ago
Can you set odhcpd loglevel to 7 in dhcp config and repeat the test ? Can you attach the output of logread ?
Can you set odhcpd loglevel to 7 in dhcp config and repeat the test ?
Sure. I'm not sure how long it takes to regress so I will try to keep an eye on it.
Can you attach the output of logread ?
Did you want that after setting loglevel to 7 or at it's current? If the latter: logread.txt
Hrm. loglevel 7 is going to fill my disk by the time the problem reproduces itself:
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 0 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 0 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 0 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 0 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 0 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 1800 seconds on br-lan
Jan 28 09:31:27 gw odhcpd[25145]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Jan 28 09:31:27 gw odhcpd[25145]: Using a RA lifetime of 0 seconds on br-lan
And, even with loglevel
set back to 0, odhcpd
is pegging all available CPU on my router.
Any ideas here? The CPU pegging is most troubling as it cripples the router.
Do you observe this behavior on master or on openwrt-18.06 ?
On 18.06.
Checking the logread traces it looks like a message storm is created by a device (IPv6 address fe80::21f:c6ff:fec4:926a) which keeps sending RS messages in response to unicast RA messages.
Mon Jan 28 07:17:49 2019 daemon.debug odhcpd[9314]: Received 16 Bytes from fe80::21f:c6ff:fec4:926a%br-lan
Mon Jan 28 07:17:49 2019 daemon.info odhcpd[9314]: Address 2607:1234:5678:abcd::1 (prefix 60, valid 535045) not suitable as RA prefix on br-lan
Mon Jan 28 07:17:49 2019 daemon.info odhcpd[9314]: Address 2001:1234:abcd:a700::1 (prefix 60, valid 539810) not suitable as RA prefix on br-lan
Mon Jan 28 07:17:49 2019 daemon.warn odhcpd[9314]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Mon Jan 28 07:17:49 2019 daemon.info odhcpd[9314]: Using a RA lifetime of 0 seconds on br-lan
Mon Jan 28 07:17:49 2019 daemon.debug odhcpd[9314]: Sent 64 bytes to fe80::21f:c6ff:fec4:926a%br-lan
Any idea which device is continuously sending RS?
@dedeckeh Apologies. I didn't know this was waiting for a response from me.
The device storming the RSes was NetworkManager on EL7.
References: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/179 https://mail.gnome.org/archives/networkmanager-list/2019-May/msg00004.html
Thx for the update and the references
Per #119, I have created multiple logical interfaces and am using the
prefix_filter
to advertise my IPv6 prefixes with different priorities:And this works for a while after starting
odhcpd
but then at some point it stops advertising some of the prefixes:As you can see, two of the entries above have no prefix or route information in them. If I simply restart
odhcpd
all of the entries in the RA will have prefixes and routes.