Option 82 configuration example
Network requirements
As shown in Figure 33, 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 , configure the padding content for the Circuit ID sub-option as company001 and for the Remote ID sub-option as device001.
On , configure the padding mode for the Circuit ID sub-option as verbose, access node identifier as sysname, and padding format as ascii. Configure the padding content for the Remote ID sub-option as device001.
Figure 33: Network diagram
Configuration procedure
# Enable DHCP snooping.
<SwitchB> system-view [SwitchB] dhcp snooping enable
# Configure as a trusted port.
[SwitchB] interface [SwitchB-] dhcp snooping trust [SwitchB-] quit
# Configure Option 82 on .
[SwitchB] interface [SwitchB-] dhcp snooping information enable [SwitchB-] dhcp snooping information strategy replace [SwitchB-] dhcp snooping information circuit-id string company001 [SwitchB-] dhcp snooping information remote-id string device001 [SwitchB-] quit
# Configure Option 82 on .
[SwitchB] interface [SwitchB-] dhcp snooping information enable [SwitchB-] dhcp snooping information strategy replace [SwitchB-] dhcp snooping information circuit-id verbose node-identifier sysname format ascii [SwitchB-] dhcp snooping information remote-id string device001
Verifying the configuration
# Display Option 82 configuration information on and on the DHCP snooping device.
[SwitchB] display dhcp snooping information