Figure 38 Network diagram
Configuration procedure
# Enable DHCP snooping.
<SwitchB> system-view
[SwitchB] dhcp-snooping
# Specify Ethernet 1/0/1 as trusted.
[SwitchB] interface Ethernet 1/0/1
[SwitchB-Ethernet1/0/1] dhcp-snooping trust
[SwitchB-Ethernet1/0/1] quit
DHCP snooping Option 82 support configuration example
Network requirements
As shown in
Configure the handling strategy for DHCP requests containing Option 82 as replace.
•
On Ethernet 1/0/2, configure the padding content for the circuit ID sub-option as company001 and
•
for the remote ID sub-option as device001.
On Ethernet 1/0/3, configure the padding format as verbose, access node identifier as sysname,
•
and code type as ascii for Option 82.
Switch B forwards DHCP requests to the DHCP server (Switch A) after replacing Option 82 in the
•
requests, so that the DHCP clients can obtain IP addresses.
Configuration procedure
# Enable DHCP snooping.
<SwitchB> system-view
[SwitchB] dhcp-snooping
# Specify Ethernet 1/0/1 as trusted.
[SwitchB] interface Ethernet 1/0/1
[SwitchB-Ethernet1/0/1] dhcp-snooping trust
[SwitchB-Ethernet1/0/1] quit
# Configure Ethernet 1/0/2 to support Option 82.
[SwitchB] interface Ethernet 1/0/2
[SwitchB-Ethernet1/0/2] dhcp-snooping information enable
[SwitchB-Ethernet1/0/2] dhcp-snooping information strategy replace
Figure
38, enable DHCP snooping and Option 82 support on Switch B.
83