The following is sample DHCPv4 configuration from the ISC DHCP Server that displays the use of Option 77. The if condition in this sample implies that if Option 77 exists, and is equal to the string iPXE , then advertise the Boot File URI for the image. host Switch2 { fixed-address 192.168.1.20 ; hardware ethernet CC:D8:C1:85:6F:11 ; #user-class = length of string + ASCII code for iPXE if exists user-class and option user-class = 04:68:50:58:45 { filename "http://192.168.1.146/test-image.bin" } } • DHCPv6 Option 1—Client Identifier Option. This option is populated with the value of the ROMMON environment variable SYSTEM_SERIAL_NUM as specified in RFC 3315.
The recommended format for the ROMMON environment variable is MAC_ADDR. • DHCPv6 Option 15—User Class Option. This option is the IPv6 User Class option in a DHCPv6 solicit message, and is populated with the string, iPXE. The following sample shows Option 15 defined in the ISC DHCP server: option dhcp6.user-class code 15 = string ; The following is a sample DHCP Server configuration that uses the DHCPv6 Option 15: #Client-specific parameters host switch1 { #assigning a fixed IPv6 address fixed-address6 2001:DB8::CAFE ; #Client DUID in hexadecimal format 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; #User class 00:04:69:50:58:45 is len 4 + "iPXE" if option dhcp6.user-class = 00:04:69:50:58:45 { option dhcp6.bootfile-url "http://[2001:DB8::461/platform-pxe/edi46/test-image.bin"; } } • DHCPv6 Option 16—Vendor Class Option. Contains the device product ID (PID). The PID can be determined from the output of the show inventory command or from the MODEL_NUM rommon variable. Option 16 is not a default option in the ISC DHCP Server and can be defined as follows: option dhcp6.vendor-class-data code 16 = string; The following sample configuration illustrates the use of DHCPv6 Option 16: # Source:
dhcpd6ConfigPD host host1-ipxe6-auto-host1 { 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: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:4D { option dhcp6.bootfile-url Provisioning iPXE-Supported DHCP Options Programmability Configuration Guide, Cisco IOS XE 17.16.x 92