dhcpcd-discuss

Re: problem with expired prefix (dhcpv6)

Harald Dunkel

Mon May 29 18:20:54 2017

Hi Roy,

On 05/29/17 10:36, Roy Marples wrote:
> 
> Possibly is the best answer I can give - the IAID is all zeros (in all messages).
> Whilst technically allowable by the spec as I read it, some implementation might expect a non zero value.
> 
> Have you tried using a non zero IAID?

According to the manual the default iaid is supposed to be derived
from the mac address. Esp for ia_pd the iaid is optional, so I tried
to drop the explicit iaid completely. See attachment for the
dhcpcd.conf.

Here is the log file after a reboot:

May 29 20:06:29 [23351]: dhcpcd-7.0.0-beta3 starting
May 29 20:06:29 [23351]: pppoe0: disabling Kernel IPv6 RA support
May 29 20:06:29 [23351]: re1: executing `/usr/local/libexec/dhcpcd-run-hooks' PREINIT
May 29 20:06:29 [23351]: re1: executing `/usr/local/libexec/dhcpcd-run-hooks' NOCARRIER
May 29 20:06:29 [23351]: pppoe0: executing `/usr/local/libexec/dhcpcd-run-hooks' PREINIT
May 29 20:06:29 [23351]: pppoe0: executing `/usr/local/libexec/dhcpcd-run-hooks' CARRIER
May 29 20:06:29 [23351]: DUID 00:01:00:01:20:79:21:d4:80:ee:73:95:c1:0c
May 29 20:06:29 [23351]: pppoe0: IAID 00:00:00:06
May 29 20:06:29 [23351]: pppoe0: IAID 72:65:31:00
May 29 20:06:29 [23351]: pppoe0: delaying IPv6 router solicitation for 0.9 seconds
May 29 20:06:29 [23351]: pppoe0: reading lease `/var/db/dhcpcd/pppoe0.lease6'
May 29 20:06:29 [23351]: pppoe0: cleaning stale addresses
May 29 20:06:29 [23351]: pppoe0: 2003:dd:b3fb:da00::/56 flags 258 stale 0 request 0 delegatedpfx 256
May 29 20:06:29 [23351]: pppoe0: done cleaning stale addresses
May 29 20:06:29 [23351]: pppoe0: rebinding prior DHCPv6 lease
May 29 20:06:29 [23351]: pppoe0: delaying REBIND6 (xid 0x5e7bec), next in 1.7 seconds
May 29 20:06:29 [23351]: re1: waiting for carrier
May 29 20:06:30 [23351]: pppoe0: soliciting an IPv6 router
May 29 20:06:30 [23351]: pppoe0: sending Router Solicitation
May 29 20:06:30 [23351]: re1: carrier acquired
May 29 20:06:30 [23351]: re1: interface updated
May 29 20:06:30 [23351]: re1: executing `/usr/local/libexec/dhcpcd-run-hooks' CARRIER
May 29 20:06:30 [23351]: re1: IAID 73:95:c1:0d
May 29 20:06:30 [23351]: pppoe0: broadcasting REBIND6 (xid 0x5e7bec), next in 0.9 seconds
May 29 20:06:31 [23351]: pppoe0: broadcasting REBIND6 (xid 0x5e7bec), next in 1.9 seconds
May 29 20:06:31 [23351]: pppoe0: Router Advertisement from fe80::101:101:3e9b:f1ab
May 29 20:06:31 [23351]: pppoe0: adding address 2003:dd:b3bf:3c17:665a:4ff:fe35:830a/64
May 29 20:06:31 [23351]: pppoe0: pltime 1800 seconds, vltime 14400 seconds
May 29 20:06:31 [23351]: pppoe0: adding route to 2003:dd:b3bf:3c17::/64
May 29 20:06:31 [23351]: pppoe0: adding default route via fe80::101:101:3e9b:f1ab
May 29 20:06:31 [23351]: pppoe0: waiting for Router Advertisement DAD to complete
May 29 20:06:32 [23351]: pppoe0: Router Advertisement DAD completed
May 29 20:06:32 [23351]: pppoe0: executing `/usr/local/libexec/dhcpcd-run-hooks' ROUTERADVERT
May 29 20:06:32 [23351]: forking to background
May 29 20:06:32 [23351]: forked to background, child pid 34190
May 29 20:06:33 [34190]: pppoe0: broadcasting REBIND6 (xid 0x5e7bec), next in 3.7 seconds
May 29 20:06:37 [34190]: pppoe0: broadcasting REBIND6 (xid 0x5e7bec), next in 3.9 seconds
May 29 20:06:39 [34190]: pppoe0: failed to rebind prior delegation
May 29 20:06:39 [34190]: pppoe0: soliciting a DHCPv6 lease
May 29 20:06:39 [34190]: pppoe0: delaying SOLICIT6 (xid 0xb9bb32), next in 1.4 seconds
May 29 20:06:40 [34190]: pppoe0: broadcasting SOLICIT6 (xid 0xb9bb32), next in 1.1 seconds
May 29 20:06:41 [34190]: pppoe0: cleaning stale addresses
May 29 20:06:41 [34190]: pppoe0: 2003:dd:b3fc:600::/56 flags 258 stale 0 request 0 delegatedpfx 256
May 29 20:06:41 [34190]: pppoe0: done cleaning stale addresses
May 29 20:06:41 [34190]: pppoe0: REPLY6 received from fe80::101:101:3e9b:f1ab
May 29 20:06:41 [34190]: pppoe0: renew in 900, rebind in 1440, expire in 14400 seconds
May 29 20:06:41 [34190]: lo0: adding reject route to 2003:dd:b3fc:600::/56 via ::1
May 29 20:06:41 [34190]: pppoe0: writing lease `/var/db/dhcpcd/pppoe0.lease6'
May 29 20:06:41 [34190]: pppoe0: delegated prefix 2003:dd:b3fc:600::/56

A prefix was delegated, but somehow the re1 interface (on my LAN)
didn't get an IPv6 address.

bash-4.4# ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 80:ee:73:95:c1:0d
        index 3 priority 0 llprio 3
        groups: intern
        media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
        status: active
        inet 10.0.100.2 netmask 0xffffff00 broadcast 10.0.100.255


???


Regards
Harri

debug
logfile /var/log/dhcpcd.log
ipv6only
# persistent
option rapid_commit
require dhcp_server_identifier
nohook lookup-hostname, resolv.conf
allowinterfaces re1 pppoe0
noipv6rs

interface pppoe0
	ipv6rs
	# static static domain_name_servers=<nameserver IPs>
	ia_pd re1/0

Attachment: signature.asc
Description: OpenPGP digital signature


Follow-Ups:
Re: problem with expired prefix (dhcpv6)Roy Marples
Re: problem with expired prefix (dhcpv6)Harald Dunkel
References:
problem with expired prefix (dhcpv6)Harald Dunkel
Re: problem with expired prefix (dhcpv6)Roy Marples
Re: problem with expired prefix (dhcpv6)Harald Dunkel
Re: problem with expired prefix (dhcpv6)Harald Dunkel
Re: problem with expired prefix (dhcpv6)Roy Marples
Archive administrator: postmaster@marples.name