Configuration procedure, Verifying the configuration, Configuring the dhcp relay agent – H3C Technologies H3C S12500-X Series Switches User Manual
Page 86: Overview
75
Figure 28 Network diagram
Configuration procedure
# Enable DHCP snooping.
[SwitchB] dhcp snooping enable
# Configure Ten-GigabitEthernet 1/0/1 as a trusted port.
[SwitchB] interface Ten-GigabitEthernet1/0/1
[SwitchB-Ten-GigabitEthernet1/0/1] dhcp snooping trust
[SwitchB-Ten-GigabitEthernet1/0/1] quit
# Configure Option 82 on Ten-GigabitEthernet 1/0/2.
[SwitchB] interface Ten-GigabitEthernet1/0/2
[SwitchB-Ten-GigabitEthernet1/0/2] dhcp snooping information enable
[SwitchB-Ten-GigabitEthernet1/0/2] dhcp snooping information strategy replace
[SwitchB-Ten-GigabitEthernet1/0/2] dhcp snooping information circuit-id string
company001
[SwitchB-Ten-GigabitEthernet1/0/2] dhcp snooping information remote-id string device001
[SwitchB-Ten-GigabitEthernet1/0/2] quit
# Configure Option 82 on Ten-GigabitEthernet 1/0/3.
[SwitchB] interface Ten-GigabitEthernet 1/0/3
[SwitchB-Ten-GigabitEthernet1/0/3] dhcp snooping information enable
[SwitchB-Ten-GigabitEthernet1/0/3] dhcp snooping information strategy replace
[SwitchB-Ten-GigabitEthernet1/0/3] dhcp snooping information circuit-id verbose
node-identifier sysname format ascii
[SwitchB-Ten-GigabitEthernet1/0/3] dhcp snooping information remote-id string device001
Verifying the configuration
Use the display dhcp snooping information command to display Option 82 configuration information on
Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3 on the DHCP snooping device.