Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHCP(v6) rebind fails after carrier loss #314

Open
zogtogus opened this issue Apr 11, 2024 · 2 comments
Open

DHCP(v6) rebind fails after carrier loss #314

zogtogus opened this issue Apr 11, 2024 · 2 comments
Labels

Comments

@zogtogus
Copy link

zogtogus commented Apr 11, 2024

Hi,

I am running dhcpcd (10.0.6-r2) on gentoo linux router connected to a DSL link (dsl modem as a bridge), WAN v6 prefix provided using SLAAC, (static) LAN v6 prefix delegated using DHCP-PD. Once the DSL links loses carrier, dhcpcd does not recover once carrier up again, please see the logs below.
dhcpcd rebind fails, it needs 'dhcpcd -k' prior dhcpcd rebind works.

Cheers,
Ales

Apr 10 07:59:11 ns dhcpcd[23619]: ppp0: carrier lost
Apr 10 07:59:11 ns dhcpcd[23619]: ppp0: executing: /lib/dhcpcd/dhcpcd-run-hooks NOCARRIER
Apr 10 07:59:11 ns dhcpcd[23619]: enp2s0: deleting address 2a00:xxxx:xxxx:xxxx::1/64
Apr 10 07:59:11 ns dhcpcd[23619]: enp2s0: deleting route to 2a00:xxxx:xxxx:xxxx::/64
Apr 10 07:59:11 ns dhcpcd[23619]: ppp0: executing: /lib/dhcpcd/dhcpcd-run-hooks EXPIRE6
Apr 10 07:59:11 ns dhcpcd[23619]: ppp0: deleting address 2a00:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64
Apr 10 07:59:11 ns dhcpcd[23619]: ppp0: deleting route to 2a00:xxxx:xxxx:xxxx::/64
Apr 10 07:59:11 ns dhcpcd[23619]: ppp0: deleting default route via fe80::xxxx:xxxx:xxxx:xxxx
Apr 10 07:59:11 ns dhcpcd[23619]: ppp0: executing: /lib/dhcpcd/dhcpcd-run-hooks ROUTERADVERT
Apr 10 07:59:17 ns dhcpcd[23619]: ppp0: libudev: remove
Apr 10 07:59:17 ns dhcpcd[23619]: ppp0: interface departed
Apr 10 07:59:17 ns dhcpcd[23619]: ppp0: removing interface
Apr 10 07:59:17 ns dhcpcd[23619]: ppp0: executing: /lib/dhcpcd/dhcpcd-run-hooks DEPARTED
Apr 10 08:05:02 ns dhcpcd[23619]: ppp0: libudev: add
Apr 10 08:05:02 ns dhcpcd[23619]: ppp0: interface added
Apr 10 08:05:02 ns dhcpcd[23619]: ppp0: executing: /lib/dhcpcd/dhcpcd-run-hooks PREINIT
Apr 10 08:05:02 ns dhcpcd[23619]: ppp0: executing: /lib/dhcpcd/dhcpcd-run-hooks NOCARRIER
Apr 10 08:05:02 ns dhcpcd[23619]: ppp0: waiting for carrier
Apr 10 08:05:02 ns dhcpcd[23619]: ppp0: carrier acquired
Apr 10 08:05:02 ns dhcpcd[23619]: ppp0: executing: /lib/dhcpcd/dhcpcd-run-hooks CARRIER
Apr 10 08:05:03 ns dhcpcd[23619]: ppp0: IAID 70:70:70:30
Apr 10 08:05:03 ns dhcpcd[23619]: ppp0: IA type 25 IAID 00:00:00:02
Apr 10 08:05:03 ns dhcpcd[23619]: ppp0: delaying IPv6 router solicitation for 0.6 seconds
Apr 10 08:05:03 ns dhcpcd[23619]: ppp0: delaying DHCPv6 for LL address
Apr 10 08:05:03 ns dhcpcd[23619]: ppp0: soliciting an IPv6 router
Apr 10 08:05:03 ns dhcpcd[23619]: ppp0: delaying Router Solicitation for LL address
...
=> no v6 prefix obtained/delegated, needs dhcpcd -k or dhcpcd restart to restore IPv6 connectivity

@rsmarples
Copy link
Member

So it looks like IPv6 is not started due to the LL address being absent.
From the logs, dhcpcd didn't delete it, so what happened to it?
If you restart dhcpcd at this point does dhcpcd put it back or does something else? You haven't posted logs for that part.

@rsmarples rsmarples added the bug label Apr 13, 2024
@perkelix
Copy link
Contributor

@zogtogus ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants