Send document comments to nexus7k-docfeedback@cisco.com
3-19
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
OL-23435-03
Chapter 3 Configuring Layer 2 Interfaces
Configuring Access and Trunk Interfaces
3. switchport
4. switchport autostate exclude
5. exit
6. (Optional) show running-config interface
7. (Optional) copy running-config startup-config
DETAILED STEPS
This example shows how to exclude a port from the VLAN interface link-up calculation on the Cisco
NX-OS device:
switch# configure terminal
switch(config)# interface ethernet 3/1
switch(config-if)# switchport
switch(config-if)# switchport autostate exclude
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
interface {{type slot/port} |
{port-channel number}}
Example:
switch(config)# interface ethernet 3/1
switch(config-if)#
Specifies an interface to configure, and enters interface
configuration mode.
Step 3
switchport
Example:
switch(config-if)# switchport
Sets the interface as a Layer 2 interface.
Step 4
switchport autostate exclude
Example:
switch(config-if)# switchport autostate
exclude
Excludes this port from the VLAN interface link-up
calculation when there are multiple ports in the VLAN.
To revert to the default settings, use the no form of this
command.
Step 5
exit
Example:
switch(config-if)# exit
switch(config)#
Exits the configuration mode.
Step 6
show running-config interface {{type
slot/port} | {port-channel number}}
Example:
switch(config)# show running-config
interface ethernet 3/1
(Optional) Displays configuration information about
the specified interface.
Step 7
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
(Optional) Copies the running configuration to the
startup configuration.