dhcpcd-discuss

Re: problem with expired prefix (dhcpv6)

Harald Dunkel

Fri Apr 21 11:27:25 2017

Hi Roy,

On 04/20/17 18:41, Roy Marples wrote:
> Hi Harri
> 
> On 20/04/2017 17:10, Harald Dunkel wrote:
> 
>> Apr 20 13:30:54 marvin dhcpcd[46072]: pppoe0: carrier acquired
>> Apr 20 13:30:54 marvin dhcpcd[46072]: pppoe0: IAID 00:00:00:00
>> Apr 20 13:30:54 marvin dhcpcd[46072]: pppoe0: rebinding prior DHCPv6 lease
>> Apr 20 13:30:54 marvin dhcpcd[46072]: pppoe0: Router Advertisement from fe80::101:101:3e9b:f1ab
>> Apr 20 13:30:54 marvin dhcpcd[46072]: pppoe0: adding address 2003:dd:b3bf:2336:665a:4ff:fe35:830a/64
>> Apr 20 13:31:04 marvin dhcpcd[46072]: pppoe0: failed to rebind prior delegation
> 
> This is the interesting part.
> Why did this fail?
> Can you capture a full tcpdump of the DHCPv6 transaction please?
> 

See attachment. Here is the syslog

Apr 21 12:43:45 marvin dhcpcd[24293]: pppoe0: carrier lost
Apr 21 12:43:45 marvin dhcpcd[24293]: pppoe0: deleting address 2003:dd:b3bf:2b12:665a:4ff:fe35:830a/64
Apr 21 12:43:45 marvin dhcpcd[24293]: pppoe0: if_addrflags: 93.233.195.177: Undefined error: 0
Apr 21 12:43:45 marvin dhcpcd[24293]: pppoe0: if_addrflags: Undefined error: 0
Apr 21 12:44:50 marvin dhcpcd[24293]: pppoe0: carrier acquired
Apr 21 12:44:50 marvin dhcpcd[24293]: pppoe0: IAID 00:00:00:00
Apr 21 12:44:50 marvin dhcpcd[24293]: pppoe0: rebinding prior DHCPv6 lease
Apr 21 12:44:50 marvin dhcpcd[24293]: pppoe0: soliciting an IPv6 router
Apr 21 12:44:50 marvin dhcpcd[24293]: pppoe0: Router Advertisement from fe80::101:101:3e9b:f1ab
Apr 21 12:44:50 marvin dhcpcd[24293]: pppoe0: adding address 2003:dd:b3bf:2b3b:665a:4ff:fe35:830a/64
Apr 21 12:45:00 marvin dhcpcd[24293]: pppoe0: failed to rebind prior delegation
Apr 21 12:45:00 marvin dhcpcd[24293]: pppoe0: soliciting a DHCPv6 lease
Apr 21 12:45:03 marvin dhcpcd[24293]: pppoe0: REPLY6 received from fe80::101:101:3e9b:f1ab
Apr 21 12:45:03 marvin dhcpcd[24293]: pppoe0: renew in 900, rebind in 1440, expire in 14400 seconds
Apr 21 12:45:03 marvin dhcpcd[24293]: lo0: adding reject route to 2003:dd:b3eb:3b00::/56 via ::1
Apr 21 12:45:03 marvin dhcpcd[24293]: pppoe0: delegated prefix 2003:dd:b3eb:3b00::/56
Apr 21 12:45:03 marvin dhcpcd[24293]: re1: adding address 2003:dd:b3eb:3b00::1/56
Apr 21 12:45:03 marvin dhcpcd[24293]: re1: changing route to 2003:dd:b3eb:3b00::/56

>>
>> Look for "pppoe0: carrier lost" at 13:30:39, when I reset the pppoe0
>> interface. There is no "re1: deleting address ..." following, just
>> another IPv6 address assigned to re1. Both addresses have infinite
>> lifetime, but of course the old prefix is not routed anymore.
> 
> This is an issue with OpenBSD.
> See my comment about the problem here:
> https://dev.marples.name/source/dhcpcd/browse/master/src/if-bsd.c;dd0311a9d743e79bbb1795c12d4efb6c78f9e0bf$758
> 

I couldn't access this web page, even though I was logged in :-(. Maybe
you should consider to mail your concerns on misc@xxxxxxxxxxx, anyway.
They appeared to be pretty interested in this topic.

> 
> I suppose we could make the delegated prefixes vanish on carrier down
> for non persistent interfaces if we can't get it to work properly on
> OpenBSD.
> 

I am glad to help
Harri

Attachment: dhcpv6.pppoe0.cap
Description: application/vnd.tcpdump.pcap


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