Purpose
Command or Action
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 5
switch(config-if)# copy running-config
startup-config
Enabling or Disabling DHCP Relay Trusted Port Functionality
You can enable or disable the DHCP relay trusted port functionality. By default, if the gateway address is set
to all zeros in the DHCP packet and the relay information option is already present in the packet, the DHCP
relay agent will not discard the packet. If the
ip dhcp relay information option trust
command is configured
globally, the DHCP relay agent will discard the packet if the gateway address is set to all zeros.
Before you begin
Make sure that the DHCP feature is enabled.
SUMMARY STEPS
1.
configure terminal
2.
[
no
]
ip dhcp relay information option trust
3.
(Optional)
show ip dhcp relay
4.
(Optional)
show ip dhcp relay information trusted-sources
5.
(Optional)
show running-config dhcp
6.
(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)#
Enables the DHCP relay trusted port functionality. The
no
form of this command disables this functionality.
[
no
]
ip dhcp relay information option trust
Example:
Step 2
switch(config)# ip dhcp relay information option
trust
Displays the DHCP relay configuration.
(Optional)
show ip dhcp relay
Example:
Step 3
switch(config)# show ip dhcp relay
Displays the DHCP relay trusted ports configuration.
(Optional)
show ip dhcp relay information
trusted-sources
Step 4
Example:
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
345
Configuring DHCP
Enabling or Disabling DHCP Relay Trusted Port Functionality