The dhcp relay information strategy command configures the strategies used by a DHCP relay agent to process Option 82 information.
The undo dhcp relay information strategy command restores the default setting.
By default, the strategy used by a DHCP relay agent to process Option 82 information is replace.
dhcp relay information strategy { drop | keep | replace }
undo dhcp relay information strategy
Parameters |
Description |
Value |
---|---|---|
drop |
Configures the DHCP relay agent to drop Option 82 information. |
- |
keep |
Configures the DHCP relay agent to keep Option 82 information. |
- |
replace |
Configures the DHCP relay agent to replace Option 82 information. |
- |
Usage Scenario
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.
The Option 82 function has been enabled for the DHCP relay agent by using the dhcp relay information enable command.
# Configure the DHCP relay agent to drop Option 82 information on VLANIF 100.
<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-Vlanif100] dhcp relay information strategy drop
<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 [HUAWEI-GigabitEthernet0/0/1] dhcp relay information strategy drop