IPv6 static IP address

MAYER Hans mayer at iiasa.ac.at
Fri Apr 8 13:00:51 UTC 2016


Dear All,

We are using ISC dhcp version 4.3.3 with Cisco router and we try to implement IPv6. So far IPv4 is working well and with IPv6 it's fine with dynamic IP addresses and dynamic DNS updates are also working fine. But sometimes we want to assign static IP addresses. As well for V4 as for V6.
With IPv4 I have done this since several years. It's easy. I can read the MAC address from the lease file and can make an entry in dhcpd.conf 

For IPv6 it's different. In the leases file I can find an "ia-na" string. Which is an ugly string. For the config file I need a "host-identifier option dhcp6.client-id" entry to generate a static entry. This one is called "DHCPv6 Client DUID" running Windows "ipconfig" 
As far as I understand "DUID" can be generated out of the "ia-na" string. I read somewhere that the first 4 character should be stripped off and the rest is DUID. Is it ? 

Is there a program/script available which can do this ? 

Is there a way to identify a relation between IPv4 and IPv6 entries for the same device ? 
Sometimes I can find a host name in the leases file - ok -than it's easy.

But sometimes I see only this: ( for example ) 

ia-na "\000\000\000\000\000\001\000\001\034\333\232\203\3300bo%\202" {
  cltt 5 2016/04/08 05:24:10;
  iaaddr 2001:db8::1 {
    binding state active;
    preferred-life 40000;
    max-life 43200;
    ends 5 2016/04/08 17:24:10;
  }
}

Or even a much smaller entry. Just this.

ia-na "\312\010\000\016\000\001\000\001\033\310\2566^\373\3119\376\030" {
  cltt 2 2016/04/05 17:41:28;
}


Kind regards
Hans





More information about the dhcp-users mailing list