Re: ipv6 RA stops working after upgrade to 9.0.1
Roy Marples
Wed Apr 22 15:41:50 2020
Hi Andrey
On 22/04/2020 13:42, andrey@xxxxxxxxxxxx wrote:
Hi Roy,
I’m running dhcpcd on arch linux and I’ve recently upgraded to 9.0.1. After
that, I can’t get ipv6 address assigned anymore, ipv4 seems to work. My logs:
---------
Apr 22 14:35:17 [683079]: dhcpcd not running
Apr 22 14:35:17 [683081]: dhcpcd-9.0.1 starting
Apr 22 14:35:17 [683081]: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' CHROOT
Apr 22 14:35:17 [683103]: spawned privileged actioneer on PID 683104
Apr 22 14:35:17 [683103]: chrooting to `/var/lib/dhcpcd'
Apr 22 14:35:17 [683103]: wan100: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Apr 22 14:35:17 [683103]: wan100: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks'
CARRIER
Apr 22 14:35:17 [683103]: DUID 00:01:00:01:26:30:a0:e4:92:a7:4a:49:1a:1b
Apr 22 14:35:17 [683103]: wan100: IAID ff:00:03:e8
Apr 22 14:35:17 [683103]: wan100: delaying IPv6 router solicitation for 0.6 seconds
Apr 22 14:35:17 [683103]: wan100: delaying IPv4 for 1.2 seconds
Apr 22 14:35:18 [683103]: wan100: soliciting an IPv6 router
Apr 22 14:35:18 [683103]: wan100: sending Router Solicitation
Apr 22 14:35:18 [683103]: ipv6nd_sendrsprobe: Bad file descriptor
Apr 22 14:35:18 [683103]: wan100: reading lease `/var/lib/dhcpcd/wan100.lease'
Apr 22 14:35:18 [683103]: wan100: discarding expired lease
Apr 22 14:35:18 [683103]: wan100: soliciting a DHCP lease
Apr 22 14:35:18 [683103]: wan100: sending DISCOVER (xid 0x25035d0e), next in 4.8
seconds
Apr 22 14:35:22 [683103]: wan100: offered 192.168.0.203 from 192.168.0.1
Apr 22 14:35:22 [683103]: wan100: sending REQUEST (xid 0x25035d0e), next in 3.0
seconds
Apr 22 14:35:22 [683103]: wan100: acknowledged 192.168.0.203 from 192.168.0.1
Apr 22 14:35:22 [683103]: wan100: probing address 192.168.0.203/24
Apr 22 14:35:22 [683103]: wan100: probing for 192.168.0.203
Apr 22 14:35:22 [683103]: wan100: ARP probing 192.168.0.203 (1 of 3), next in
1.6 seconds
Apr 22 14:35:22 [683103]: wan100: sending Router Solicitation
Apr 22 14:35:22 [683103]: ipv6nd_sendrsprobe: Bad file descriptor
Apr 22 14:35:23 [683103]: wan100: ARP probing 192.168.0.203 (2 of 3), next in
1.6 seconds
Apr 22 14:35:25 [683103]: wan100: ARP probing 192.168.0.203 (3 of 3), next in
2.0 seconds
Apr 22 14:35:26 [683103]: wan100: sending Router Solicitation
Apr 22 14:35:26 [683103]: ipv6nd_sendrsprobe: Bad file descriptor
Apr 22 14:35:27 [683103]: wan100: DAD completed for 192.168.0.203
Apr 22 14:35:27 [683103]: wan100: leased 192.168.0.203 for 3600 seconds
Apr 22 14:35:27 [683103]: wan100: renew in 1800 seconds, rebind in 3150 seconds
Apr 22 14:35:27 [683103]: wan100: writing lease `/var/lib/dhcpcd/wan100.lease'
Apr 22 14:35:27 [683103]: wan100: adding IP address 192.168.0.203/24 broadcast
192.168.0.255
Apr 22 14:35:27 [683103]: wan100: adding route to 192.168.0.0/24
Apr 22 14:35:27 [683103]: wan100: ARP announcing 192.168.0.203 (1 of 2), next in
2.0 seconds
Apr 22 14:35:27 [683103]: wan100: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' BOUND
Apr 22 14:35:29 [683103]: wan100: ARP announcing 192.168.0.203 (2 of 2)
Apr 22 14:35:30 [683103]: wan100: sending Router Solicitation
Apr 22 14:35:30 [683103]: ipv6nd_sendrsprobe: Bad file descriptor
Apr 22 14:35:30 [683103]: wan100: no IPv6 Routers available
---------
My config
---------
hostname
duid
persistent
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option interface_mtu
require dhcp_server_identifier
slaac hwaddr
noipv4ll
option dhcp6_name_servers
option dhcp6_domain_search
noipv6rs
debug
logfile /var/log/dhcpcd.log
allowinterfaces wan0 wan100
######################## WAN interface configuration #################
interface wan0
clientid "";
persistent
option rapid_commit
slaac hwaddr
ipv6only
nogateway
ipv6rs # enable routing solicitation to get the default IPv6 route
noauthrequired
######################## DOCSIS WAN interface configuration #################
interface wan100
nodhcp6
ipv6ra_autoconf
slaac hwaddr
nogateway
ipv6rs # enable routing solicitation to get the default IPv6 route
---------
Does this patch help?
Roy
diff --git a/src/privsep.c b/src/privsep.c
index 2b68af2f..09e63216 100644
--- a/src/privsep.c
+++ b/src/privsep.c
@@ -327,7 +327,7 @@ ps_start(struct dhcpcd_ctx *ctx)
/* No point in spawning the generic network listener if we're
* not going to use it. */
- if (!(ctx->options & (DHCPCD_MASTER | DHCPCD_IPV6RS)))
+ if (!(ctx->options & (DHCPCD_MASTER | DHCPCD_IPV6)))
goto started;
switch (pid = ps_inet_start(ctx)) {
Archive administrator: postmaster@marples.name