dhcpcd-discuss

Re: Commit ef53a17 breaks IPv6 router solicitation

Nikolai Spasov

Tue Mar 06 10:44:59 2018

Sorry for not attaching the logs. Here it goes:

dhcpcd.conf:
----
timeout 0
debug

interface net0
iaid 1
ia_pd 1 br0
noipv4ll
release
clientid <EDITED-OUT>
nohook resolv.conf
---


Working version:
----
dhcpcd-7.0.0-beta2 starting
all: disabling kernel IPv6 RA support
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
DUID 00:01:00:01:22:30:5d:a6:d8:eb:97:b3:37:96
net0: IAID 00:00:00:01
net0: adding address fe80::226:55ff:fed1:cbb2
net0: pltime infinity, vltime infinity
net0: delaying IPv6 router solicitation for 0.3 seconds
net0: delaying DHCPv6 soliciation for LL address
net0: delaying IPv4 for 0.7 seconds
net0: soliciting an IPv6 router
net0: delaying Router Solicitation for LL address
net0: using ClientID <EDITED-OUT>
net0: soliciting a DHCP lease
net0: sending DISCOVER (xid 0x947849c7), next in 4.6 seconds
net0: offered XXXXXX from 2.127.238.146
net0: sending REQUEST (xid 0x947849c7), next in 3.6 seconds
net0: acknowledged XXXXXX from 2.127.238.146
net0: probing address XXXXXX/22
net0: probing for XXXXXX
net0: ARP probing XXXXXX (1 of 3), next in 1.3 seconds
net0: reading lease `/var/lib/dhcpcd/net0.lease6'
net0: soliciting a DHCPv6 lease
net0: delaying SOLICIT6 (xid 0x94b5ca), next in 0.3 seconds
br0: activating for delegation
br0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
br0: carrier acquired
br0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
br0: IAID e9:e7:ae:46
br0: delaying IPv4 for 0.8 seconds
net0: sending Router Solicitation
net0: broadcasting SOLICIT6 (xid 0x94b5ca), next in 1.0 seconds
net0: ADV 2a02:c7f:XXX:XXXX::/56 from fe80::2d0:f6ff:feb1:2180
net0: broadcasting REQUEST6 (xid 0x916fff), next in 1.0 seconds
net0: REPLY6 received from fe80::2d0:f6ff:feb1:2180
net0: renew in 1800, rebind in 2880, expire in 3600 seconds
lo: adding reject route to 2a02:c7f:XXX:XXXX::/56
net0: writing lease `/var/lib/dhcpcd/net0.lease6'
net0: delegated prefix 2a02:c7f:XXX:XXXX::/56
br0: adding address 2a02:c7f:62b:4902::1/64
br0: pltime 3600 seconds, vltime 3600 seconds
br0: adding route to 2a02:c7f:62b:4902::/64
br0: waiting for DHCPv6 DAD to complete
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' BOUND6
net0: ARP probing XXXXXX (2 of 3), next in 1.2 seconds
br0: using hwaddr 02:56:e9:e7:ae:46
br0: soliciting a DHCP lease
br0: sending DISCOVER (xid 0x448f6669), next in 4.2 seconds
net0: Router Advertisement from fe80::2d0:f6ff:feb1:2180
net0: adding default route via fe80::2d0:f6ff:feb1:2180
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' ROUTERADVERT
net0: No DHCPv6 instruction in RA
net0: ARP probing XXXXXX (3 of 3), next in 2.0 seconds
br0: DHCPv6 DAD completed
br0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' DELEGATED6
net0: DAD completed for XXXXXX
net0: leased XXXXXX for 3600 seconds
net0: renew in 1800 seconds, rebind in 3000 seconds
net0: writing lease `/var/lib/dhcpcd/net0.lease'
net0: adding IP address XXXXXX/22 broadcast XXXXXX.255
net0: adding route to XXXXXX.0/22
net0: adding default route via XXXXXX.1
net0: ARP announcing XXXXXX (1 of 2), next in 2.0 seconds
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' BOUND
br0: sending DISCOVER (xid 0x448f6669), next in 8.6 seconds
net0: ARP announcing XXXXXX (2 of 2)
br0: probing for an IPv4LL address
br0: probing for 169.254.242.167
br0: ARP probing 169.254.242.167 (1 of 3), next in 1.2 seconds
br0: ARP probing 169.254.242.167 (2 of 3), next in 1.2 seconds
br0: ARP probing 169.254.242.167 (3 of 3), next in 2.0 seconds
br0: using IPv4LL address 169.254.242.167
br0: adding IP address 169.254.242.167/16 broadcast 169.254.255.255
br0: adding route to 169.254.0.0/16
br0: ARP announcing 169.254.242.167 (1 of 2), next in 2.0 seconds
br0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' IPV4LL
br0: ARP announcing 169.254.242.167 (2 of 2)
br0: sending DISCOVER (xid 0x448f6669), next in 16.9 seconds
br0: sending DISCOVER (xid 0x448f6669), next in 31.6 seconds
received SIGINT, stopping
br0: removing interface
br0: deleting address 2a02:c7f:62b:4902::1/64
br0: deleting route to 2a02:c7f:62b:4902::/64
br0: deleting IP address 169.254.242.167/16
br0: deleting route to 169.254.0.0/16
br0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' IPV4LL
br0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' STOP
br0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' STOPPED
net0: removing interface
net0: broadcasting RELEASE6 (xid 0x2423f6), next in 1.1 seconds
lo: deleting reject route to 2a02:c7f:XXX:XXXX::/56
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' RELEASE6
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' ROUTERADVERT
net0: deleting address fe80::226:55ff:fed1:cbb2
net0: releasing lease of XXXXXX
net0: sending RELEASE with xid 0xc8f31df
net0: deleting route to XXXXXX.0/22
net0: deleting default route via XXXXXX.1
net0: deleting IP address XXXXXX/22
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' STOP
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' STOPPED
dhcpcd exited
----


Not acquiring IPv6:
----
dhcpcd-7.0.0-rc3 starting
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
DUID 00:01:00:01:22:30:5d:a6:d8:eb:97:b3:37:96
net0: IAID 00:00:00:01
net0: adding address fe80::226:55ff:fed1:cbb2
net0: pltime infinity, vltime infinity
net0: delaying IPv6 router solicitation for 0.1 seconds
net0: delaying DHCPv6 soliciation for LL address
net0: delaying IPv4 for 0.4 seconds
net0: soliciting an IPv6 router
net0: delaying Router Solicitation for LL address
net0: using ClientID <EDITED-OUT>
net0: soliciting a DHCP lease
net0: sending DISCOVER (xid 0x94f88022), next in 4.1 seconds
net0: offered XXXXXXX from 2.127.238.146
net0: sending REQUEST (xid 0x94f88022), next in 4.4 seconds
net0: acknowledged XXXXXXXXX from 2.127.238.146
net0: probing address XXXXXXXXX
net0: probing for XXXXXXXXXX
net0: ARP probing XXXXXXXXXX (1 of 3), next in 1.8 seconds
net0: reading lease `/var/lib/dhcpcd/net0.lease6'
net0: soliciting a DHCPv6 lease
net0: delaying SOLICIT6 (xid 0x3a8220), next in 0.2 seconds
br0: activating for delegation
br0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
br0: carrier acquired
br0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
br0: IAID e9:e7:ae:46
net0: sending Router Solicitation
net0: broadcasting SOLICIT6 (xid 0x3a8220), next in 0.9 seconds
net0: ARP probing XXXXXXXXXX (2 of 3), next in 1.9 seconds
net0: broadcasting SOLICIT6 (xid 0x3a8220), next in 1.9 seconds
net0: broadcasting SOLICIT6 (xid 0x3a8220), next in 3.8 seconds
net0: ARP probing XXXXXXXXX (3 of 3), next in 2.0 seconds
net0: sending Router Solicitation
net0: DAD completed for XXXXXXXX
net0: leased XXXXXXXXX for 3600 seconds
net0: renew in 1800 seconds, rebind in 3000 seconds
net0: writing lease `/var/lib/dhcpcd/net0.lease'
net0: adding IP address XXXXXXXXX/22 broadcast XXXXXX.255
net0: adding route to XXXXXXXXXXXXX/22
net0: adding default route via XXXXXXXX
net0: ARP announcing XXXXXXXXXX (1 of 2), next in 2.0 seconds
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' BOUND
net0: broadcasting SOLICIT6 (xid 0x3a8220), next in 7.6 seconds
net0: ARP announcing XXXXXXXXXXXxx (2 of 2)
net0: sending Router Solicitation
received SIGINT, stopping
br0: removing interface
br0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' STOPPED
net0: removing interface
net0: deleting address fe80::226:55ff:fed1:cbb2
net0: releasing lease of XXXXXXXXXXXXx
net0: sending RELEASE with xid 0xda23b9a
net0: deleting IP address XXXXXXXXXXXX/22
net0: deleting route to XXXXXXXXXXX/22
net0: deleting default route via XXXXXXX
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' STOP
net0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' STOPPED
dhcpcd exited
----


On Tue, Mar 6, 2018 at 10:01 AM, Roy Marples <roy@xxxxxxxxxxxx> wrote:

> Hi Nikolai
>
>
> On 06/03/2018 01:42, Nikolai Spasov wrote:
>
>> I'm running dhcpcd on a single interface in dual stack and IPv6-PD.
>> Archlinux recently updated to 7.0.1 which broke IPv6 for me.
>>
>> After doing git bisect I found that commit ef53a17 (DHCPv6: listen on all
>> IPv6 addresses for active interface) responsible for this. Reverting it on
>> master solves the issue for me.
>>
>> I'm running archlinux with systemd-networkd for everything else but the
>> WAN interface.
>> I can provide additional information if needed.
>>
>
> Can you describe how it's broken?
> Maybe also provide dhcpcd log with debug enabled.
>
> Roy
>

References:
Commit ef53a17 breaks IPv6 router solicitationNikolai Spasov
Re: Commit ef53a17 breaks IPv6 router solicitationRoy Marples
Archive administrator: postmaster@marples.name