prefix delegation on multiple devices; only one delegates prefix gets renewed
David Flatz
Mon May 22 18:16:35 2017
Hi there
I'm running dhcpcd 6.11.5 on x86_64 void linux with musl. I've
configured it to obtain a prefix from my ISP and delegate it to two
interfaces. At the initial launch both interfaces get a working address
and routes but when dhcpcd tries to renew only one of those interfaces
keeps its address and the other one stops working.
Here's my config:
#v+
noipv6rs
noipv4ll
nodhcp
nodhcp6
controlgroup wheel
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 private
interface enp1s0
dhcp
dhcp6
ipv6rs
ia_pd 0 enp2s0/13 enp3s0/5
interface enp2s0
static ip_address=192.168.13.1/24
interface enp3s0
static ip_address=192.168.5.1/24
#v-
Here's the log output since start until the first renew:
#v+
May 22 17:15:55 dhcpcd[582]: dev: loaded udev
May 22 17:15:56 dhcpcd[582]: no interfaces have a carrier
May 22 17:15:56 dhcpcd[582]: enp1s0: waiting for carrier
May 22 17:15:56 dhcpcd[582]: enp2s0: waiting for carrier
May 22 17:15:56 dhcpcd[582]: enp3s0: waiting for carrier
May 22 17:15:56 dhcpcd[582]: enp2s0: carrier acquired
May 22 17:15:56 dhcpcd[582]: DUID 00:01:00:01:20:af:59:23:00:0d:b9:40:82:48
May 22 17:15:56 dhcpcd[582]: enp2s0: IAID b9:40:82:49
May 22 17:15:56 dhcpcd[582]: enp2s0: adding address fe80::ed18:efe8:4293:cfca
May 22 17:15:56 dhcpcd[582]: enp2s0: probing address 192.168.13.1/24
May 22 17:15:56 dhcpcd[582]: enp3s0: carrier acquired
May 22 17:15:56 dhcpcd[582]: enp3s0: IAID b9:40:82:4a
May 22 17:15:56 dhcpcd[582]: enp3s0: adding address fe80::6f0c:a9bc:b2ad:541f
May 22 17:15:56 dhcpcd[582]: enp3s0: probing address 192.168.5.1/24
May 22 17:15:56 dhcpcd[582]: enp2s0: carrier lost
May 22 17:15:56 dhcpcd[582]: enp2s0: deleting address fe80::ed18:efe8:4293:cfca
May 22 17:15:56 dhcpcd[582]: enp3s0: carrier lost
May 22 17:15:56 dhcpcd[582]: enp3s0: deleting address fe80::6f0c:a9bc:b2ad:541f
May 22 17:15:58 dhcpcd[582]: enp2s0: carrier acquired
May 22 17:15:58 dhcpcd[582]: enp2s0: IAID b9:40:82:49
May 22 17:15:58 dhcpcd[582]: enp2s0: adding address fe80::ed18:efe8:4293:cfca
May 22 17:15:58 dhcpcd[582]: enp2s0: probing address 192.168.13.1/24
May 22 17:15:59 dhcpcd[582]: enp3s0: carrier acquired
May 22 17:15:59 dhcpcd[582]: enp3s0: IAID b9:40:82:4a
May 22 17:15:59 dhcpcd[582]: enp3s0: adding address fe80::6f0c:a9bc:b2ad:541f
May 22 17:15:59 dhcpcd[582]: enp3s0: probing address 192.168.5.1/24
May 22 17:16:02 dhcpcd[582]: enp1s0: carrier acquired
May 22 17:16:02 dhcpcd[582]: enp1s0: IAID b9:40:82:48
May 22 17:16:02 dhcpcd[582]: enp1s0: IAID 00:00:00:00
May 22 17:16:02 dhcpcd[582]: enp1s0: adding address fe80::9fc1:4175:dc3a:13bb
May 22 17:16:02 dhcpcd[582]: enp1s0: soliciting an IPv6 router
May 22 17:16:03 dhcpcd[582]: enp1s0: rebinding lease of 212.51.143.82
May 22 17:16:03 dhcpcd[582]: enp2s0: using static address 192.168.13.1/24
May 22 17:16:03 dhcpcd[582]: enp2s0: adding route to 192.168.13.0/24
May 22 17:16:03 dhcpcd[582]: enp1s0: rebinding prior DHCPv6 lease
May 22 17:16:03 dhcpcd[582]: enp1s0: Router Advertisement from fe80::1edf:fff:feb6:967f
May 22 17:16:03 dhcpcd[582]: enp1s0: adding address 2a02:168:2000:e:4058:9384:b3c0:5d9f/64
May 22 17:16:03 dhcpcd[582]: enp1s0: adding route to 2a02:168:2000:e::/64
May 22 17:16:03 dhcpcd[582]: enp1s0: adding default route via fe80::1edf:fff:feb6:967f
May 22 17:16:03 dhcpcd[582]: enp1s0: fe80::1edf:fff:feb6:967f: DHCPv6 REPLY missing Prefix
May 22 17:16:03 dhcpcd[582]: enp1s0: no useable IA found in lease
May 22 17:16:03 dhcpcd[582]: enp1s0: soliciting a DHCPv6 lease
May 22 17:16:03 dhcpcd[582]: enp3s0: using static address 192.168.5.1/24
May 22 17:16:03 dhcpcd[582]: enp3s0: adding route to 192.168.5.0/24
May 22 17:16:04 dhcpcd[582]: enp1s0: ADV 2a02:168:5c28::/48 from fe80::1edf:fff:feb6:967f
May 22 17:16:04 dhcpcd[582]: enp1s0: REPLY6 received from fe80::1edf:fff:feb6:967f
May 22 17:16:04 dhcpcd[582]: enp1s0: renew in 1200, rebind in 1800, expire in 86400 seconds
May 22 17:16:04 dhcpcd[582]: lo: adding reject route to 2a02:168:5c28::/48 via ::1
May 22 17:16:04 dhcpcd[582]: enp1s0: delegated prefix 2a02:168:5c28::/48
May 22 17:16:04 dhcpcd[582]: enp2s0: adding address 2a02:168:5c28:d::1/64
May 22 17:16:04 dhcpcd[582]: enp2s0: adding route to 2a02:168:5c28:d::/64
May 22 17:16:04 dhcpcd[582]: enp3s0: adding address 2a02:168:5c28:5::1/64
May 22 17:16:04 dhcpcd[582]: enp3s0: adding route to 2a02:168:5c28:5::/64
May 22 17:16:07 dhcpcd[582]: enp1s0: probing address 212.51.143.82/24
May 22 17:16:12 dhcpcd[582]: enp1s0: leased 212.51.143.82 for 1800 seconds
May 22 17:16:12 dhcpcd[582]: enp1s0: adding route to 212.51.143.0/24
May 22 17:16:12 dhcpcd[582]: enp1s0: adding default route via 212.51.143.1
May 22 17:36:49 dhcpcd[582]: lo: deleting reject route to 2a02:168:5c28::/48 via ::1
May 22 17:46:04 dhcpcd[582]: enp1s0: failed to renew DHCPv6, rebinding
May 22 17:46:05 dhcpcd[582]: enp1s0: fe80::1edf:fff:feb6:967f: DHCPv6 REPLY missing Prefix
May 22 17:46:05 dhcpcd[582]: enp1s0: no useable IA found in lease
May 22 17:46:05 dhcpcd[582]: enp2s0: deleting address 2a02:168:5c28:d::1/64
May 22 17:46:05 dhcpcd[582]: enp2s0: deleting route to 2a02:168:5c28:d::/64
May 22 17:46:05 dhcpcd[582]: enp3s0: deleting address 2a02:168:5c28:5::1/64
May 22 17:46:05 dhcpcd[582]: enp3s0: deleting route to 2a02:168:5c28:5::/64
May 22 17:46:05 dhcpcd[582]: enp1s0: soliciting a DHCPv6 lease
May 22 17:46:06 dhcpcd[582]: enp1s0: ADV 2a02:168:5c28::/48 from fe80::1edf:fff:feb6:967f
May 22 17:46:06 dhcpcd[582]: enp1s0: REPLY6 received from fe80::1edf:fff:feb6:967f
May 22 17:46:06 dhcpcd[582]: enp1s0: renew in 1200, rebind in 1800, expire in 86400 seconds
May 22 17:46:06 dhcpcd[582]: lo: adding reject route to 2a02:168:5c28::/48 via ::1
May 22 17:46:06 dhcpcd[582]: enp1s0: delegated prefix 2a02:168:5c28::/48
May 22 17:46:06 dhcpcd[582]: enp2s0: adding address 2a02:168:5c28:d::1/64
May 22 17:46:06 dhcpcd[582]: enp2s0: adding route to 2a02:168:5c28:d::/64
#v-
After the last line there is no more log output until the next renew.
At this point enp3s0 doesn't have an ipv6 address set anymore.
I have no idea whether this is a problem with my configuration, with my
ISP or with dhcpcd.
Best regards,
David
Archive administrator: postmaster@marples.name