The device-sensor dhcp option command enables the DHCP-based terminal type awareness function.
The undo device-sensor dhcp option command disables the DHCP-based terminal type awareness function.
By default, the DHCP-based terminal type awareness function is disabled.
device-sensor dhcp option option-code &<1-6>
undo device-sensor dhcp option option-code &<1-6>
Parameter | Description | Value |
---|---|---|
option-code | Specifies the DHCP option field that the device needs to resolve. The option fields in a DHCP packet carry the control information and parameters, for example, terminal type. |
The value is an integer that ranges from 1 to 254. |
Usage Scenario
A device usually connects to many types of terminals. You may need to assign different network access rights or packet processing priorities to the terminals of different types. For example, the voice devices, such as IP phones, should be assigned a high packet processing priority because voice signals require low delay and jitter.
After the DHCP-based terminal type awareness function is enabled, the device can resolve the option fields that carry terminal type information in the received DHCP Request packets. The device then sends the option information to the RADIUS server through RADIUS accounting packets. Through the option information, the RADIUS server knows the terminal types and controls the network access rights and packet processing priorities of the terminals.
Precautions
The command takes effect only when the authentication or accounting mode in the AAA scheme is RADIUS.
To make this command take effect, you must run the dhcp snooping enable command on the interfaces or in VLANs.