IPv6 default route not added (dhcpcd-9.1.4)
Nathan O'Meara
Sun Aug 02 20:59:26 2020
Hi,
I previously had dhcpcd working as desired, managing the IP (v4 and v6)
addresses on my WAN interface (connected to a cable modem) and delegating
IPv6 prefixes to the internal interfaces.
I recently got an upgrade that required bonding (LACP) the connection to
the modem - I renamed my interfaces and made the new bonded interface name
the same as my old single wan interface name (wan0) So, I have two
wan0slave0 and wan0slave1 interfaces, that the OS init scripts add to a
bond called wan0, and I configured that to start before dhcpcd starts.
dhcpcd seems to get all my addresses correctly - an ipv4 address gets
assigned to wan0, and a /56 ipv6 prefix delegation is received and the /64s
are delegated to the appropriate internal interfaces. dhcpcd then adds
reject routes for the PDs and a default ipv4 route - but it doesn't seem to
add a default ipv6 route.
I've seen other people's logs here that show a message like "dhcpcd[295]:
wlan0: adding default route via fe80::a:b:c:d", but I don't see any similar
message for the ipv6 default route in my logs, even in prior cases where
the route was added correctly, so I'm wondering if my OS's network-scripts
was handling that when it was a physical interface, and isn't now that it's
a bond interface? I would think dhcpcd should handle it in either case.
If I simply add the default route myself, ipv6 traffic flows. but for some
reason it isn't being added automatically. Do I have this feature disabled
somehow in my config (I haven't spotted anything like that if that's the
case, I don't have 'nogateway' set.)
Details below.
Thanks in advance,
Nathan
# dhcpcd --version
dhcpcd 9.1.4
Copyright (c) 2006-2020 Roy Marples
Compiled in features: INET ARP ARPing IPv4LL INET6 DHCPv6 AUTH
# grep -v "^#" /etc/dhcpcd.conf
debug
logfile /var/log/dhcpcd.log
denyinterfaces wan0slave* ifb* veth* wg*
hostname
duid
waitip 6
noipv6rs
nodhcp
nodhcp6
noipv4ll
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option interface_mtu
require dhcp_server_identifier
slaac private
nohook lookup-hostname
nohook resolv.conf
interface wan0
dhcp
dhcp6
ia_pd 1/::/56 lan0/0 lan0.42/2 lan0.43/3 lan0.110/4 lan0.214/5 lan0.215/6
# cat /var/log/dhcpcd.log (truncated to a single startup, showing the issue)
Aug 02 14:28:41 [5318]: dhcpcd-9.1.4 starting
Aug 02 14:28:41 [5320]: udev: starting
Aug 02 14:28:41 [5320]: dev: loaded udev
Aug 02 14:28:41 [5320]: DUID
00:04:4c:4c:45:44:00:5a:57:10:80:57:c2:c0:4f:52:57:31
Aug 02 14:28:41 [5320]: lo: ignoring due to interface type and no config
Aug 02 14:28:41 [5320]: lan0: executing `/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Aug 02 14:28:41 [5320]: lan0: executing `/lib/dhcpcd/dhcpcd-run-hooks'
CARRIER
Aug 02 14:28:41 [5320]: bond0: executing `/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Aug 02 14:28:41 [5320]: bond0: executing `/lib/dhcpcd/dhcpcd-run-hooks'
NOCARRIER
Aug 02 14:28:41 [5320]: wan0: executing `/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Aug 02 14:28:41 [5320]: wan0: executing `/lib/dhcpcd/dhcpcd-run-hooks'
CARRIER
Aug 02 14:28:41 [5320]: lan0.10: executing `/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Aug 02 14:28:41 [5320]: lan0.10: executing `/lib/dhcpcd/dhcpcd-run-hooks'
CARRIER
Aug 02 14:28:41 [5320]: lan0.42: executing `/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Aug 02 14:28:41 [5320]: lan0.42: executing `/lib/dhcpcd/dhcpcd-run-hooks'
CARRIER
Aug 02 14:28:41 [5320]: lan0.43: executing `/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Aug 02 14:28:41 [5320]: lan0.43: executing `/lib/dhcpcd/dhcpcd-run-hooks'
CARRIER
Aug 02 14:28:41 [5320]: lan0.110: executing `/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Aug 02 14:28:41 [5320]: lan0.110: executing `/lib/dhcpcd/dhcpcd-run-hooks'
CARRIER
Aug 02 14:28:41 [5320]: lan0.214: executing `/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Aug 02 14:28:41 [5320]: lan0.214: executing `/lib/dhcpcd/dhcpcd-run-hooks'
CARRIER
Aug 02 14:28:41 [5320]: lan0.215: executing `/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Aug 02 14:28:41 [5320]: lan0.215: executing `/lib/dhcpcd/dhcpcd-run-hooks'
CARRIER
Aug 02 14:28:41 [5320]: lan0.216: executing `/lib/dhcpcd/dhcpcd-run-hooks'
PREINIT
Aug 02 14:28:41 [5320]: lan0.216: executing `/lib/dhcpcd/dhcpcd-run-hooks'
CARRIER
Aug 02 14:28:41 [5320]: lan0: IAID 11:0f:93:6f
Aug 02 14:28:41 [5320]: lan0: adding address fe80::6051:3c5a:3456:4b67
Aug 02 14:28:41 [5320]: lan0: pltime infinity, vltime infinity
Aug 02 14:28:41 [5320]: lan0: delaying IPv4 for 0.1 seconds
Aug 02 14:28:41 [5320]: bond0: waiting for carrier
Aug 02 14:28:41 [5320]: wan0: IAID 1c:99:dd:6d
Aug 02 14:28:41 [5320]: wan0: IA type 25 IAID 00:00:00:01
Aug 02 14:28:41 [5320]: wan0: adding address fe80::7c2d:f43f:c5ca:b74c
Aug 02 14:28:41 [5320]: wan0: pltime infinity, vltime infinity
Aug 02 14:28:41 [5320]: wan0: delaying DHCPv6 for LL address
Aug 02 14:28:41 [5320]: wan0: delaying IPv4 for 0.6 seconds
Aug 02 14:28:41 [5320]: lan0.10: IAID ff:00:00:0a
Aug 02 14:28:41 [5320]: lan0.10: adding address fe80::80e4:dad1:1493:8fb3
Aug 02 14:28:41 [5320]: lan0.10: pltime infinity, vltime infinity
Aug 02 14:28:41 [5320]: lan0.10: delaying IPv4 for 2.0 seconds
Aug 02 14:28:41 [5320]: lan0.42: IAID ff:00:00:2a
Aug 02 14:28:41 [5320]: lan0.42: adding address fe80::477:8fcd:4071:27fa
Aug 02 14:28:41 [5320]: lan0.42: pltime infinity, vltime infinity
Aug 02 14:28:41 [5320]: lan0.42: delaying IPv4 for 1.2 seconds
Aug 02 14:28:41 [5320]: lan0.43: IAID ff:00:00:2b
Aug 02 14:28:41 [5320]: lan0.43: adding address fe80::b84b:908c:edaf:4404
Aug 02 14:28:41 [5320]: lan0.43: pltime infinity, vltime infinity
Aug 02 14:28:41 [5320]: lan0.43: delaying IPv4 for 2.0 seconds
Aug 02 14:28:41 [5320]: lan0.110: IAID ff:00:00:6e
Aug 02 14:28:41 [5320]: lan0.110: adding address fe80::c58c:2d45:fc5b:5125
Aug 02 14:28:41 [5320]: lan0.110: pltime infinity, vltime infinity
Aug 02 14:28:41 [5320]: lan0.110: delaying IPv4 for 1.3 seconds
Aug 02 14:28:41 [5320]: lan0.214: IAID ff:00:00:d6
Aug 02 14:28:41 [5320]: lan0.214: adding address fe80::80ef:3433:123f:9e77
Aug 02 14:28:41 [5320]: lan0.214: pltime infinity, vltime infinity
Aug 02 14:28:41 [5320]: lan0.214: delaying IPv4 for 1.1 seconds
Aug 02 14:28:41 [5320]: lan0.215: IAID ff:00:00:d7
Aug 02 14:28:41 [5320]: lan0.215: adding address fe80::6e02:e772:15ca:48eb
Aug 02 14:28:41 [5320]: lan0.215: pltime infinity, vltime infinity
Aug 02 14:28:41 [5320]: lan0.215: delaying IPv4 for 1.6 seconds
Aug 02 14:28:41 [5320]: lan0.216: IAID ff:00:00:d8
Aug 02 14:28:41 [5320]: lan0.216: adding address fe80::edbe:6c14:657:fc3c
Aug 02 14:28:41 [5320]: lan0.216: pltime infinity, vltime infinity
Aug 02 14:28:41 [5320]: lan0.216: delaying IPv4 for 0.8 seconds
Aug 02 14:28:41 [5320]: wan0: reading lease `/var/lib/dhcpcd/wan0.lease'
Aug 02 14:28:41 [5320]: wan0: rebinding lease of 104.230.3.34
Aug 02 14:28:41 [5320]: wan0: sending REQUEST (xid 0xb57e2c8a), next in 3.4
seconds
Aug 02 14:28:42 [5320]: wan0: acknowledged 104.230.3.34 from 142.254.155.37
Aug 02 14:28:42 [5320]: wan0: probing address 104.230.3.34/19
Aug 02 14:28:42 [5320]: wan0: probing for 104.230.3.34
Aug 02 14:28:42 [5320]: wan0: ARP probing 104.230.3.34 (1 of 3), next in
1.3 seconds
Aug 02 14:28:42 [5320]: wan0: reading lease `/var/lib/dhcpcd/wan0.lease6'
Aug 02 14:28:42 [5320]: wan0: rebinding prior DHCPv6 lease
Aug 02 14:28:42 [5320]: wan0: delaying REBIND6 (xid 0xf867fd), next in 1.1
seconds
Aug 02 14:28:43 [5320]: wan0: ARP probing 104.230.3.34 (2 of 3), next in
1.5 seconds
Aug 02 14:28:43 [5320]: wan0: broadcasting REBIND6 (xid 0xf867fd), next in
1.0 seconds
Aug 02 14:28:43 [5320]: wan0: REPLY6 received from fe80::201:5cff:fe66:fe46
Aug 02 14:28:43 [5320]: wan0: renew in 302226, rebind in 483561, expire in
604452 seconds
Aug 02 14:28:43 [5320]: lo: adding reject route to 2607:fcc8:9320:1400::/56
Aug 02 14:28:43 [5320]: wan0: writing lease `/var/lib/dhcpcd/wan0.lease6'
Aug 02 14:28:43 [5320]: wan0: delegated prefix 2607:fcc8:9320:1400::/56
Aug 02 14:28:43 [5320]: lan0: adding address 2607:fcc8:9320:1400::1/64
Aug 02 14:28:43 [5320]: lan0: pltime 604452 seconds, vltime 604452 seconds
Aug 02 14:28:43 [5320]: lan0: waiting for DHCPv6 DAD to complete
Aug 02 14:28:43 [5320]: lan0.42: adding address 2607:fcc8:9320:1402::1/64
Aug 02 14:28:43 [5320]: lan0.42: pltime 604452 seconds, vltime 604452
seconds
Aug 02 14:28:43 [5320]: lan0.42: waiting for DHCPv6 DAD to complete
Aug 02 14:28:43 [5320]: lan0.43: adding address 2607:fcc8:9320:1403::1/64
Aug 02 14:28:43 [5320]: lan0.43: pltime 604452 seconds, vltime 604452
seconds
Aug 02 14:28:43 [5320]: lan0.43: waiting for DHCPv6 DAD to complete
Aug 02 14:28:43 [5320]: lan0.110: adding address 2607:fcc8:9320:1404::1/64
Aug 02 14:28:43 [5320]: lan0.110: pltime 604452 seconds, vltime 604452
seconds
Aug 02 14:28:43 [5320]: lan0.110: waiting for DHCPv6 DAD to complete
Aug 02 14:28:43 [5320]: lan0.214: adding address 2607:fcc8:9320:1405::1/64
Aug 02 14:28:43 [5320]: lan0.214: pltime 604452 seconds, vltime 604452
seconds
Aug 02 14:28:43 [5320]: lan0.214: waiting for DHCPv6 DAD to complete
Aug 02 14:28:43 [5320]: lan0.215: adding address 2607:fcc8:9320:1406::1/64
Aug 02 14:28:43 [5320]: lan0.215: pltime 604452 seconds, vltime 604452
seconds
Aug 02 14:28:43 [5320]: lan0.215: waiting for DHCPv6 DAD to complete
Aug 02 14:28:43 [5320]: lan0: adding route to 2607:fcc8:9320:1400::/64
Aug 02 14:28:43 [5320]: lan0.42: adding route to 2607:fcc8:9320:1402::/64
Aug 02 14:28:43 [5320]: lan0.43: adding route to 2607:fcc8:9320:1403::/64
Aug 02 14:28:43 [5320]: lan0.110: adding route to 2607:fcc8:9320:1404::/64
Aug 02 14:28:43 [5320]: lan0.214: adding route to 2607:fcc8:9320:1405::/64
Aug 02 14:28:43 [5320]: lan0.215: adding route to 2607:fcc8:9320:1406::/64
Aug 02 14:28:43 [5320]: wan0: executing `/lib/dhcpcd/dhcpcd-run-hooks'
REBIND6
Aug 02 14:28:43 [5320]: waiting for an IP address
Aug 02 14:28:44 [5320]: wan0: ARP probing 104.230.3.34 (3 of 3), next in
2.0 seconds
Aug 02 14:28:44 [5320]: lan0.215: DHCPv6 DAD completed
Aug 02 14:28:44 [5320]: lan0.215: executing `/lib/dhcpcd/dhcpcd-run-hooks'
DELEGATED6
Aug 02 14:28:44 [5320]: lan0.43: DHCPv6 DAD completed
Aug 02 14:28:44 [5320]: lan0.43: executing `/lib/dhcpcd/dhcpcd-run-hooks'
DELEGATED6
Aug 02 14:28:45 [5320]: lan0.42: DHCPv6 DAD completed
Aug 02 14:28:45 [5320]: lan0.42: executing `/lib/dhcpcd/dhcpcd-run-hooks'
DELEGATED6
Aug 02 14:28:45 [5320]: lan0: DHCPv6 DAD completed
Aug 02 14:28:45 [5320]: lan0: executing `/lib/dhcpcd/dhcpcd-run-hooks'
DELEGATED6
Aug 02 14:28:45 [5320]: lan0.110: DHCPv6 DAD completed
Aug 02 14:28:45 [5320]: lan0.110: executing `/lib/dhcpcd/dhcpcd-run-hooks'
DELEGATED6
Aug 02 14:28:45 [5320]: lan0.214: DHCPv6 DAD completed
Aug 02 14:28:45 [5320]: lan0.214: executing `/lib/dhcpcd/dhcpcd-run-hooks'
DELEGATED6
Aug 02 14:28:46 [5320]: wan0: DAD completed for 104.230.3.34
Aug 02 14:28:46 [5320]: wan0: leased 104.230.3.34 for 62182 seconds
Aug 02 14:28:46 [5320]: wan0: renew in 31091 seconds, rebind in 54409
seconds
Aug 02 14:28:46 [5320]: wan0: writing lease `/var/lib/dhcpcd/wan0.lease'
Aug 02 14:28:46 [5320]: wan0: adding IP address 104.230.3.34/19 broadcast
255.255.255.255
Aug 02 14:28:46 [5320]: wan0: adding route to 104.230.0.0/19
Aug 02 14:28:46 [5320]: wan0: adding default route via 104.230.0.1
Aug 02 14:28:46 [5320]: wan0: ARP announcing 104.230.3.34 (1 of 2), next in
2.0 seconds
Aug 02 14:28:46 [5320]: wan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' BOUND
Aug 02 14:28:48 [5320]: wan0: ARP announcing 104.230.3.34 (2 of 2)
Archive administrator: postmaster@marples.name