dhcp-snooping information strategy
Syntax
dhcp-snooping information strategy { append |drop | keep | replace }
undo dhcp-snooping information strategy
View
Layer 2 Ethernet port view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
append: Forwards the message containing Option 82 after adding content to the sub-option 9 of option 82. The append strategy is supported only when the private padding format and sub-option 9 are configured. In other cases, the device forwards the message without changing Option 82.
drop: Drops the message containing Option 82.
keep: Forwards the message containing Option 82 without changing Option 82.
replace: Forwards the message containing Option 82 after replacing the original Option 82 with the one padded in specified format.
Description
Use dhcp-snooping information strategy to configure the handling strategy for Option 82 in requesting messages.
Use undo dhcp-snooping information strategy to restore the default.
By default, the handling strategy for Option 82 in requesting messages is replace.
Related commands: display dhcp-snooping information, dhcp-snooping information format and dhcp-snooping information sub-option.
Examples
# Configure the handling strategy for Option 82 in requesting messages as keep.
<Sysname> system-view [Sysname] interface Ethernet1/0/1 [Sysname-Ethernet1/0/1] dhcp-snooping information enable [Sysname-Ethernet1/0/1] dhcp-snooping information strategy keep