To enable DHCP clients to obtain IP addresses only from authorized DHCP servers, configure the interfaces (if0, in Figure 1) directly or indirectly connected to the DHCP servers trusted by the administrator as the trusted interfaces, and other interfaces (if2, in Figure 1) as untrusted interfaces. This prevents bogus DHCP servers from assigning IP addresses to DHCP clients.
After enabling DHCP snooping on the interface or in the VLAN connected to the user, configure the interface connected to the DHCP server as the trusted interface, so that the dynamic DHCP snooping binding table is generated.
Perform the following steps on the Layer 2 access device.
The system view is displayed.
In the interface view:
In the VLAN view:
Run bridge-domain bd-id
The BD view is displayed.
Run dhcp snooping trusted
The interface is configured as a trusted interface.
By default, an interface is an untrusted interface.