issues with ipv6 and DUID

Cory Coager ccoager at gmail.com
Sat Mar 30 00:19:16 UTC 2013


I have a new setup of DHCP with ipv6.  I'm attempting to use fixed
addresses so I can do static reservations.  I understand that ipv6
doesn't use the MAC address but instead uses the DUID.  I also
understand that DUID has different implementations such as LL, LLT and
EN as covered in rfc 3315.

What I haven't been able to figure out is how to discover a client's
DUID from the client.  Is there a tool I can run on a Linux server to
tell me what the DUID is?  I've only been able to discover it from the
dhclient in verbose mode.

My issue is, even though I specify the DUID to tie it to a static
address, it doesn't work.  Can someone tell me what I'm missing?  Here
is my server config and the client log.


Here is my dhcpd6.conf:
  subnet6 fde8:cceb:ccfe:b5b4:238a:691f:17d3:2400/120 {
    range6 fde8:cceb:ccfe:b5b4:238a:691f:17d3:2400
fde8:cceb:ccfe:b5b4:238a:691f:17d3:24ff;
    option dhcp6.name-servers fde8:cceb:ccfe:b5b4:238a:691f:17d3:2440;
    host test {
      ddns-hostname "test";
      option host-name "test";
      host-identifier option dhcp6.client-id
00:01:00:01:18:e4:f2:d5:00:1d:72:be:b4:1c;
      fixed-address6 fde8:cceb:ccfe:b5b4:238a:691f:17d3:2454;
    }
  }


Here is the dhclient6 log:
Bound to *:546
Listening on Socket/eth0
Sending on   Socket/eth0
PRC: Soliciting for leases (INIT).
XMT: Forming Solicit, 0 ms elapsed.
XMT:  X-- IA_NA 00:ea:db:36
XMT:  | X-- Request renew in  +3600
XMT:  | X-- Request rebind in +5400
XMT: Solicit on eth0, interval 1040ms.
RCV: Advertise message on eth0 from fde8:cceb:ccfe:b5b4:238a:691f:17d3:2440.
RCV:  X-- IA_NA 00:ea:db:36
RCV:  | X-- starts 1364602106
RCV:  | X-- t1 - renew  +0
RCV:  | X-- t2 - rebind +0
RCV:  | X-- [Options]
RCV:  | | X-- IAADDR fde8:cceb:ccfe:b5b4:238a:691f:17d3:24ae
RCV:  | | | X-- Preferred lifetime 375.
RCV:  | | | X-- Max lifetime 600.
RCV:  X-- Server ID: 00:01:00:01:18:e4:f2:d5:00:1d:72:be:b4:1c
RCV:  Advertisement recorded.
PRC: Selecting best advertised lease.
PRC: Considering best lease.
PRC:  X-- Initial candidate 00:01:00:01:18:e4:f2:d5:00:1d:72:be:b4:1c
(s: 155, p: 0).
XMT: Forming Request, 0 ms elapsed.
XMT:  X-- IA_NA 00:ea:db:36
XMT:  | X-- Requested renew  +3600
XMT:  | X-- Requested rebind +5400
XMT:  | | X-- IAADDR fde8:cceb:ccfe:b5b4:238a:691f:17d3:24ae
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  V IA_NA appended.
XMT: Request on eth0, interval 1040ms.
RCV: Reply message on eth0 from fde8:cceb:ccfe:b5b4:238a:691f:17d3:2440.
RCV:  X-- IA_NA 00:ea:db:36
RCV:  | X-- starts 1364602107
RCV:  | X-- t1 - renew  +0
RCV:  | X-- t2 - rebind +0
RCV:  | X-- [Options]
RCV:  | | X-- IAADDR fde8:cceb:ccfe:b5b4:238a:691f:17d3:24ae
RCV:  | | | X-- Preferred lifetime 375.
RCV:  | | | X-- Max lifetime 600.
RCV:  X-- Server ID: 00:01:00:01:18:e4:f2:d5:00:1d:72:be:b4:1c
PRC: Bound to lease 00:01:00:01:18:e4:f2:d5:00:1d:72:be:b4:1c.



More information about the dhcp-users mailing list