subnet6 2001:db8::/64 { #subnet range for clients requiring an address range6 2001:db8:0000:0000::/64; #DNS server options option dhcp6.name-servers 2001:db8::46; } #Client-specific parameters host switch1 { #assigning a fixed IPv6 address fixed-address6 2001:DB8::CAFE ; #Client DUID in hexadecimal that contains: DUID-type "2" + "EN=9" + "Chassis serial number" host-identifier option dhcp6.client-id 00:02:00:00:00:09:46:4F:43:31:38:33: 31:58:31:41:53; option dhcp6.bootfile-url "http://[2001:DB8::461/platform-pxe/edi46/test-image.bin"; } For more information on DHCP server commands, see the ISC DHCP Server website.
In this sample configuration, the dhcp6.client-id option identifies the switch, and it is followed by the Enterprise Client DUID. The client DUID can be broken down for understanding as 00:02 + 00:00:00:09 + chassis serial number in hexadecimal format, where 2 refers to the Enterprise Client DUID Type, 9 refers to the reserved code for Cisco’s Enterprise DUID, followed by the ASCII code for the Chassis serial number in hexadecimal format. The chassis serial number for the switch in this sample is FOC1831X1AS. The Boot File URI is advertised to the switch only using the specified DUID. The DHCPv6 Vendor Class Option 16 can also be used to identify the switch on the DHCP Server.
To define Option 16 as a user-defined option, configure the following: option dhcp6.vendor-class-data code 16 = string; The following is a sample DHCP server configuration that identifies the switch based on the DHCPv6 Vendor Class Option 16 that is formed by using the switch Product ID: # Source: dhcp6ConfigPID host edi-46-ipxe6-auto-edi46 { fixed-address6 2001:DB8::1234; host-identifier option dhcp6.client-id 00:02:00:00:00:09: 46:4F:43:31:38:33:31:58:31:58:31:41:53; if option dhcp6.vendor-class-data = 00:00:00:09:00:0E:57:
53:2D:43:33:38:35:30:2D:32:34:50:2D:4C { option dhcp6.bootfile-url "http://[2001:DB8::461/platform-pxe/edi46/17jan-dev.bin"; } } In this sample configuration, the dhcp6.vendor-class-data option refers to the DHCPv6 Option 16. In the dhcp6.vendor-class-data, 00:00:00:09 is Cisco’s Enterprise DUID, 0E is the length of the PID, and the rest is the PID in hexadecimal format. The PID can also be found from the output of the show inventory command or from the CFG_MODEL_NUM rommon variable. The PID used in this sample configuration is WS-C3850-24P-L. DHCPv6 options and DUIDs in the server configuration must be specified in the hexadecimal format, as per the ISC DHCP server guidelines.
Provisioning Sample DHCPv6 Server Configuration for iPXE Programmability Configuration Guide, Cisco IOS XE 17.16.x 97