Purpose
Command or Action
switch(config)# show ip dhcp relay information
trusted-sources
Displays the DHCP configuration.
(Optional)
show running-config dhcp
Example:
Step 5
switch(config)# show running-config dhcp
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 6
switch(config)# copy running-config startup-config
Configuring an Interface as a DHCP Relay Trusted or Untrusted Port
You can configure whether a Layer 3 interface is a DHCP relay trusted or untrusted interface. By default, all
interfaces are untrusted. You can configure DHCP relay trust on the following types of interfaces:
• Layer 3 Ethernet interfaces and subinterfaces
• Layer 3 port-channel interfaces
Before you begin
Make sure that the DHCP feature is enabled.
SUMMARY STEPS
1.
configure terminal
2.
interface
[
ethernet slot/port
[.
number
] |
port-channel channel-number
]
3.
[
no
]
ip dhcp relay information trusted
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)#
Enters interface configuration mode, where
slot/port
is the
Layer 3 Ethernet interface that you want to configure as
interface
[
ethernet slot/port
[.
number
] |
port-channel
channel-number
]
Step 2
trusted or untrusted or
channel-number
is the Layer 3
Example:
port-channel interface that you want to configure as trusted
or untrusted.
switch(config)# interface ethernet 2/1
switch(config-if)#
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
346
Configuring DHCP
Configuring an Interface as a DHCP Relay Trusted or Untrusted Port