DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Configures the source interface for the DHCP relay agent.
[
no
]
ip dhcp relay source-interface interface
Step 2
Example:
The DHCP relay source interface can be
configured globally, per interface, or both. When
both the global and interface levels are
configured, the interface-level configuration
overrides the global configuration.
Note
switch(config)# ip dhcp relay source-interface
loopback 2
Displays the DHCP relay configuration.
(Optional)
show ip dhcp relay
[
interface interface
]
Example:
Step 3
switch(config)# show ip dhcp relay
Displays the DHCP configuration.
(Optional)
show running-config dhcp
Example:
Step 4
switch(config)# show running-config dhcp
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 5
switch(config)# copy running-config startup-config
Enabling or Disabling DHCP Smart Relay Globally
You can enable or disable DHCP smart relay globally on the device.
Before you begin
Ensure that the DHCP feature is enabled.
Ensure that the DHCP relay agent is enabled.
SUMMARY STEPS
1.
configure terminal
2.
[
no
]
ip dhcp smart-relay global
3.
(Optional)
show ip dhcp relay
4.
(Optional)
show running-config dhcp
5.
(Optional)
copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
354
Configuring DHCP
Enabling or Disabling DHCP Smart Relay Globally