Chapter 26 commands for dhcp option 82, 1 ip dhcp relay information option, 2 ip dhcp relay information policy – PLANET XGS3-24040 User Manual

Page 351: Ip dhcp relay information option, Ip dhcp relay information policy

Advertising
background image


26-64

Chapter 26 Commands for DHCP

Option 82

26.1 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 option” command 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

Switch(config)# ip dhcp relay information option

26.2 ip dhcp relay information policy

Command:

ip dhcp relay information policy {drop | keep | replace

no ip dhcp relay information policy

Function:

This command is used to set the retransmitting policy of the system for the received DHCP request

message which contains option82. The drop mode means that if the message has option82, then

the system will drop it without processing; keep mode means that the system will keep the original

option82 segment in the message, and forward it to the server to process; replace mode means that

the system will replace the option 82 segment in the existing message with its own option 82, and

forward the message to the server to process. The “no ip dhcp relay information policy” will set the

retransmitting policy of the option 82 DCHP message as “replace”.

Advertising