4.
(Optional)
show running-config dhcp
5.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Configures the interfaces as trusted sources of DHCP
messages. The
no
form of this command configures the
ports as untrusted interfaces.
[
no
]
ip dhcp relay information trust-all
Example:
switch(config)# ip dhcp relay information trust-all
Step 2
Displays the DHCP relay trusted ports configuration.
(Optional)
show ip dhcp relay information
trusted-sources
Step 3
Example:
switch(config)# show ip dhcp relay information
trusted-sources
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 the DHCP Relay Agent
You can enable or disable the DHCP relay agent. By default, the DHCP relay agent is enabled.
Before you begin
Ensure that the DHCP feature is enabled.
SUMMARY STEPS
1.
configure terminal
2.
[
no
]
ip dhcp relay
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
348
Configuring DHCP
Enabling or Disabling the DHCP Relay Agent