DHCP vendor option support
A configurable dynamic host configuration protocol (DHCP) client is a network client feature that:
-
allows use of user-specified client or class identifiers,
-
supports suggestion of lease time during address requests, and
-
enables configuration of vendor-class and vendor-specific information with Option 124 and Option 125.
This functionality provides flexibility for DHCP clients when requesting addresses and enables differential services, device classification, and feature enablement.
DHCP client options
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.
These options are used by Zero-Touch Provisioning (ZTP), Cisco Plug-and-Play (PnP), and Identity Services Engine (ISE) to support multiple use cases.
For example, the content of Option 124 is used for device classification and enabling solution-specific features.
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.
This 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.
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 / user defined string / disable Option 124. |
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 16—This option is used by DHCP clients and servers to exchange vendor-class information.
-
Option 17—This option is used by DHCP clients and servers to exchange vendor-specific information
In DHCPv6, option-16 and option-17 are used by DHCP clients and servers to exchange vendor-specific information.
The ipv6 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-16.
The default behavior for this command is to continue to send device PID when you choose option-16 but it can be overridden to carry MAC Address in Day 1 configuration mode using the ipv6 dhcp client vendor-class command.
By default, Cisco IOS XE DHCP client sends the following data:
|
Attribute |
IPv4 DHCP Option |
Default Value |
|---|---|---|
|
Vendor Class Option |
16 |
PID |
Note |
The ipv6 dhcp client vendor-class [mac-address | hex | ascii | disable] command can be used to override default value of PID with MAC Address or User defined string or disable the option. |
Feedback