Configuration procedure – H3C Technologies H3C S5120 Series Switches User Manual
Page 261

3-8
z
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.
z
On GigabitEthernet 1/0/3, configure the padding format as verbose, access node identifier as
sysname, and code type as ascii for Option 82.
z
Switch A forwards DHCP requests to the DHCP server after replacing Option 82 in the requests, so
that the DHCP clients can obtain IP addresses.
Configuration procedure
# Enable DHCP snooping.
[SwitchA] dhcp-snooping
# Specify GigabitEthernet1/0/1 as trusted.
[SwitchA] interface GigabitEthernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] dhcp-snooping trust
[SwitchA-GigabitEthernet1/0/1] quit
# Configure GigabitEthernet1/0/2 to support Option 82.
[SwitchA] interface GigabitEthernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] dhcp-snooping information enable
[SwitchA-GigabitEthernet1/0/2] dhcp-snooping information strategy replace
[SwitchA-GigabitEthernet1/0/2] dhcp-snooping information circuit-id string company001
[SwitchA-GigabitEthernet1/0/2] dhcp-snooping information remote-id string device001
[SwitchA-GigabitEthernet1/0/2] quit
# Configure GigabitEthernet1/0/3 to support Option 82.
[SwitchA] interface GigabitEthernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] dhcp-snooping information enable
[SwitchA-GigabitEthernet1/0/3] dhcp-snooping information strategy replace
[SwitchA-GigabitEthernet1/0/3] dhcp-snooping information format verbose node-identifier
sysname
[SwitchA-GigabitEthernet1/0/3] dhcp-snooping information circuit-id format-type ascii
[SwitchA-GigabitEthernet1/0/3] dhcp-snooping information remote-id format-type ascii