0

how can i configure the server to make static record DUID - IPv6 ?

For example i have such DHCPv6 request:

Client Identifier
    Option: Client Identifier (1)
    Length: 7
    Value: 31303030303133
    DUID: 31303030303133        # <--- this
    DUID Type: Unknown (12592)

And i want to bind some static IPv6 only for DUID 31303030303133; How can i do this?

Vololodymyr
  • 113
  • 1
  • 5

1 Answers1

1

You can use the following configuration in your dhcpd6.conf:

host example {
  host-identifier option dhcp6.client-id 31:30:30:30:30:31:33;
  fixed-address6 2001:db8:111:222::333;
}

PS: that DUID looks weird. It is definitely not one of the standard DUID types.

Sander Steffann
  • 7,712
  • 19
  • 29
  • Thank you for the unswer. It kind of new device, which will include self serial number to DUID. And one more question. Do i need to create subnet for 2001:db8:111:222::333 address ? – Vololodymyr Apr 03 '15 at 16:59
  • You need to create a /64 subnet on the LAN and you need a router that sends RAs to the LAN to provide subnet and routing information. That information is not part of DHCPv6 – Sander Steffann Apr 03 '15 at 18:03