R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

72
<SwitchB> system-view
[SwitchB] dhcp-snooping
# Specify Ethernet 1/1 as trusted.
[SwitchB] interface ethernet 1/1
[SwitchB-Ethernet1/1] dhcp-snooping trust
[SwitchB-Ethernet1/1] quit
DHCP snooping Option 82 support configuration
example
Network requirements
As shown in Figure 32, Switch B replaces Option 82 in DHCP requests before forwarding them to the
DHCP server (Switch A).
The Circuit ID sub-option is company001.
The Remote ID sub-option is device001.
On Ethernet 1/3, configure the padding format as verbose, access node identifier as sysname,
and code type as ascii for Option 82.
Configuration procedure
# Enable DHCP snooping.
<SwitchB> system-view
[SwitchB] dhcp-snooping
# Specify Ethernet 1/1 as trusted.
[SwitchB] interface ethernet 1/1
[SwitchB-Ethernet1/1] dhcp-snooping trust
[SwitchB-Ethernet1/1] quit
# Configure Ethernet 1/2 to support Option 82.
[SwitchB] interface ethernet 1/2
[SwitchB-Ethernet1/2] dhcp-snooping information enable
[SwitchB-Ethernet1/2] dhcp-snooping information strategy replace
[SwitchB-Ethernet1/2] dhcp-snooping information circuit-id string company001
[SwitchB-Ethernet1/2] dhcp-snooping information remote-id string device001
[SwitchB-Ethernet1/2] quit
# Configure Ethernet 1/3 to support Option 82.
[SwitchB] interface ethernet 1/3
[SwitchB-Ethernet1/3] dhcp-snooping information enable
[SwitchB-Ethernet1/3] dhcp-snooping information strategy replace
[SwitchB-Ethernet1/3] dhcp-snooping information format verbose node-identifier sysname
[SwitchB-Ethernet1/3] dhcp-snooping information circuit-id format-type ascii
[SwitchB-Ethernet1/3] dhcp-snooping information remote-id format-type ascii