Operation Manual – DHCP
H3C S3600 Series Ethernet Switches-Release 1510 Chapter 4
DHCP Snooping Configuration
4-3
DHCP snooping listens the following two types of packets to retrieve the IP addresses
the DHCP clients obtain from DHCP servers and the MAC addresses of the DHCP
clients:
z DHCP-ACK packet
z DHCP-REQUEST packet
4.2 DHCP Snooping Configuration
Table 4-1 Configure the DHCP snooping function
Operation Command Description
Enter system view
system-view
—
Enable the DHCP
snooping function
dhcp-snooping
Required
By default, the DHCP
snooping function is disabled.
Enter Ethernet port
view
interface interface-type
interface-number
—
Set the port
connected to a
DHCP server to a
trusted port
dhcp-snooping trust
Optional
By default, all ports of a
switch are untrusted ports.
Note:
When you need to enable DHCP snooping on the switches in a fabric state, configure
the fabric ports on all devices to be trusted ports to ensure that the users connected to
each device can obtain IP addresses.
4.3 Displaying DHCP Snooping
After the above configurations, you can verify the configurations by executing the
display command in any view.
Table 4-2 Display DHCP snooping
Operation Command Description
Display the user IP-MAC address
mapping entries recorded by the
DHCP snooping function
display
dhcp-snooping [ unit
unit-id ]
Display the (enabled/disabled)
state of the DHCP snooping
function and the trusted ports
display
dhcp-snooping trust
You can execute the
display command in
any view