Configuring DHCP
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
[no] ip dhcp smart-relay global
Example:
switch(config)# ip dhcp smart-relay global
Step 3
(Optional) show ip dhcp relay
Example:
switch(config)# show ip dhcp relay
Step 4
(Optional) show running-config dhcp
Example:
switch(config)# show running-config dhcp
Step 5
(Optional) copy running-config startup-config
Example:
switch(config)# copy running-config startup-config
Enabling or Disabling DHCP Smart Relay on a Layer 3 Interface
You can enable or disable DHCP smart relay on Layer 3 interfaces.
Before you begin
Ensure that the DHCP feature is enabled.
Ensure that the DHCP relay agent is enabled.
SUMMARY STEPS
1. configure terminal
2. interface interface slot/port
3. [no] ip dhcp smart-relay
4. exit
5. exit
6. (Optional) show ip dhcp relay
7. (Optional) show running-config dhcp
8. (Optional) copy running-config startup-config
Enabling or Disabling DHCP Smart Relay on a Layer 3 Interface
Purpose
Enters global configuration mode.
Enables DHCP smart relay globally. The no form of this
command disables DHCP smart relay.
Displays the DHCP smart relay configuration.
Displays the DHCP configuration.
Copies the running configuration to the startup
configuration.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
355