Page MenuHomeDevCentral
Paste P363

dhclient6 negociation
ActivePublic

Authored by dereckson on Sun, Oct 13, 11:08.
Referenced Files
F3650699: dhclient6 negociation
Sun, Oct 13, 11:08
Subscribers
None
Starting dhclient6.
Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on Socket/igb0
Sending on Socket/igb0
Created duid […].
PRC: Soliciting for leases (INIT).
XMT: Forming Solicit, 0 ms elapsed.
XMT: X-- IA_PD da:b3:39:6d
XMT: | X-- Request renew in +3600
XMT: | X-- Request rebind in +5400
XMT: Solicit on igb0, interval 1030ms.
XMT: Forming Solicit, 1090 ms elapsed.
XMT: X-- IA_PD da:b3:39:6d
XMT: | X-- Request renew in +3600
XMT: | X-- Request rebind in +5400
XMT: Solicit on igb0, interval 1980ms.
RCV: Advertise message on igb0 from 2001:bc8:2::6:14:1.
RCV: X-- Preference 255.
RCV: X-- IA_PD da:b3:39:6d
RCV: | X-- starts 1728816827
RCV: | X-- t1 - renew +10800
RCV: | X-- t2 - rebind +172800
RCV: | X-- [Options]
RCV: | | X-- IAPREFIX 2001:bc8:2e84:700::/56
RCV: | | | X-- Preferred lifetime 54000.
RCV: | | | X-- Max lifetime 86400.
RCV: X-- Server ID: 00:01:00:01:27:c2:56:0a:52:54:00:ac:49:df
RCV: Advertisement immediately selected.
PRC: Selecting best advertised lease.
PRC: Considering best lease.
PRC: X-- Initial candidate 00:01:00:01:27:c2:56:0a:52:54:00:ac:49:df (s: 10105, p: 255).
XMT: Forming Request, 0 ms elapsed.
XMT: X-- IA_PD da:b3:39:6d
XMT: | X-- Requested renew +3600
XMT: | X-- Requested rebind +5400
XMT: | | X-- IAPREFIX 2001:bc8:2e84:700::/56
XMT: | | | X-- Preferred lifetime +7200
XMT: | | | X-- Max lifetime +7500
XMT: V IA_PD appended.
XMT: Request on igb0, interval 940ms.
RCV: Reply message on igb0 from 2001:bc8:2::6:14:1.
RCV: X-- Preference 255.
RCV: X-- IA_PD da:b3:39:6d
RCV: | X-- starts 1728816827
RCV: | X-- t1 - renew +10800
RCV: | X-- t2 - rebind +172800
RCV: | X-- [Options]
RCV: | | X-- IAPREFIX 2001:bc8:2e84:700::/56
RCV: | | | X-- Preferred lifetime 7200.
RCV: | | | X-- Max lifetime 86400.
RCV: X-- Server ID: 00:01:00:01:27:c2:56:0a:52:54:00:ac:49:df
PRC: Bound to lease 00:01:00:01:27:c2:56:0a:52:54:00:ac:49:df.
Prefix BOUND6 old= new=2001:bc8:2e84:700::/56

Event Timeline

igb0 is the right target interface

2001:bc8:2e84:700::/56 is the correct prefix for the DUID we send

The IP we assigned to the interface also belongs to that prefix:

ifconfig igb0
    inet6 2001:bc8:2e84:700::da7a:7001 prefixlen 56

To make it works:

  • Flush route table to remove all gateway info and different tests route -6 flush
  • Enable route advertisement: ifconfig igb0 accept_rtadv`
  • Ping something: route -6 google.com: at that moment, we've an autoconfigured IP (not the SLAAC!) and a routing table

The block then works nicely.