Send document comments to nexus7k-docfeedback@cisco.com
2-38
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
OL-23435-03
Chapter 2 Configuring Basic Interface Parameters
Configuring the Basic Interface Parameters
DETAILED STEPS
This example shows how to change the administrative status for Ethernet port 3/1 from disabled to
enabled:
switch# configure terminal
switch(config)# interface ethernet 3/1
switch(config-if)# shutdown
switch(config-if)# no shutdown
switch(config-if)#
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters the global configuration mode.
Step 2
interface interface
Example:
switch(config)# interface ethernet 2/1
switch(config-if)#
switch(config)# interface mgmt0
switch(config-if)#
Specifies the interface that you are configuring.
You can specify the interface type and identity.
For an Ethernet port, use “ethernet slot/port.”
For the management interface, use “mgmt0.”
Example 1 shows how to specify the slot 2, port
1 Ethernet interface.
Example 2 shows how to specify the
management interface.
Step 3
shutdown
Example:
switch(config-if)# shutdown
switch(config-if)#
Disables the interface.
Step 4
show interface interface
Example:
switch(config-if)# show interface ethernet 2/1
switch(config-if)#
Displays the interface status, which includes
the administrative status.
Step 5
no shutdown
Example:
switch(config-if)# no shutdown
switch(config-if)#
Reenables the interface.
Step 6
show interface interface
Example:
switch(config-if)# show interface ethernet 2/1
switch(config-if)#
Displays the interface status, which includes
the administrative status.
Step 7
exit
Example:
switch(config-if)# exit
switch(config)#
Exits the interface mode.
Step 8
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
(Optional) Copies the running configuration to
the startup configuration.