Verifying the configuration, Option 82 configuration example, Network requirements – H3C Technologies H3C S5560 Series Switches User Manual
Page 93: Configuration procedure

78
[SwitchB-GigabitEthernet1/0/2] quit
Verifying the configuration
# Verify that the DHCP client can obtain an IP address and other configuration parameters only from the
authorized DHCP server. (Details not shown.)
# Display the DHCP snooping entry recorded for the client.
[SwitchB] display dhcp snooping binding
Option 82 configuration example
Network requirements
As shown in
, enable DHCP snooping and configure Option 82 on Switch B as follows:
•
Configure the handling strategy for DHCP requests that contain Option 82 as replace.
•
On GigabitEthernet 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 GigabitEthernet 1/0/3, for the Circuit ID sub-option, configure the padding format as verbose,
access node identifier as sysname, and code type as ascii. For the Remote ID sub-option, configure
the padding content as device001.
Figure 29 Network diagram
Configuration procedure
# Enable DHCP snooping.
[SwitchB] dhcp snooping enable
# Configure GigabitEthernet 1/0/1 as a trusted port.
[SwitchB] interface GigabitEthernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] dhcp snooping trust
[SwitchB-GigabitEthernet1/0/1] quit
# Configure Option 82 on GigabitEthernet 1/0/2.
[SwitchB] interface GigabitEthernet 1/0/2
[SwitchB-GigabitEthernet1/0/2] dhcp snooping information enable
[SwitchB-GigabitEthernet1/0/2] dhcp snooping information strategy replace
[SwitchB-GigabitEthernet1/0/2] dhcp snooping information circuit-id string company001
[SwitchB-GigabitEthernet1/0/2] dhcp snooping information remote-id string device001
[SwitchB-GigabitEthernet1/0/2] quit