DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Enables DHCP snooping globally. The
no
form of this
command disables DHCP snooping.
[
no
]
ip dhcp snooping
Example:
Step 2
switch(config)# ip dhcp snooping
Displays the DHCP configuration.
(Optional)
show running-config dhcp
Example:
Step 3
switch(config)# show running-config dhcp
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 4
switch(config)# copy running-config startup-config
Enabling or Disabling DHCP Snooping on a VLAN
You can enable or disable DHCP snooping on one or more VLANs. By default, DHCP snooping is disabled
on all VLANs.
Before you begin
Make sure that the DHCP feature is enabled.
If a VACL is configured on a VLAN that you are configuring with DHCP snooping, make sure that the VACL
permits DHCP traffic between DHCP servers and DHCP hosts.
Note
SUMMARY STEPS
1.
configure terminal
2.
[
no
]
ip dhcp snooping vlan vlan-list
3.
(Optional)
show running-config dhcp
4.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
339
Configuring DHCP
Enabling or Disabling DHCP Snooping on a VLAN