dhcp snooping trust
Use dhcp snooping trust to configure a port as a trusted port.
Use undo dhcp snooping trust to restore the default state of a port.
Syntax
dhcp snooping trust
undo dhcp snooping trust
Default
After you enable DHCP snooping, all ports are untrusted.
Views
Layer 2 Ethernet interface/Layer 2 aggregate interface view
Layer 3 Ethernet interface/Layer 3 aggregate interface view
S-channel interface/S-channel aggregate interface view
Ethernet service instance view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
Specify the ports facing the DHCP server as trusted ports and specify the other ports as untrusted ports so DHCP clients can obtain valid IP addresses.
Examples
# Specify Layer 2 Ethernet interface as a trusted port.
<Sysname> system-view [Sysname] interface [Sysname-] dhcp snooping trust
Related commands
display dhcp snooping trust