cannot renew IPV6 address

Jean-Max Reymond jmreymond at ckr-solutions.com
Thu Jan 26 18:38:48 UTC 2017


Le 26/01/2017 à 17:13, Jean-Max Reymond a écrit :
> Le 26/01/2017 à 17:01, Simon Hobson a écrit :
>> Jean-Max Reymond <jmreymond at ckr-solutions.com> wrote:
>>
>>> After 12 hours, the interface is down and I cannot obtain a new IPV6
>>> adress.
>>
>>> $ /usr/local/sbin/dhclient -cf /etc/dhcp/dhclient6.conf -6 -P -v eno1
>>
>>> ...
>>> RCV:  | | | X-- Max lifetime 43200.
>>
>> OK, your lease is 12 hours, at the end of the lease you lose the
>> address. Are you leaving the dhcp client running ? Is it sending any
>> renewal requests ? Are you running a firewall that could be blocking
>> DHCP6 ?
>>
>
> thanks for your fast answer. dhcp client is always running but I cannot
> ping6 another server.
> I have no messages in /var/log/syslog and no firewall.
> At boot, IPV6 is OK.
> So I suspect this bug
> https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1551351
> but after updating with dhcpclient 4.3.5, same issue
>
>> The basic troubleshooting at this point is to narrow it down to one of
>> 3 things :
>>
>> 1) Your client isn't attempting to renew
>>
>> 2) Your client is attempting to renew but the server isn't responding
>>
>> 3) Something else - such as server responding but client doesn't
>> accept it
>>
>> You probably need to run a packet sniffer on the relevant interface
>> and capture DHCP6 packets. That should answer the questions: Is the
>> client trying to renew ? Is the server replying ?
>
> OK, I suspect answer 1 because I have no traces in /var/log/syslog but
> restarting dhclient give answer 2
> I start a sniffer client to capture DHCP6 packets
>
It seems that dhcp server from my ISP is not answering to my requests

# ip6tables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

# tcpdump -i eno1 -vv ip6|head -10
tcpdump: listening on eno1, link-type EN10MB (Ethernet), capture size 
262144 bytes
19:36:23.877024 IP6 (hlim 1, next-header UDP (17) payload length: 52) 
fe80::250:56ff:fe00:d633.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 solicit (xid=f24d5e (client-ID hwaddr/time type 1 time 
514053608 000c2983d6d2) (elapsed-time 0) (IA_PD IAID:4 T1:0 T2:0))
19:36:23.882100 IP6 (hlim 1, next-header UDP (17) payload length: 76) 
fe80::250:56ff:fe00:d633.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 request (xid=7d8662 (client-ID hwaddr/time type 1 time 
514053608 000c2983d6d2) (server-ID hwaddr/time type 1 time 464305197 
10604b9b0af4) (elapsed-time 0) (IA_PD IAID:4 T1:0 T2:0 (status-code no 
prefixes)))
19:36:24.292983 IP6 (hlim 1, next-header UDP (17) payload length: 52) 
fe80::250:56ff:fe00:d633.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 solicit (xid=9cebbf (client-ID hwaddr/time type 1 time 
514053608 000c2983d6d2) (elapsed-time 0) (IA_PD IAID:4 T1:0 T2:0))
19:36:24.300359 IP6 (hlim 1, next-header UDP (17) payload length: 76) 
fe80::250:56ff:fe00:d633.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 request (xid=41724a (client-ID hwaddr/time type 1 time 
514053608 000c2983d6d2) (server-ID hwaddr/time type 1 time 464305197 
10604b9b0af4) (elapsed-time 0) (IA_PD IAID:4 T1:0 T2:0 (status-code no 
prefixes)))
19:36:24.900604 IP6 (hlim 1, next-header UDP (17) payload length: 52) 
fe80::250:56ff:fe00:d633.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 solicit (xid=1f6b95 (client-ID hwaddr/time type 1 time 
514053608 000c2983d6d2) (elapsed-time 0) (IA_PD IAID:4 T1:0 T2:0))
19:36:24.905277 IP6 (hlim 1, next-header UDP (17) payload length: 76) 
fe80::250:56ff:fe00:d633.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 request (xid=fec410 (client-ID hwaddr/time type 1 time 
514053608 000c2983d6d2) (server-ID hwaddr/time type 1 time 464305197 
10604b9b0af4) (elapsed-time 0) (IA_PD IAID:4 T1:0 T2:0 (status-code no 
prefixes)))
19:36:25.160943 IP6 (hlim 1, next-header UDP (17) payload length: 52) 
fe80::250:56ff:fe00:d633.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 solicit (xid=9e3f36 (client-ID hwaddr/time type 1 time 
514053608 000c2983d6d2) (elapsed-time 0) (IA_PD IAID:4 T1:0 T2:0))
19:36:25.179613 IP6 (hlim 1, next-header UDP (17) payload length: 76) 
fe80::250:56ff:fe00:d633.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 request (xid=502d2a (client-ID hwaddr/time type 1 time 
514053608 000c2983d6d2) (server-ID hwaddr/time type 1 time 464305197 
10604b9b0af4) (elapsed-time 0) (IA_PD IAID:4 T1:0 T2:0 (status-code no 
prefixes)))
19:36:25.756287 IP6 (hlim 1, next-header UDP (17) payload length: 52) 
fe80::250:56ff:fe00:d633.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 solicit (xid=416443 (client-ID hwaddr/time type 1 time 
514053608 000c2983d6d2) (elapsed-time 0) (IA_PD IAID:4 T1:0 T2:0))
19:36:25.763720 IP6 (hlim 1, next-header UDP (17) payload length: 76) 
fe80::250:56ff:fe00:d633.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 request (xid=4ace44 (client-ID hwaddr/time type 1 time 
514053608 000c2983d6d2) (server-ID hwaddr/time type 1 time 464305197 
10604b9b0af4) (elapsed-time 0) (IA_PD IAID:4 T1:0 T2:0 (status-code no 
prefixes)))
28 packets captured
28 packets received by filter
0 packets dropped by kernel


-- 
Jean-Max Reymond
CKR Solutions Open Source https://www.ckr-solutions.com


More information about the dhcp-users mailing list