DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Enters interface configuration mode, where
slot
/
port
is the
interface for which you want to enable or disable DHCP
smart relay.
interface interface slot
/
port
Example:
switch(config)# interface ethernet 2/3
switch(config-if)#
Step 2
Enables DHCP smart relay on the interface. The
no
form
of this command disables DHCP smart relay on the
interface.
[
no
]
ip dhcp smart-relay
Example:
switch(config-if)# ip dhcp smart-relay
Step 3
Exits interface configuration mode.
exit
Example:
Step 4
switch(config-if)# exit
switch(config)#
Exits global configuration mode.
exit
Example:
Step 5
switch(config)# exit
switch#
Displays the DHCP smart relay configuration.
(Optional)
show ip dhcp relay
Example:
Step 6
switch# show ip dhcp relay
Displays the DHCP configuration.
(Optional)
show running-config dhcp
Example:
Step 7
switch# show running-config dhcp
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 8
switch# copy running-config startup-config
Configuring DHCPv6
Enabling or Disabling the DHCPv6 Relay Agent
You can enable or disable the DHCPv6 relay agent. By default, the DHCPv6 relay agent is enabled.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
356
Configuring DHCP
Configuring DHCPv6