CLI Reference DHCP Snooping Configuration Commands
Interface configuration mode.
This command can deny all DHCP request messages under the port, that is,
all the users under the port are prohibited to request addresses through
DHCP.
The following is an example of setting fastethernet 0/2 to be suppression
status:
Ruijie# configure terminal
Ruijie(config)# interface fastEthernet 0/2
Ruijie(config-if)# ip dhcp snooping suppression
Ruijie(config-if)# end
View the configuration information of the
DHCP snooping.
ip dhcp snooping trust
Use this command to set the ports of the switch as trusted ports. The no form of this command sets the
ports as untrust ports.
[no] ip dhcp snooping trust
All ports are untrust ports.
Interface configuration mode.
Use this command to set the port as trust port. The DHCP response
messages received under the trust port are forwarded normally, but the
response messages received under the untrust port will be discarded.
The following is an example of setting fastEthernet 0/1 as a trust port:
Ruijie# configure terminal
Ruijie(config)# interface fastEthernet 0/1
Ruijie(config-if)# ip dhcp snooping trust
Ruijie(config-if)# end
Ruijie# show ip dhcp snooping