mac

288
Chapter 17 Commands for DHCP
Option 82
17.1 debug ip dhcp relay packet
Command: debug ip dhcp relay packet
Function: This command is used to display the information of data packets processing in
DHCP Relay Agent, including the ―add‖ and ―peel‖ action of option 82.
Parameters: None
Command Mode: Admin Mode.
User Guide: Use this command during the operation to display the procedure of data
packets processing of the server and to display the corresponding option82 operation
information. Identified option 82 information of the request message and the option 82
information returned by the reply message.
Example: Display the information of data packets processing in DHCP Relay Agent.
Switch(config)# debug ip dhcp relay packet
17.2 ip dhcp relay information option
Command: ip dhcp relay information option
no ip dhcp relay information option
Function: Set this command to enable the option82 function of the switch Relay Agent.
The no ip dhcp relay information optioncommand is used to disable the option82
function of the switch Relay Agent.
Parameters: None.
Default Settings: The system disables the option82 function by default.
Command Mode: Global configuration mode
Usage Guide: Only the DHCP Relay Agents configuring with this command can add
option82 to the DHCP request message, and let the server to process it. Before enabling
this function, users should make sure that the DHCP service is enabled and the Relay
Agent will transmit the udp broadcast messages whose destination port is 67.
Example: Enable the option82 function of the Relay Agent.
Switch(config)#service dhcp
Switch(config)# ip forward-protocol udp bootps