DHCP Configuration 291
Figure 71 Interaction between a DHCP client and a DHCP server.
■ 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:
■ DHCP-ACK packet
■ DHCP-REQUEST packet
DHCP Snooping
Configuration
Table 288 shows the configuration specifications for DHCP snooping.
Table 288 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.