
Operation Manual – DHCP
H3C S3610&S5510 Series Ethernet Switches
Chapter 5 DHCP Snooping Configuration
5-5
To do…
Use the command…
Remarks
Clear DHCP snooping
address binding
information
reset dhcp-snooping
{
all
|
ip
ip-address
}
Available in user view
5.5 DHCP Snooping Configuration Example
I. Network requirements
z
Switch B is connected to a DHCP server through Ethernet 1/0/1, and to two DHCP
clients through Ethernet 1/0/2 and Ethernet 1/0/3.
z
Ethernet 1/0/1 forwards DHCP server responses while the other two do not.
z
Switch B records clients’ IP-to-MAC address bindings in DHCP-REQUEST
messages and DHCP-ACK messages received from trusted ports.
z
Switch B supports Option 82. After receiving a DHCP request from the client,
Switch B adds Option 82 padded in verbose format to the request message and
forwards the message to the DHCP server.
II. Network diagram
Eth1/0/1
Switch A
DHCP server
Switch B
DHCP snooping
Eth1/0/2
Eth1/0/3
DHCP client
DHCP client
Figure 5-1
Network diagram for DHCP snooping configuration
III. Configuration procedure
# Enable DHCP snooping.
<SwitchB> system-view
[SwitchB] dhcp-snooping
# Specify Ethernet 1/0/1 as trusted port.
[SwitchB] interface ethernet 1/0/1
[SwitchB-Ethernet1/0/1] dhcp-snooping trust
[SwitchB-Ethernet1/0/1] quit
# Configure DHCP Snooping to support Option 82 on Ethernet 1/0/2.