The dhcp relay information enable command enables the Option 82 function for the DHCP relay agent.
The undo dhcp relay information enable command disables the Option 82 function for the DHCP relay agent.
By default, the Option 82 function is disabled for the DHCP relay agent.
Usage Scenario
This command applies to the DHCP relay agent. When DHCP Request messages carry Option 82 information, the DHCP server can locate user positions accurately and assign IP addresses to users using different policies. After the Option 82 function is enabled on the DHCP relay agent, the device checks the Option 82 field contained in the packets and processes the packets using corresponding policies.
Prerequisites
DHCP has been enabled by running the dhcp enable command in the system view.
DHCP relay has been enabled by running the dhcp select relay command in the interface view.
Precautions
If you run the dhcp relay information enable command on an interface and the dhcp option82 { insert | rebuild } enable command in the VLAN view or on a physical interface in the VLAN simultaneously, only the dhcp relay information enable command takes effect.
Follow-up Tasks
Run the dhcp relay information strategy { drop | keep | replace } command in the interface view to configure strategies for the DHCP relay agent to process Option 82 information.
# Enable the Option 82 function for the DHCP relay agent on the VLANIF100 interface.
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] vlan 100 [HUAWEI-vlan100] quit [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] dhcp select relay [HUAWEI-Vlanif100] dhcp relay information enable
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] dhcp select relay [HUAWEI-GigabitEthernet0/0/1] dhcp relay information enable