R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

75
Figure 28 Network diagram
Configuration procedure
# Enable DHCP snooping.
<RouterB> system-view
[RouterB] dhcp snooping enable
# Configure GigabitEthernet 2/1/1 as a trusted port.
[RouterB] interface gigabitethernet 2/1/1
[RouterB-GigabitEthernet2/1/1] dhcp snooping trust
[RouterB-GigabitEthernet2/1/1] quit
# Enable DHCP snooping to record clients' IP-to-MAC bindings on GigabitEthernet 2/1/2.
[RouterB] interface gigabitethernet 2/1/2
[RouterB-GigabitEthernet2/1/2] dhcp snooping binding record
[RouterB-GigabitEthernet2/1/2] quit
Verifying the configuration
The DHCP client can obtain an IP address and other configuration parameters only from the authorized
DHCP server. You can display the DHCP snooping entry recorded for the client with the display dhcp
snooping binding command.
Option 82 configuration example
Network requirements
As shown in Figure 29, enable DHCP snooping and configure Option 82 on Router B as follows:
Configure the handling strategy for DHCP requests that contain Option 82 as replace.
On GigabitEthernet 2/1/2, configure the padding content for the Circuit ID sub-option as
company001 and for the Remote ID sub-option as device001.
On GigabitEthernet 2/1/3, configure the padding format for the Circuit ID sub-option as verbose,
access node identifier as sysname, and code type as ascii, and configure the padding content for
the Remote ID sub-option as device001.