System information
Publication date: Feb., 2012
Revision A1
- 39 -
CLIReferenceGuide
Copyright @ 2012 by Amer Networks
Chapter 11 DHCPSnoopingCommandsofCLI
DHCP
snooping
ThesectiondescribestoconfiguretheDHCPSnoopingparametersofthe
switch.TheDHCPSnoopingcanpreventattackersfromaddingtheirown
DHCPserverstothenetwork.
Table 10: DHCP Snooping Commands
Command
Function
clear
Clear DHCP snooping statistics
mode
Configure DHCP snooping mode
Port-mode
Configure DHCP snooping port mode
show
Show DHCP snooping information
clear: ThecommandletsyouclearDHCPsnoopingstatistics
entrywhatyousetontheswitch.
Syntax:
clear <statistics> <port-list>
Parameter :
statistics Clear DHCP snooping statistics
<port-list> Port list, available value is from 1 to 10B format:1,3-5
EXAMPLE:
mode: ThecommandletsyouconfigureDHCPsnoopingmode
Syntax:
mode disable /enable
Parameter :
disable The parameter let you disable DHCP snooping mode
enable The parameter let you enable DHCP snooping mode.
NOTE: When enable DHCP snooping mode operation, the
request DHCP messages will be forwarded to trusted ports
and only allowed reply packets from trusted ports.
EXAMPLE:
Switch(dhcp-snooping)# clear statistics 1
Switch(dhcp-snooping)#