Information about DHCP Vendor Option Support
The configurable dynamic host configuration protocol client functionality allows a DHCP client to use a user-specified client identifier, class identifier, or suggested lease time when requesting an address from a DHCP server.
Configuration parameters and other control information are carried in tagged data items that are stored in the options field of the DHCP message. The DHCP client provides flexibility by allowing the following options to be configured for a DHCP client:
-
Option 124—This option is used by DHCP clients and servers to exchange vendor-class information.
-
Option 125—This option is used by DHCP clients and servers to exchange vendor-specific information.
In the DHCP address assignment workflow, Option 124 (Vendor-Identifying Vendor Class) and Option 125 (Vendor-Identifying Information) are used to provide differential services. These options are used by Zero-Touch Provisioning (ZTP), Cisco Plug-and-Play (PnP), and Identity Services Engine (ISE) across solutions to enable several use cases. For example, the content of Option 124 is used for device classification, enable solution specific feature and so on.
By default, Cisco IOS XE DHCP client sends the following data:
Attribute | IPv4 DHCP Option |
Default Value |
---|---|---|
Vendor-Identifying Vendor Class Option | 124 |
PID |
Note |
The ip dhcp client vendor-class <mac-address | ascii | disable | hex> command overrides PID with MAC Address or user defined string or disable Option 124. |
The DHCP Vendor Option Support feature introduces new CLI parameters to make Option 124 and Option 125 flexible. You can modify and customize enabling vendor specific options to carry different values for different customer features. The combination of Option 124 and Option 125 enables various features.
The ip dhcp client vendor-class command provides flexibility to pack either Device PID or MAC Address of the DHCP client or any user configurable string in option-124. The default behavior for this command is to continue to send Device PID when you choose option 124. The default behavior can be overridden to carry MAC Address in Day 1 configuration mode by explicitly requesting option-125 from the server using the ip dhcp client vendor-class command.