Cisco Nexus 5500 Series Command Reference Manual

Cisco Nexus 5500 Series Command Reference Manual

Nx-os layer 2 interfaces command reference
Hide thumbs Also See for Nexus 5500 Series:

Advertisement

Preface
This preface describes the audience, organization, and conventions of the Cisco Nexus 5500 Series
NX-OS Layer 2 Interfaces Command Reference. It also provides information on how to obtain related
documentation.
This preface includes the following sections:
Audience
This publication is for experienced users who configure and maintain Cisco NX-OS devices.

Document Conventions

Command descriptions use these conventions:
Convention
boldface font
italic font
[ ]
{x | y | z}
[ x | y | z ]
string
OL-27880-02
Audience, page 1
Document Conventions, page 1
Related Documentation, page 2
Obtaining Documentation and Submitting a Service Request, page 3
Description
Commands and keywords are in boldface.
Arguments for which you supply values are in italics.
Elements in square brackets are optional.
Alternative keywords are grouped in braces and separated by vertical bars.
Optional alternative keywords are grouped in brackets and separated by vertical
bars.
A nonquoted set of characters. Do not use quotation marks around the string or
the string will include the quotation marks.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
1

Advertisement

Table of Contents
loading

Summary of Contents for Cisco Nexus 5500 Series

  • Page 1: Document Conventions

    Preface This preface describes the audience, organization, and conventions of the Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference. It also provides information on how to obtain related documentation. This preface includes the following sections: Audience, page 1 •...
  • Page 2: Related Documentation

    Means reader be careful. In this situation, you might do something that could result in equipment damage Caution or loss of data. Related Documentation Documentation for Cisco Nexus 5000 Series Switches and Cisco Nexus 2000 Series Fabric Extenders is available at the following URL: http://www.cisco.com/en/US/products/ps9670/tsd_products_support_series_home.html The documentation set includes the following types of documents: Licensing Information Guide •...
  • Page 3: Documentation Feedback

    Subscribe to What’s New in Cisco Product Documentation, which lists all new and revised Cisco technical documentation as an RSS feed and delivers content directly to your desktop using a reader application. The RSS feeds are a free service.
  • Page 4 Chapter Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 5: New And Changed Information

    5500 Series NX-OS Layer 2 Interfaces Command Reference. The latest version of this document is available at the following Cisco website: http://www.cisco.com/en/US/products/ps9670/prod_command_reference_list.html To check for additional information about this Cisco NX-OS Release, see the Cisco Nexus 6000 Series NX-OS Release Notes, Release 6.0 available at the following Cisco website: http://www.cisco.com/en/US/products/ps9670/prod_release_notes_list.html...
  • Page 6 Chapter Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 7 B Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with B. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 8 Examples This example shows how to configure the badwidth for a Layer 2 interface: switch(config)# interface ethernet 1/5 switch(config-if)# bandwidth 1000 switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 9 This example shows how to configure subinterfaces to inherit the bandwidth from the parent routed interface: switch(config)# interface ethernet 1/5 switch(config-if)# no switchport switch(config-if)# bandwidth inherit 30000 switch(config-if)# interface ethernet 1/1.1 switch(config-subif)# Related Commands Command Description show interface Displays the interface configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 10 This example shows how to turn off the locator beacon LED for a specific interface: switch(config)# interface ethernet 2/1 switch(config-if)# no beacon Related Commands Command Description show interface Displays configuration information for an interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 11 10 switch(config-if)# bind interface ethernet 1/1 channel 101 switch(config-if)# Related Commands Command Description interface vethernet Configures a virtual Ethernet interface. show interface Displays information about Ethernet interfaces. ethernet Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 12 B Commands bind (virtual Ethernet interface) Command Description show interface Displays the specified virtual Ethernet interface, attributes, and status. vethernet show running-config Displays the running configuration of an interface. interface Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 13 C Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with C. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 14 Configures a virtual Ethernet interface. show interface Displays the specified virtual Ethernet interface, attributes, and status. vethernet show running-config Displays the running configuration of an interface. interface Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 15 5 switch(config-if)# carrier-delay 10 switch(config-if)# This example shows how to revert to the default carrier delay value: switch# configure terminal switch(config)# interface vlan 5 switch(config-if)# no carrier-delay switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 16 Chapter C Commands carrier-delay Related Commands Command Description show running-config Displays the running configuration information for an interface. interface Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 17 Chapter C Commands To enable the Cisco Discovery Protocol (CDP) and configure CDP attributes, use the cdp command. To disable CDP or reset CDP attributes, use the no form of this command. cdp {advertise {v1 | v2} | enable | format device-id {mac-address | serial-number |...
  • Page 18 Chapter C Commands Related Commands Command Description show cdp Displays Cisco Discovery Protocol (CDP) information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 19: Cdp Enable

    Chapter C Commands cdp enable cdp enable To enable the Cisco Discovery Protocol (CDP) on an interface, use the cdp enable command. To disable CDP on the interface, use the no form of this command. cdp enable no cdp enable Syntax Description This command has no arguments or keywords.
  • Page 20 Chapter C Commands cdp enable Related Commands Command Description show cdp Displays Cisco Discovery Protocol (CDP) information. show interface Displays the interface configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 21 [force] [mode {active | on | passive}] no channel-group [number] Syntax Description number Number of channel group. The number range is from 1 to 4096. Cisco NX-OS creates the EtherChannel associated with this channel group if the EtherChannel does not already exist. force (Optional) Specifies that the LAN port be forcefully added to the channel group.
  • Page 22 You can configure these attributes on an individual member port. If you configure a member port with an incompatible attribute, Cisco NX-OS suspends that port in the EtherChannel. When the interface joins an EtherChannel, some of its individual parameters are overridden with the values on the EtherChannel, as follows: •...
  • Page 23 Related Commands Command Description show interface Displays information about the traffic on the specified EtherChannel port-channel interface. show lacp Displays LACP information. show port-channel Displays information on the EtherChannels. summary Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 24: Clear Lacp Counters

    This example shows how to clear the LACP on a port channel: switch# clear lacp counters interface port-channel 100 Related Commands Command Description show lacp Displays LACP information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 25 This example shows how to clear statistical information from the access list: switch# clear mac access-list counters Related Commands Command Description show mac access-lists Displays the information about the MAC address table. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 26 If you specify an address but do not specify an interface, the address is deleted from all interfaces. If you specify an interface but do not specify an address, the switch removes all addresses on the specified interfaces. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 27 This example shows how to clear all the dynamic entries from the MAC address table for VLAN 2: switch# clear mac address-table dynamic vlan 2 Related Commands Command Description show mac Displays the information about the MAC address table. address-table Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 28 0050.3e8d.6400 vlan 1 switch# Related Commands Command Description show port-security Displays the port security configuration information. switchport Configures the switchport parameters to establish port security. port-security Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 29 Chapter C Commands clear port-security dynamic Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 30 This example shows how to clear the STP counters for VLAN 5: switch# clear spanning-tree counters vlan 5 Related Commands Command Description show spanning-tree Displays information about the spanning tree state. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 31 To force a port to renegotiate with its neighbors, enter the clear spanning-tree detected-protocol command. Examples This example shows how to restart the protocol migration on a specific interface: switch# clear spanning-tree detected-protocol interface ethernet 1/4 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 32 Chapter C Commands clear spanning-tree detected-protocol Related Commands Command Description show spanning-tree Displays information about the spanning tree state. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 33: Clear Vtp Counters

    This example shows how to clear the VTP counters: switch# clear vtp counters switch# Related Commands Command Description show vtp counters Displays VTP counters. show vtp status Displays VTP information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 34 This example shows how to set the synchronization protocol for the clock to NTP: switch# configure terminal switch(config)# clock protocol ntp switch(config)# Related Commands Command Description show running-config Displays the running system configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 35 This example shows how to disconnect from a vCenter Server: switch# configure terminal switch(config)# svs connection SVSConn switch(config-svs-conn)# no connect switch(config-svs-conn)# Related Commands Command Description show svs connections Displays SVS connection information. svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 36 Chapter C Commands connect Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 37 D Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with D. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 38 Related Commands Command Description show interface Displays the virtual Ethernet interface configuration information. vethernet show running-config Displays the contents of the currently running configuration file. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 39 This example shows how to set a delay of 1000 microseconds on a subinterface: switch(config)# interface ethernet 1/1.1 switch(config-subif)# delay 1000 switch(config-subif)# Related Commands Command Description interface ethernet Configures an Ethernet routed interface. (Layer 3) show interface Displays the interface configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 40 "10G Server Link" switch(config-if)# This example shows how to add a description for a virtual Ethernet interface: switch# configure terminal switch(config)# interface vethernet 1 switch(config-if)# description "Virtual interface" switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 41 Displays the interface configuration information. ethernet show interface Displays the virtual Ethernet interface configuration information. vethernet show running-config Displays the contents of the currently running configuration file. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 42 9 type erspan-source switch(config-erspan-src)# description An ERSPAN session switch(config-erspan-src)# Related Commands Command Description destination (SPAN Configures a destination SPAN port. session) monitor session Creates a new SPAN session configuration. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 43 Description show monitor session Displays SPAN session configuration information. show running-config Displays the running configuration information of a SPAN session. monitor source (SPAN session) Configures a source SPAN port. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 44 Displays the running configuration information of a SPAN session. monitor source (SPAN session) Configures a source SPAN port. source (ERSPAN Configures a source VLAN or VSAN interface. session) Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 45 1/5 switch(config-if)# switchport monitor switch(config-if)# exit switch(config)# monitor session 9 type local switch(config-monitor)# description A Local SPAN session switch(config-monitor)# source interface ethernet 1/1 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 46 (SPAN session) Configures a source SPAN port. monitor session Creates a new SPAN session configuration. show monitor session Displays SPAN session configuration information. show running-config Displays the running configuration information of a SPAN session. monitor Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 47 You cannot change the duplex mode on Gigabit Ethernet ports or on a 10/100/1000-Mbps port that is set for Gigabit Ethernet. See the Cisco Nexus 6000 Series NX-OS Layer 2 Switching Configuration Guide, Release 6.0 for more information on interface speed and duplex settings.
  • Page 48 Chapter D Commands duplex Related Commands Command Description show interface Displays information about the interface, which includes the duplex parameter. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 49 This example shows how to configure the DVS name in the vCenter Server: switch# configure terminal switch(config)# svs connection SVSConn switch(config-svs-conn)# dvs-name vcWest switch(config-svs-conn)# Related Commands Command Description show svs connections Displays SVS connection information. svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 50 Chapter D Commands dvs-name Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 51 E Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with E. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 52: Encapsulation Dot1Q

    This example shows how to enable dot1Q encapsulation on a subinterface for VLAN 30: switch(config)# interface ethernet 1/5.1 switch(config-subif)# encapsulation dot1q 30 switch(config-subif)# Related Commands Command Description show vlan dot1Q Displays dot1Q encapsulation information for a VLAN. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 53: Errdisable Detect Cause

    This example shows how to enable the err-disabled detection on linkstate-flapping: switch(config)# errdisable detect cause link-flap switch(config)# Related Commands Command Description errdisable recovery Configures recovery from the err-disabled state. show interface status Displays the interface error disabled state. err-disabled Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 54 When error disable recovery is enabled, the interface automatically recovers from the err-disabled state, and the device retries bringing the interface up. Examples This example shows how to enable error disable recovery from linkstate-flapping: switch(config)# errdisable recovery cause link-flap switch(config)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 55 Chapter E Commands errdisable recovery cause Related Commands Command Description errdisable detect cause Enables the error disabled (err-disabled) detection. show interface status Displays the interface error disabled state. err-disabled Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 56 100 switch(config)# Related Commands Command Description errdisable recovery Enables an error disabled recovery on an interface. cause show interface status Displays the interface error disabled state. err-disabled Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 57 Sets the maximum transmission unit (MTU) size for SPAN packet. Configures the VRF for ERSPAN traffic forwarding. monitor-session Enters the monitor configuration mode for configuring an ERSPAN or SPAN session for analyzing traffic between ports. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 58 This example shows how to configure the extension key for a vCenter Server: switch# configure terminal switch(config)# svs connection SVSConn switch(config-svs-conn)# extension-key vckey switch(config-svs-conn)# Related Commands Command Description show svs connections Displays SVS connection information. svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 59 F Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with F. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 60 Displays the status of features enabled or disabled on the switch. switchport backup Configures Flex Links, which are two interfaces that provide backup to each interface other, on a Layer 2 interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 61 This example shows how to enable the interface VLAN feature on the switch: switch(config)# feature interface-vlan Related Commands Command Description interface vlan Creates a VLAN interface. show feature Displays the features that are enabled or disabled on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 62: Feature Lacp

    This example shows how to enable LACP EtherChannels on the switch: switch(config)# feature lacp Related Commands Command Description show lacp Displays information on LACP. show feature Displays whether or not LACP is enabled on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 63 This command was introduced. Usage Guidelines You cannot enable or disable LLDP on a Cisco Nexus device. LLDP is enabled on the switch by default. However, the feature lldp command shows as part of the running configuration on the switch, as shown...
  • Page 64 This example shows how to disable port security on the switch: switch# configure terminal switch(config)# no feature port-security switch(config)# Related Commands Command Description show feature Displays the features that are enabled or disabled on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 65 Chapter F Commands feature port-security Command Description show port-security Displays the port security configuration information. switchport Configures the switchport parameters to establish port security. port-security Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 66 You cannot disable the private VLANs if there are operational ports on the switch that are in private VLAN mode. A private VLAN-isolated port on a Cisco Nexus device running the current release of Cisco NX-OS does Note not support IEEE 802.1Q encapsulation and cannot be used as a trunk port.
  • Page 67: Feature Udld

    To enable the Cisco-proprietary Unidirectional Link Detection (UDLD) protocol, which allows ports that are connected through fiber optics or copper Ethernet cables to monitor the physical configuration of the cables and detect when a unidirectional link exists, use the feature udld command. To disable UDLD on the switch, use the no form of this command.
  • Page 68 Chapter F Commands feature vmfex feature vmfex To enable the Cisco Virtual Machine Fabric Extender (VM-FEX), use the feature vmfex command. To disable VM-FEX, use the no form of this command. feature vmfex no feature vmfex Syntax Description This command has no arguments or keywords.
  • Page 69 Displays the features that are enabled or disabled on the switch. show feature-set Displays the status of the virtualization feature set. switchport mode Configures the interface as a nontrunking nontagged single-VLAN Ethernet interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 70 This command was introduced. Examples This example shows how to enable VTP on the switch: switch(config)# feature vtp Related Commands Command Description show vtp status Displays the VTP information. Configures VTP. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 71 Before you use this command, make sure that you install the virtualization feature set on the switch by using the install feature-set virtualization command. You cannot view or access any virtualization commands until you enable a Cisco virtual machine on the switch.
  • Page 72 Enables or disables Cisco Virtual Machine Fabric Extender (VM-FEX) on the switch. install feature-set Installs the virtualization feature set on the switch. virtualization show feature-set Displays the status of the virtualization feature set. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 73 H Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with H. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 74 To reduce potential issues with the bandwidth and to provide effective load balancing of the ingress multicast traffic, hardware hashing is used for multicast traffic. Hardware hashing is not available on a Cisco Nexus 2000 Series Fabric Extender HIF port (downlink Note port).
  • Page 75 1 switch(config-if)# high-performance host-netio switch(config-if)# Related Commands Command Description show interface Displays virtual Ethernet interface configuration information. vethernet show running-config Displays the running configuration information for an interface. interface Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 76 Chapter H Commands high-performance host-netio (virtual Ethernet interface) Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 77 I Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with I. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 78 SVSConn switch(config-svs-conn)# no install certificate switch(config-svs-conn)# Related Commands Command Description show svs connections Displays SVS connection information. svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 79 To install the Cisco virtual machine feature set on the switch, use the install feature-set virtualization command. To remove the Cisco virtual machine feature set, use the no form of this command. install feature-set virtualization...
  • Page 80: Instance Vlan

    When you change the VLAN-to-MSTI mapping, the system restarts MST. Caution Examples This example shows how to map a range of VLANs to MSTI 4: switch(config)# spanning-tree mst configuration switch(config-mst)# instance 4 vlan 100-200 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 81 Chapter I Commands instance vlan Related Commands Command Description show spanning-tree Displays information about the MST protocol. mst configuration spanning-tree mst Enters MST configuration mode. configuration Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 82: Interface Ethernet

    This example shows how to enter configuration mode for a host interface on a Fabric Extender: switch(config)# interface ethernet 101/1/1 switch(config-if)# Related Commands Command Description interface vethernet Configures a virtual Ethernet interface. show fex Displays all configured Fabric Extender chassis connected to the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 83 Displays various parameters of an Ethernet IEEE 802.3 interface. ethernet speed Sets the speed on the interface. vtp (interface) Enables VLAN Trunking Protocol (VTP) on an interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 84 Layer 2 interface, all Layer 3 specific configurations on this interface are deleted. Examples This example shows how to enter configuration mode for a Layer 3 Ethernet interface 1/5: switch(config)# interface ethernet 1/5 switch(config-if)# no switchport switch(config-if)# ip address 10.1.1.1/24 switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 85 Configures a service policy for an interface. show fex Displays all configured Fabric Extender chassis connected to the switch. show interface Displays various parameters of an Ethernet IEEE 802.3 interface. ethernet Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 86: Interface Loopback

    This example shows how to create a loopback interface: switch(config)# interface loopback 50 switch(config-if)# ip address 10.1.1.1/24 switch(config-if)# Related Commands Command Description show interface Displays information about the traffic on the specified loopback interface. loopback Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 87: Interface Mgmt

    Enables Simple Network Management Protocol (SNMP) link trap generation on an interface. speed Configures the transmit and receive speed for an interface. vrf member Adds an interface to a virtual routing and forwarding (VRF) instance. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 88 Use the switchport command to convert a Layer 3 EtherChannel interface into a Layer 2 interface. When you configure the interface as a Layer 2 interface, all Layer 3 specific configurations on this interface are deleted. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 89 Displays configuration information about interfaces. show lacp Displays LACP information. show port-channel Displays information on the EtherChannels. summary vtp (interface) Enables VLAN Trunking Protocol (VTP) on an interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 90 You can create a maximum of 1000 virtual Ethernet interfaces on a Cisco Nexus 5548 switch. Before you disable Adapter-FEX on the switch, make sure that you delete these interfaces. After you delete a virtual Ethernet interface, make sure that you save the running configuration of the switch to the startup configuration file.
  • Page 91 Displays various parameters of a virtual Ethernet interface. vethernet show running-config Displays the running configuration of an interface. interface vethernet auto-create Sets the default policy to enable auto creation of virtual Ethernet interfaces. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 92: Interface Vlan

    50 switch(config-if)# Related Commands Command Description feature interface-vlan Enables the ability to create VLAN interfaces. show interface vlan Displays information about the traffic on the specified VLAN interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 93 This command was introduced. Examples This example shows how to enable IGMP snooping: switch# ip igmp snooping Related Commands Command Description show ip igmp snooping Displays IGMP snooping information and configuration. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 94 Configures a static connection to a multicast router. The specified interface is Ethernet or EtherChannel. querier IP-address Configures a snooping querier. The IP address is used as the source in messages. The default is disabled. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 95 192.0.2.1 interface ethernet 1/10 switch(config-vlan)# ip igmp snooping static-group 192.0.2.12 interface vethernet 4/1 switch(config-vlan)# Related Commands Command Description show ip igmp snooping Displays the IGMP snooping information and configuration. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 96 Chapter I Commands ip igmp snooping (VLAN) Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 97 L Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with L. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 98 This example shows how to disable LACP graceful convergence on a port channel: switch# configure terminal switch(config)# interface port-channel 100 switch(config-if)# no lacp graceful-convergence switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 99 Chapter L Commands lacp graceful-convergence Related Commands Command Description show lacp Displays LACP information. show running-config Displays the running system configuration. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 100 This example shows how to set the LACP port priority for the interface to 2000: switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)# lacp port-priority 2000 switch(config-if)# Related Commands Command Description show lacp Displays LACP information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 101 You must enable LACP before using this command. You can configure the LACP rate fast feature on the LACP ports of a Cisco Nexus device or a Cisco Nexus 2000 Series Fabric Extender that is connected to a Cisco Nexus device.
  • Page 102 Chapter L Commands lacp rate fast Command Description interface ethernet Enters Ethernet interface configuration mode. show lacp Displays the LACP configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 103 100 switch(config-if)# shutdown switch(config-if)# no lacp suspend-individual switch(config-if)# Related Commands Command Description show lacp Displays LACP information. show running-config Displays the running system configuration. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 104 Examples This example shows how to set the LACP system priority for the device to 2500: switch(config)# lacp system-priority 2500 Related Commands Command Description show lacp Displays LACP information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 105: Link Debounce

    1/1 switch(config-if)# link debounce time 1000 This example shows how to disable the debounce timer for an Ethernet interface: switch(config-if)# no link debounce Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference OL-27880-02...
  • Page 106 Chapter L Commands link debounce Related Commands Command Description show interface Displays the interface configuration information. ethernet show interface Displays the debounce time information for all interfaces. debounce Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1100 OL-27880-02...
  • Page 107 This example shows how to set the three sample intervals for the Ethernet port 3/1: switch# configure terminal switch(config)# interface ethernet 3/1 switch(config-if)# load-interval counter 1 60 switch(config-if)# load-interval counter 2 135 switch(config-if)# load-interval counter 3 225 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1101 OL-27880-02...
  • Page 108 Chapter L Commands load-interval Related Commands Command Description show interface Displays information about the interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1102 OL-27880-02...
  • Page 109 M Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with M. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1103 OL-27880-02...
  • Page 110 This example shows how to change the length of time an entry remains in the MAC address table to 500 seconds for the entire switch: switch(config)# mac address-table aging-time 500 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1104 OL-27880-02...
  • Page 111 Related Commands Command Description show mac Displays information about the MAC address table. address-table show mac Displays information about the MAC address aging time. address-table aging-time Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1105 OL-27880-02...
  • Page 112 1024 seconds: switch(config)# mac address-table notification threshold limit 45 interval 1024 Related Commands Command Description show mac Displays information about the MAC address table. address-table Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1106 OL-27880-02...
  • Page 113 When you install a static MAC address, it is associated with a port. If the same MAC address is seen on a different port, the entry is updated with the new port if you enter the auto-learn keyword. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1107...
  • Page 114 This example shows how to add a static entry to the MAC address table: switch(config)# mac address-table static 0050.3e8d.6400 vlan 3 interface ethernet 1/4 Related Commands Command Description show mac Displays information about the MAC address table. address-table Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1108 OL-27880-02...
  • Page 115 This example shows how to remove the in-band management access to a VLAN interface: switch# configure terminal switch(config)# interface vlan 5 switch(config-if)# no management switch(config-if)# Related Commands Command Description show running-config Displays the running configuration information for an interface. interface Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1109 OL-27880-02...
  • Page 116 This example shows how to remove the ERSPAN IP address: switch# configure terminal switch(config)# no monitor erspan origin ip-address 10.1.1.1 global switch(config)# Related Commands Command Description monitor session Configures a SPAN or an ERSPAN session. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1110 OL-27880-02...
  • Page 117: Monitor Session

    To ensure that you are working with a completely new session, you can clear the desired session number or all SPAN sessions. The Cisco Nexus device supports two active SPAN sessions. The Cisco Nexus 5548 Switch supports four Note active SPAN sessions. When you configure more than two SPAN sessions, the first two sessions are active.
  • Page 118 Sets the time-to-live (TTL) value for an ERSPAN packet. mtu (ERSPAN) Sets the maximum transmission value (MTU) for ERSPAN packets. show monitor session Displays SPAN session configuration information. source (SPAN, Adds a SPAN source port. ERSPAN) Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1112 OL-27880-02...
  • Page 119 2 designated priority 8192 switch(config-pseudo)# mst 2 root priority 4096 switch(config-pseudo)# Related Commands Command Description show running-config Displays the running configuration information of the Spanning Tree spanning-tree Protocol (STP). Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1113 OL-27880-02...
  • Page 120 Chapter M Commands mst (STP) Command Description show spanning-tree Displays the configuration information of the STP. spanning-tree Configures spanning tree pseudo information parameters. pseudo-information Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1114 OL-27880-02...
  • Page 121: Mvr Group

    Ethernet interface • Virtual Ethernet interface • Before you use a virtual Ethernet interface, you must enable the Cisco Virtual Machine Fabric Extender (VM-FEX) on the switch by using the feature vmfex command. This command does not require a license. Examples...
  • Page 122 Enables VM-FEX on the switch. interface vethernet Configures a virtual Ethernet interface on the switch. show mvr Displays information about MVRs. show running-config Displays the running system configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1116 OL-27880-02...
  • Page 123: Mvr Type

    Ethernet interface • Virtual Ethernet interface • Before you use a virtual Ethernet interface, you must enable the Cisco Virtual Machine Fabric Extender (VM-FEX) on the switch by using the feature vmfex command. This command does not require a license. Examples...
  • Page 124 Chapter M Commands mvr type Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1118 OL-27880-02...
  • Page 125: Mvr Vlan

    Ethernet interface • Virtual Ethernet interface • Before you use a virtual Ethernet interface, you must enable the Cisco Virtual Machine Fabric Extender (VM-FEX) on the switch by using the feature vmfex command. This command does not require a license. Examples...
  • Page 126 Chapter M Commands mvr vlan Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1120 OL-27880-02...
  • Page 127 N Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with N. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1121 OL-27880-02...
  • Page 128 You cannot change the name for the default VLAN, VLAN 1, or for the internally allocated VLANs. Examples This example shows how to name VLAN 2: switch(config)# vlan 2 switch(config-vlan)# name accounting Related Commands Command Description show vlan Displays VLAN information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1122 OL-27880-02...
  • Page 129 Related Commands Command Description show spanning-tree Displays information about the MST protocol. mst configuration spanning-tree mst Enters MST configuration mode. configuration Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1123 OL-27880-02...
  • Page 130 Configures a loopback interface. interface port-channel Configures an EtherChannel interface or subinterface. ip address Sets a primary or secondary IP address for an interface. show interfaces Displays interface information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1124 OL-27880-02...
  • Page 131 Chapter N Commands no switchport Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1125 OL-27880-02...
  • Page 132 Chapter N Commands no switchport Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1126 OL-27880-02...
  • Page 133 P Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with P. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1127 OL-27880-02...
  • Page 134 This example shows how to configure packet VLAN pinning for an interface: switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)# pinning packet-vlan 5 switch(config-if)# Related Commands Command Description show running-config Displays the running system configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1128 OL-27880-02...
  • Page 135 Displays the virtual Ethernet interface configuration information. vethernet show running-config Displays the running configuration information for a specific virtual intefrace vethernet Ethernet interface, including the pinning configuration. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1129 OL-27880-02...
  • Page 136 ERROR: FC range should end on last port of the module On a Cisco Nexus 5548UP switch, the 32 ports of the main slot (slot1) are unified ports. The Ethernet ports start from port 1/1 to port 1/32. The FC ports start from port 1/32 backwards to port 1/1.
  • Page 137 1 switch(config-slot)# port 32 type fc switch(config-slot)# copy running-config startup-config switch(config-slot)# reload This example shows how to configure a unified port on a Cisco N55-M16UP expansion module: switch# configure terminal switch(config)# slot 2 switch(config-slot)# port 32 type fc...
  • Page 138 (Optional) Hash polynomial that is used to determine the egress port selected for a port channel. See the “Usage Guidelines” section for a list of valid values. This is applicable only on a Cisco Nexus 5548 switch and a Cisco Note Nexus 5596 switch.
  • Page 139 EtherChannel; using source addresses or IP addresses might result in better load balancing. The Cisco Nexus 5548 switch and Cisco Nexus 5596 switch support 8 hash polynomials that can be used for compression on the hash-parameters (software-configurable selection of source and destination MAC addresses, source and destination IP addresses, and source and destination TCP and UDP ports).
  • Page 140 VLAN. A promiscuous port is defined as a private port that is assigned to a primary VLAN. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1134 OL-27880-02...
  • Page 141 109 switch(config-vlan)# private-vlan isolated Related Commands Command Description feature private-vlan Enables private VLANs. show vlan Displays information about VLANs. show vlan private-vlan Displays information about private VLANs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1135 OL-27880-02...
  • Page 142 Multiple community and isolated VLANs are allowed. If you enter a range of primary VLANs, the system uses the first number in the range for the association. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1136 OL-27880-02...
  • Page 143 18,20 Related Commands Command Description feature private-vlan Enables private VLANs. show vlan Displays information about VLANs. show vlan private-vlan Displays information about private VLANs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1137 OL-27880-02...
  • Page 144 Related Commands Command Description show spanning-tree Displays information about the MST protocol. mst configuration spanning-tree mst Enters MST configuration mode. configuration Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1138 OL-27880-02...
  • Page 145 Related Commands Command Description interface vethernet Creates a virtual Ethernet interface. show svs connections Displays SVS connection information. svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1139 OL-27880-02...
  • Page 146 N5K-M1404—Expansion Module 4 x 10GBase-T LAN, 4 x Fiber • Channel N5K-M1600—Cisco 6-port 10 Gigabit Ethernet SFP Module 6 x SFP • Command Default None Command Modes Slot configuration mode Switch profile configuration mode Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1140 OL-27880-02...
  • Page 147 This command was introduced. Usage Guidelines Use this command to define the modules (line card or Cisco Nexus 2000 Series Fabric Extender) to preprovision. If the card type does not match the card in the slot or the module is not compatible with...
  • Page 148 Displays switch profile information. show running-config Displays the running configuration excluding the preprovisioned features. exclude-provision slot Enables a slot for preprovisioning a module. switch-profile Configures a switch profile. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1142 OL-27880-02...
  • Page 149 R Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with R. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1143 OL-27880-02...
  • Page 150 1/5 switch(config-if)# rate-limit cpu direction input pps 3 action log switch(config-if)# Related Commands Command Description show running-config Displays the running system configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1144 OL-27880-02...
  • Page 151 This example shows how to remove the hostname configuration for a remote machine: switch# configure terminal switch(config)# svs connection SVSConn switch(config-svs-conn)# no remote hostname switch(config-svs-conn)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1145 OL-27880-02...
  • Page 152 Configures the TCP port for a remote machine. remote vrf Configures the virtual routing and forwarding (VRF) instance for a remote machine. show svs connections Displays SVS connection information. svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1146 OL-27880-02...
  • Page 153: Remote Ip Address

    This example shows how to remove the IPv4 address configuration for a remote machine: switch# configure terminal switch(config)# svs connection SVSConn switch(config-svs-conn)# no remote ip address switch(config-svs-conn)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1147 OL-27880-02...
  • Page 154 Configures the TCP port for a remote machine. remote vrf Configures the virtual routing and forwarding (VRF) instance for a remote machine. show svs connections Displays SVS connection information. svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1148 OL-27880-02...
  • Page 155: Remote Port

    Configures the IPv4 for a remote machine. remote vrf Configures the virtual routing and forwarding (VRF) instance for a remote machine. show svs connections Displays SVS connection information. svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1149 OL-27880-02...
  • Page 156 Configures the IPv4 address for a remote machine. remote port Configures the TCP port of a remote machine. show svs connections Displays SVS connection information. svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1150 OL-27880-02...
  • Page 157 This example shows how to set the revision number of the MST region configuration: switch(config)# spanning-tree mst configuration switch(config-mst)# revision 5 Related Commands Command Description show spanning-tree Displays information about the MST protocol. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1151 OL-27880-02...
  • Page 158 Chapter R Commands revision Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1152 OL-27880-02...
  • Page 159 S Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with S. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1153 OL-27880-02...
  • Page 160 1 type erspan-source switch(config-erspan-src)# no shut switch(config-erspan-src)# Related Commands Command Description monitor session Enters the monitor configuration mode. show monitor session Displays the virtual SPAN or ERSPAN configuration. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1154 OL-27880-02...
  • Page 161 This example shows how to shut down, or disable, a Layer 2 interface: switch(config)# interface ethernet 1/10 switch(config-if)# shutdown switch(config-if)# This example shows how to shut down a Layer 3 Ethernet subinterface: switch(config)# interface ethernet 1/5.1 switch(config-subif)# shutdown switch(config-subif)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1155 OL-27880-02...
  • Page 162 Displays the Ethernet interface configuration information. ethernet show interface Displays information on traffic about the specified EtherChannel interface. port-channel show interface Displays the virtual Ethernet interface configuration information. vethernet Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1156 OL-27880-02...
  • Page 163 VLAN to the active state. Examples This example shows how to restore local traffic on VLAN 2 after you have shut down, or disabled, the VLAN: switch(config)# vlan 2 switch(config-vlan)# no shutdown Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1157 OL-27880-02...
  • Page 164 Chapter S Commands shutdown (VLAN configuration) Related Commands Command Description show vlan Displays VLAN information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1158 OL-27880-02...
  • Page 165 Switch-Profile started, Profile ID is 1 switch(config-sync-sp)# slot 2 switch(config-sync-sp-slot)# This example shows how to disable a chassis slot for preprovisioning of a module: switch(config)# no slot 2 switch(config)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1159 OL-27880-02...
  • Page 166 Configures ports as Ethernet, native Fibre Channel or Fibre Channel over Ethernet (FCoE) ports. provision Preprovisions a module in a slot. show running-config Displays the running configuration excluding the preprovisioned features. exclude-provision Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1160 OL-27880-02...
  • Page 167 This example shows how to disable all SNMP notifications on a VTP domain: switch(config)# no snmp-server enable traps vtp switch(config)# Related Commands Command Description show snmp trap Displays the SNMP notifications enabled or disabled. show vtp status Displays VTP information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1161 OL-27880-02...
  • Page 168 Specifies the virtual storage area network (VSAN) to use as the source SPAN port. The range is from 1 to 4093. Command Default None Command Modes SPAN session configuration mode ERSPAN session configuration mode Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1162 OL-27880-02...
  • Page 169 Creates a new SPAN session configuration. show monitor session Displays SPAN session configuration information. show running-config Displays the running configuration information of a SPAN session. monitor Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1163 OL-27880-02...
  • Page 170 Bridge Assurance is enabled globally by default but is disabled on an interface by default. You can enable Bridge Assurance on an interface by using the spanning-tree port type network command. For more information on Bridge Assurance, see the Cisco Nexus 6000 Series NX-OS Layer 2 Switching Configuration Guide, Release 6.0.
  • Page 171 Displays the status and configuration of the local Spanning Tree Protocol bridge (STP) bridge. spanning-tree port Configures an interface as a network spanning tree port. type network Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1165 OL-27880-02...
  • Page 172 This example shows how to explicitly enable BPDU Filtering on the Ethernet spanning tree edge port 1/4: switch (config)# interface ethernet 1/4 switch(config-if)# spanning-tree bpdufilter enable Related Commands Command Description show spanning-tree Displays information about the spanning tree state. summary Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1166 OL-27880-02...
  • Page 173 Chapter S Commands spanning-tree bpdufilter Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1167 OL-27880-02...
  • Page 174 Typically, this feature is used in a service-provider environment where the network administrator wants to prevent an access port from participating in the spanning tree. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1168 OL-27880-02...
  • Page 175 This example shows how to enable BPDU Guard on this interface: switch(config-if)# spanning-tree bpduguard enable Related Commands Command Description show spanning-tree Displays information about the spanning tree state. summary Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1169 OL-27880-02...
  • Page 176 Short Path Cost Method Port Cost Long Path Cost Method Port Cost 10 Mbps 2,000,000 100 Mbps 200,000 1-Gigabit Ethernet 20,000 10-Gigabit Ethernet 2,000 When you configure the value, higher values will indicate higher costs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1170 OL-27880-02...
  • Page 177 VLAN that is associated with that interface: switch(config)# interface ethernet 1/4 switch(config-if)# spanning-tree cost 250 Related Commands Command Description show spanning-tree Displays information about the spanning tree configuration. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1171 OL-27880-02...
  • Page 178 This example shows how to configure a spanning-tree domain: switch# configure terminal switch(config)# spanning-tree domain 1 switch(config)# Related Commands Command Description show spanning-tree Displays the configuration information of the Spanning Tree Protocol (STP). Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1172 OL-27880-02...
  • Page 179 Loop Guard on spanning tree edge ports. Examples This example shows how to enable Root Guard: switch(config-if)# spanning-tree guard root Related Commands Command Description show spanning-tree Displays information about the spanning tree state. summary Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1173 OL-27880-02...
  • Page 180 Note On a Cisco Nexus 5000 Series switch, port duplex is not configurable. Examples This example shows how to configure the port as a shared link:...
  • Page 181 Guard command. Examples This example shows how to enable Loop Guard: switch(config)# spanning-tree loopguard default Related Commands Command Description show spanning-tree Displays information about the spanning tree state. summary Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1175 OL-27880-02...
  • Page 182 This example shows how to switch to MST mode: switch(config)# spanning-tree mode mst switch(config-mst)# Related Commands Command Description show spanning-tree Displays the information about the spanning tree configuration. summary Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1176 OL-27880-02...
  • Page 183 MST configuration mode, make changes to a copy of the current MST configuration. When you are done editing the configuration, you can apply all the changes at once by using the exit keyword. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1177 OL-27880-02...
  • Page 184 (MST Sets the name of an MST region. configuration) revision Sets the revision number for the MST configuration. show spanning-tree Displays the information about the MST protocol. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1178 OL-27880-02...
  • Page 185 The EtherChannel bundle is considered as a single port. The port cost is the aggregation of all the configured port costs assigned to that channel. Examples This example shows how to set the interface path cost: switch(config-if)# spanning-tree mst 0 cost 17031970 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1179 OL-27880-02...
  • Page 186 Chapter S Commands spanning-tree mst cost Related Commands Command Description show spanning-tree Displays the information about the MST protocol. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1180 OL-27880-02...
  • Page 187 Examples This example shows how to set the forward-delay timer: switch(config)# spanning-tree mst forward-time 20 Related Commands Command Description show spanning-tree Displays the information about the MST protocol. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1181 OL-27880-02...
  • Page 188 This example shows how to set the hello-time delay timer: switch(config)# spanning-tree mst hello-time 3 Related Commands Command Description show spanning-tree Displays the information about the MST protocol. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1182 OL-27880-02...
  • Page 189 Examples This example shows how to set the max-age timer: switch(config)# spanning-tree mst max-age 40 Related Commands Command Description show spanning-tree Displays the information about the MST protocol. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1183 OL-27880-02...
  • Page 190 This example shows how to set the number of possible hops: switch(config)# spanning-tree mst max-hops 25 Related Commands Command Description show spanning-tree Displays the information about the MST protocol. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1184 OL-27880-02...
  • Page 191 0 port-priority 64 Related Commands Command Description show spanning-tree Displays the information about the MST protocol. spanning-tree Configures the port priority for the default STP, which is Rapid PVST+. port-priority Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1185 OL-27880-02...
  • Page 192 This example shows how to force a prestandard MST BPDU transmission on port: switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)# spanning-tree mst pre-standard switch(config-if)# Related Commands Command Description show spanning-tree Displays the information about the MST protocol. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1186 OL-27880-02...
  • Page 193 This example shows how to set the bridge priority: switch(config)# spanning-tree mst 0 priority 4096 Related Commands Command Description show spanning-tree Displays the information about the MST protocol. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1187 OL-27880-02...
  • Page 194 0 root primary This example shows how to set the priority and timer values for the bridge: switch(config)# spanning-tree mst 0 root primary diameter 7 hello-time 2 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1188 OL-27880-02...
  • Page 195 Chapter S Commands spanning-tree mst root Related Commands Command Description show spanning-tree Displays the information about the MST protocol. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1189 OL-27880-02...
  • Page 196 This command is useful when you want to prevent accidental connection with a device running Rapid PVST+. To reenable seamless operation between MST and Rapid PVST+ on specific interfaces, use the spanning-tree mst simulate pvst command. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1190 OL-27880-02...
  • Page 197 Rapid PVST+: switch(config-if)# spanning-tree mst simulate pvst disable Related Commands Command Description spanning-tree mst Enables global seamless interoperation between MST and Rapid PVST+. simulate pvst global Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1191 OL-27880-02...
  • Page 198 This command is useful when you want to prevent accidental connection with a device not running MST. To return the switch to seamless operation between MST and Rapid PVST+, use the spanning-tree mst simulate pvst global command. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1192 OL-27880-02...
  • Page 199 Rapid PVST+: switch(config)# no spanning-tree mst simulate pvst global Related Commands Command Description spanning-tree mst Enables seamless interoperation between MST and Rapid PVST+ by the simulate pvst interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1193 OL-27880-02...
  • Page 200 This example shows how to set the default pathcost method to long: switch(config)# spanning-tree pathcost method long Related Commands Command Description show spanning-tree Displays information about the spanning tree state. summary Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1194 OL-27880-02...
  • Page 201 32 Related Commands Command Description show spanning-tree Displays information about the spanning tree state. spanning-tree Displays information on the spanning tree port priority for the interface. interface priority Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1195 OL-27880-02...
  • Page 202 When a linkup occurs, spanning tree edge ports are moved directly to the spanning tree forwarding state without waiting for the standard forward-time delay. This is the same functionality that was previously provided by the Cisco-proprietary PortFast feature. Note When you use this command, the system returns a message similar to the following: Warning: portfast should only be enabled on ports connected to a single host.
  • Page 203 Related Commands Command Description show spanning-tree Displays information about the spanning tree state. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1197 OL-27880-02...
  • Page 204 BPDU Filtering is disabled. When enabled locally on a port, BPDU Filtering prevents the switch from receiving or sending BPDUs on this port. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1198 OL-27880-02...
  • Page 205 Displays the information about the spanning tree configuration. summary spanning-tree Enables BPDU Filtering on the interface. bpdufilter spanning-tree port Configures an interface as a spanning tree edge port. type edge Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1199 OL-27880-02...
  • Page 206 We recommend that you enable BPDU Guard on all spanning tree edge ports. Note Examples This example shows how to enable BPDU Guard by default on all spanning tree edge ports: switch(config)# spanning-tree port type edge bpduguard default Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1200 OL-27880-02...
  • Page 207 Displays the information about the spanning tree configuration. summary spanning-tree Enables BPDU guard on the interface. bpduguard spanning-tree port Configures an interface as a spanning tree edge port. type edge Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1201 OL-27880-02...
  • Page 208 The default spanning tree port type is normal. Examples This example shows how to globally configure all ports connected to hosts as spanning tree edge ports: switch(config)# spanning-tree port type edge default Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1202 OL-27880-02...
  • Page 209 Related Commands Command Description show spanning-tree Displays information about the spanning tree configuration. summary spanning-tree port Configures an interface as a spanning tree edge port. type edge Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1203 OL-27880-02...
  • Page 210 You can configure all ports that are connected to switches as spanning tree network ports by default by entering the spanning-tree port type network default command. The default spanning tree port type is normal. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1204 OL-27880-02...
  • Page 211 This example shows how to configure an interface connected to a switch or bridge as a spanning tree network port: switch(config-if)# spanning-tree port type network Related Commands Command Description show spanning-tree Displays information about the spanning tree configuration per specified interface interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1205 OL-27880-02...
  • Page 212 The default spanning tree port type is normal. Examples This example shows how to globally configure all ports connected to switches as spanning tree network ports: switch(config)# spanning-tree port type network default Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1206 OL-27880-02...
  • Page 213 Chapter S Commands spanning-tree port type network default Related Commands Command Description show spanning-tree Displays information about the spanning tree configuration. summary Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1207 OL-27880-02...
  • Page 214 This example shows how to configure an interface as a normal port: switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)# spanning-tree port type normal switch(config-if)# Related Commands Command Description show spanning-tree Displays information about the spanning tree state. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1208 OL-27880-02...
  • Page 215 Displays the running configuration information for spanning trees. spanning-tree show spanning-tree Displays the summary information of the STP. summary vlan (STP) Configures the designated bridge and root bridge priority for VLANs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1209 OL-27880-02...
  • Page 216 • fex-hello-time—12 seconds • forward-time—15 seconds hello-time—2 seconds • max-age—20 seconds • priority—32768 • Command Modes Global configuration mode Command History Release Modification 5.2(1)N1(1) This command was introduced. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1210 OL-27880-02...
  • Page 217 This example shows how to configure the fex-hello-time to 10 seconds for a range of VLANs. switch(config)# spanning-tree vlan 1-5000 fex-hello-time 10 Related Commands Command Description show spanning-tree Displays information about the spanning tree state. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1211 OL-27880-02...
  • Page 218 1/5 switch(config-if)# no spanning-tree vlan 5 cost 200 switch(config-if)# Related Commands Command Description show spanning-tree Displays information about the spanning tree state. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1212 OL-27880-02...
  • Page 219 10 fex-hello-time 5 Related Commands Command Description show spanning-tree Displays information about the spanning tree state. show running-config Displays the running configuration information for spanning trees. spanning-tree Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1213 OL-27880-02...
  • Page 220 1/5 switch(config-if)# no spanning-tree vlan 5 port-priority 20 switch(config-if)# Related Commands Command Description show spanning-tree Displays information about the spanning tree state. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1214 OL-27880-02...
  • Page 221 This command was introduced. Usage Guidelines The first 8 ports of a Cisco Nexus 5010 switch and the first 16 ports of a Cisco Nexus 5020 switch are switchable 1-Gigabit and 10-Gigabit ports. The default interface speed is 10-Gigabit. To configure these ports for 1-Gigabit Ethernet, insert a 1-Gigabit Ethernet SFP transceiver into the applicable port and then set its speed with the speed command.
  • Page 222 This example shows how to set the an interface port to automatically negotiate the speed: switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)# speed auto switch(config-if)# Related Commands Command Description show interface Displays the interface configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1216 OL-27880-02...
  • Page 223 VLANs in the suspended state do not pass packets. Examples This example shows how to suspend VLAN 2: switch(config)# vlan 2 switch(config-vlan)# state suspend Related Commands Command Description show vlan Displays VLAN information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1217 OL-27880-02...
  • Page 224: Svi Enable

    You must use the feature interface-vlan command before you can create VLAN interfaces. Examples This example shows how to enable the interface VLAN feature on the switch: switch(config)# svi enable Related Commands Command Description interface vlan Creates a VLAN interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1218 OL-27880-02...
  • Page 225 To enable an SVS connection to connect a vCenter Server to a Cisco Nexus 5000 Series switch, use the svs connection command. To disable an SVS connection, use the no form of this command. svs connection svs-name...
  • Page 226 Displays SVS connection information. svs veth auto-setup Enables the VSM to automatically create a virtual Ethernet interface when a new port is activated on a host. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1220 OL-27880-02...
  • Page 227 Chapter S Commands svs veth auto-delete Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1221 OL-27880-02...
  • Page 228 Creates a virtual Ethernet interface. show svs connections Displays SVS connection information. svs veth auto-delete Enables the VSM to automatically delete DVPorts no longer used by a vNIC or hypervisor port. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1222 OL-27880-02...
  • Page 229: Switchport Access Vlan

    This example shows how to configure a virtual Ethernet interface to join VLAN 5: switch# configure terminal switch(config)# interface vethernet 1 switch(config-if)# switchport access vlan 5 switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1223 OL-27880-02...
  • Page 230 Related Commands Command Description show interface Displays the administrative and operational status of a port. switchport show interface Displays the virtual Ethernet interface information. vethernet Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1224 OL-27880-02...
  • Page 231: Switchport Backup Interface

    (Optional) Specifies no preemption occurs from backup to active. Command Default None Command Modes Interface configuration mode Command History Release Modification 6.0(2)N1(1) Support for the QSFP+ GEM was added. 5.2(1)N1(1) This command was introduced. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1225 OL-27880-02...
  • Page 232 S Commands switchport backup interface Usage Guidelines This command is applicable to the Cisco Nexus 5548 Series switch and the Cisco Nexus 5596 Series Note switch. Before you use this command, make sure that you enable Flex Links on the switch by using the feature flexlink command.
  • Page 233 Related Commands Command Description feature flexlink Enables Flex Links for Layer 2 interfaces. show interface Displays backup interfaces. switchport backup Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1227 OL-27880-02...
  • Page 234: Switchport Block

    This example shows how to block the unknown unicast traffic on a virtual Ethernet interface: switch# configure terminal switch(config)# interface vethernet 1 switch(config-if)# switchport block uniicast switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1228 OL-27880-02...
  • Page 235 Related Commands Command Description show interface Displays the switch port information for a specified interface or all switchport interfaces. show interface Displays the virtual Ethernet interface configuration information. vethernet Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1229 OL-27880-02...
  • Page 236: Switchport Host

    Related Commands Command Description show interface brief Displays a summary of the interface configuration information. show interface Displays information on all interfaces configured as switch ports. switchport Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1230 OL-27880-02...
  • Page 237: Switchport Mode

    2/1 switch(config-if)# switchport mode access switch(config-if)# switchport access vlan 5 switch(config-if)# This example shows how to set an interface as a VNTag port: switch(config)# interface ethernet 1/5 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1231 OL-27880-02...
  • Page 238 Displays information about a specified Ethernet interface. ethernet show interface Displays information on all interfaces configured as switch ports. switchport switchport access vlan Sets the access VLAN when the interface is in access mode. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1232 OL-27880-02...
  • Page 239 This example shows how to set a virtual Ethernet interface port to host mode for private VLANs: switch# configure terminal switch(config)# interface vethernet 1 switch(config-if)# switchport mode private-vlan host switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1233 OL-27880-02...
  • Page 240 Configures a virtual Ethernet interface. show interface Displays information on all interfaces configured as switch ports. switchport show vlan private-vlan Displays the status of the private VLAN. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1234 OL-27880-02...
  • Page 241 Related Commands Command Description show interface Displays information on all interfaces configured as switch ports. switchport show vlan private-vlan Displays the status of the private VLAN. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1235 OL-27880-02...
  • Page 242 Displays information on all interfaces configured as switch ports. switchport switchport Associates the isolated trunk port with the primary and secondary VLANs private-vlan of a private VLAN. association trunk Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1236 OL-27880-02...
  • Page 243 Displays information on all interfaces configured as switch ports. switchport switchport Associates the isolated trunk port with the primary and secondary VLANs private-vlan of a private VLAN. association trunk Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1237 OL-27880-02...
  • Page 244 This example shows how to disable port security on an interface: switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)# no switchport port-security switch(config-if)# Related Commands Command Description show port-security Displays the port security configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1238 OL-27880-02...
  • Page 245 This example shows how to set the secure MAC address aging time to 2 minutes: switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)# switchport port-security aging time 2 switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1239 OL-27880-02...
  • Page 246 Chapter S Commands switchport port-security aging Related Commands Command Description show port-security Displays the port security configuration information. switchport Configures the switchport parameters to establish port security. port-security Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1240 OL-27880-02...
  • Page 247 This example shows how to remove a MAC address from the list of secure MAC addresses: switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)# no switchport port-security mac-address 0050.3e8d.6400 switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1241 OL-27880-02...
  • Page 248 Chapter S Commands switchport port-security mac-address Related Commands Command Description show port-security Displays the port security configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1242 OL-27880-02...
  • Page 249 This example shows how to set the maximum number of secure MAC addresses on a port to the default value: switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)# no switchport port-security maximum 5 switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1243 OL-27880-02...
  • Page 250 Chapter S Commands switchport port-security maximum Related Commands Command Description show port-security Displays the port security configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1244 OL-27880-02...
  • Page 251 This example shows how to set the port security violation mode on a port to the default value: switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)# no switchport port-security violation protect switch(config-if)# Related Commands Command Description show port-security Displays the port security configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1245 OL-27880-02...
  • Page 252: Switchport Priority Extend

    To configure the switch to override the priority of frames arriving on the Cisco IP phone port from connected devices, use the switchport priority extende command. To return the port to its default setting, use the no form of this command.
  • Page 253 Displays information on all interfaces configured as switch ports. switchport switchport mode Configures the port as a secondary trunk port for a private VLAN. private-vlan trunk show vlan private-vlan Displays the status of the private VLAN. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1247 OL-27880-02...
  • Page 254 This example shows how to configure a virtual Ethernet interface host private VLAN port with a primary VLAN (VLAN 5) and a secondary VLAN (VLAN 23): switch# configure terminal switch(config)# interface vethernet 1 switch(config-if)# switchport private-vlan host-association 5 23 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1248 OL-27880-02...
  • Page 255 Chapter S Commands switchport private-vlan host-association switch(config-if)# Related Commands Command Description interface vethernet Configures a virtual Ethernet interface. show vlan private-vlan Displays information on private VLANs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1249 OL-27880-02...
  • Page 256 This example shows how to configure the associated primary VLAN 18 to secondary isolated VLAN 20 on a private VLAN promiscuous port: switch# configure terminal switch(config)# interface ethernet 1/1 switch(config-if)# switchport mode private-vlan promiscous switch(config-if)# switchport private-vlan mapping 18 20 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1250 OL-27880-02...
  • Page 257 Displays information on all interfaces configured as switch ports. switchport show interface Displays the information about the private VLAN mapping for VLAN private-vlan mapping interfaces or SVIs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1251 OL-27880-02...
  • Page 258 This example shows how to add VLANs to the list of allowed VLANs on an Ethernet private VLAN trunk port: switch(config)# interface ethernet 1/3 switch(config-if)# switchport private-vlan trunk allowed vlan 15-20 switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1252 OL-27880-02...
  • Page 259 Displays information on all interfaces configured as switch ports. switchport switchport mode Configures the port as a secondary trunk port for a private VLAN. private-vlan trunk show vlan private-vlan Displays the status of the private VLAN. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1253 OL-27880-02...
  • Page 260 Displays information on all interfaces configured as switch ports. switchport switchport mode Configures the port as a secondary trunk port for a private VLAN. private-vlan trunk show vlan private-vlan Displays the status of the private VLAN. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1254 OL-27880-02...
  • Page 261: Switchport Trunk Allowed Vlan

    This example shows how to add VLANs to the list of allowed VLANs on a virtual Ethernet interface trunk port: switch# configure terminal switch(config)# interface vethernet 1 switch(config-if)# switchport trunk allowed vlan 5-15 switch(config-if)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1255 OL-27880-02...
  • Page 262 Chapter S Commands switchport trunk allowed vlan Related Commands Command Description interface vethernet Configures a virtual Ethernet interface. show running-config Displays the running system configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1256 OL-27880-02...
  • Page 263: Switchport Trunk Native Vlan

    1 switch(config-if)# switchport trunk native vlan 3 switch(config-if)# Related Commands Command Description interface vethernet Configures a virtual Ethernet interface. show running-config Displays the running system configuration information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1257 OL-27880-02...
  • Page 264: Switchport Voice Vlan

    1/28 switch(config-if)# switchport voice vlan 3 switch(config-if)# This example shows how to configure an Ethernet port to send CDP packets that configure the Cisco IP phone to transmit voice traffic in 802.1p frames: switch(config)# interface ethernet 1/28...
  • Page 265 This example shows how to configure PVLAN over a FEX trunk port: switch# configure terminal switch(config-if)# System private-vlan fex trunk switch(config-if)# copy running-config startup-config Related Commands Command Description feature private-vlan Enables private VLANs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1259 OL-27880-02...
  • Page 266 Creating VLANs within this range is not allowed. Related Commands Command Description write erase Reverts to the default reserved VLAN range. show system vlan Displays information about the reserved VLAN usage. reserved Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1260 OL-27880-02...
  • Page 267 Chapter S Commands system vlan reserve Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1261 OL-27880-02...
  • Page 268 Chapter S Commands system vlan reserve Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1262 OL-27880-02...
  • Page 269: Show Commands

    Show Commands This chapter describes the Cisco NX-OS Ethernet show commands. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1263 OL-27880-02...
  • Page 270 Chapter Show Commands show cdp all show cdp all To display the interfaces in the Cisco Discovery Protocol (CDP) database, use the show cdp all command. show cdp all Syntax Description This command has no arguments or keywords. Command Default...
  • Page 271 Chapter Show Commands show cdp all Related Commands Command Description Enables CDP on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1265 OL-27880-02...
  • Page 272: Show Cdp Entry

    Chapter Show Commands show cdp entry show cdp entry To display the interfaces in the Cisco Discovery Protocol (CDP) database, use the show cdp entry command. show cdp entry {all | name device-name} Syntax Description Displays all interfaces in the CDP database.
  • Page 273 Cisco Nexus Operating System (NX-OS) Software, Version 6.0(2)N1(1) Advertisement Version: 2 Native VLAN: 1 Duplex: full MTU: 1500 Physical Location: snmplocation Mgmt address(es): IPv4 Address: 192.0.2.192 ---------------------------------------- Device ID:switch(FOC16333ZER) Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1267 OL-27880-02...
  • Page 274 Cisco Nexus Operating System (NX-OS) Software, Version 6.0(2)N1(1) Advertisement Version: 2 Native VLAN: 1 Duplex: full Physical Location: snmplocation Mgmt address(es): IPv4 Address: 192.0.2.95 switch# Related Commands Command Description Enables CDP on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1268 OL-27880-02...
  • Page 275 Chapter Show Commands show cdp global show cdp global To display the Cisco Discovery Protocol (CDP) global parameters, use the show cdp global command. show cdp global Syntax Description This command has no arguments or keywords. Command Default None Command Modes...
  • Page 276: Show Cdp Interface

    Chapter Show Commands show cdp interface show cdp interface To display the Cisco Discovery Protocol (CDP) parameters for an interface, use the show cdp interface command. show cdp interface {ethernet slot/[QSFP-module/]port | mgmt mgmt-num} Syntax Description ethernet slot/[QSFP-module/]port Specifies an Ethernet interface. The slot number is from 1 to 255.
  • Page 277: Show Cdp Neighbors

    Chapter Show Commands show cdp neighbors show cdp neighbors To display the Cisco Discovery Protocol (CDP) neighbors, use the show cdp neighbors command. show cdp neighbors [interface {ethernet slot/[QSFP-module/]port | mgmt mgmt-num}] [detail] Syntax Description interface (Optional) Displays CDP neighbor information for an interface, Ethernet or management.
  • Page 278 0 detail ---------------------------------------- Device ID:sw-sw70 System Name: Interface address(es): IPv4 Address: 192.0.2.70 Platform: cisco N6K-C6004-96Q, Capabilities: Switch IGMP Filtering Interface: mgmt0, Port ID (outgoing port): GigabitEthernet0/30 Holdtime: 179 sec Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1272 OL-27880-02...
  • Page 279 Version: Cisco Nexus Operating System (NX-OS) Software, Version 6.0(2)N1(1) Advertisement Version: 2 Native VLAN: 1 Duplex: full MTU: 1500 Physical Location: snmplocation Mgmt address(es): IPv4 Address: 192.0.2.192 ---------------------------------------- Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1273 OL-27880-02...
  • Page 280 Interface: Ethernet1/12, Port ID (outgoing port): Ethernet1/4 Holdtime: 174 sec Version: Cisco Nexus Operating System (NX-OS) Software, Version 6.0(2)N1(1) Advertisement Version: 2 Native VLAN: 1 Duplex: full MTU: 1500 Physical Location: snmplocation Mgmt address(es): Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1274 OL-27880-02...
  • Page 281 Chapter Show Commands show cdp neighbors IPv4 Address: 192.0.2.192 switch# Related Commands Command Description Enables CDP on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1275 OL-27880-02...
  • Page 282: Show Cdp Traffic

    Chapter Show Commands show cdp traffic show cdp traffic To display the Cisco Discovery Protocol (CDP) traffic statistics, use the show cdp traffic command. show cdp traffic interface {ethernet slot/[QSFP-module/]port | mgmt mgmt-num}} Syntax Description interface Displays CDP traffic statistics for an interface, Ethernet or management.
  • Page 283 Malformed Packets: 0 Output Statistics: Total Packets: 3201 CDP v1 Packets: 0 CDP v2 Packets: 3201 Send Errors: 0 switch# Related Commands Command Description Enables CDP on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1277 OL-27880-02...
  • Page 284: Show Interface Brief

    SFP not inserted 40G(D) -- Eth6/1 access down SFP not inserted 40G(D) -- Eth6/2 access down SFP not inserted 40G(D) -- Eth6/3 access down SFP not inserted 40G(D) -- Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1278 OL-27880-02...
  • Page 285 SFP not inserted 10G(D) -- Eth1/24 access down SFP not inserted 10G(D) -- Eth1/25 access down Link not connected 10G(D) -- Eth1/26 access down SFP not inserted 10G(D) -- Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1279 OL-27880-02...
  • Page 286 Layer 3 interface: Mode—routed – Status—up – Reason—none – Ethernet 1/5.2 is a Layer 3 subinterface; however, the interface is not ready for Layer 3 configuration • (Status—down). Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1280 OL-27880-02...
  • Page 287 In the above display, Ethernet 1/5 has the mode shown as “f-path” indicating that it has been configured as a FabricPath port. Related Commands Command Description interface ethernet Configures an Ethernet IEEE 802.3 interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1281 OL-27880-02...
  • Page 288 Broadcast suppression: no Flowcontrol: rx-(off/on),tx-(off/on) Rate mode: none QOS scheduling: rx-(6q1t),tx-(1p6q0t) CoS rewrite: ToS rewrite: SPAN: UDLD: MDIX: Link Debounce: Link Debounce Time: Pvlan Trunk capable: TDR capable: Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1282 OL-27880-02...
  • Page 289 Chapter Show Commands show interface capabilities FabricPath capable: Port mode: Switched FEX Fabric: switch# Related Commands Command Description interface ethernet Configures an Ethernet IEEE 802.3 interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1283 OL-27880-02...
  • Page 290: Show Interface Debounce

    Eth5/4 enable Eth5/5 enable Eth5/6 enable Eth5/7 enable Eth5/8 enable Eth5/9 enable Eth5/10 enable Eth5/11 enable Eth5/12 enable Eth6/1 enable Eth6/2 enable Eth6/3 enable Eth6/4 enable Eth6/5 enable Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1284 OL-27880-02...
  • Page 291 Eth8/6 enable Eth8/7 enable Eth8/8 enable Eth8/9 enable Eth8/10 enable Eth8/11 enable Eth8/12 enable switch# Related Commands Command Description link debounce Enables the debounce timer on an interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1285 OL-27880-02...
  • Page 292: Show Interface Ethernet

    MTU 1500 bytes, BW 40000000 Kbit, DLY 10 usec reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA Port mode is access auto-duplex, 40 Gb/s Beacon is turned off Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1286 OL-27880-02...
  • Page 293 Internet Address is 192.0.2.3/24 MTU 1500 bytes, BW 1500 Kbit, DLY 2000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation 802.1Q Virtual LAN, Vlan ID 100 EtherType is 0x8100 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1287 OL-27880-02...
  • Page 294 Configures a Layer 3 Ethernet IEEE 802.3 interface. (Layer 3) switchport mode vntag Configures an Ethernet interface as a VNTag port. switchport monitor Configures the rate limit for traffic on an interface. rate-limit Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1288 OL-27880-02...
  • Page 295: Show Interface Loopback

    (administratively down). Hardware Hardware is Loopback. Maximum transmission unit (MTU) of the interface. Bandwidth (BW) of the interface in kilobits per second. Delay (DLY) of the interface in microseconds. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1289 OL-27880-02...
  • Page 296 Loopback interface does not have collisions. fifo Number of First In, First Out (FIFO) errors in the transmit direction. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1290 OL-27880-02...
  • Page 297 This example shows how to display the brief information for a specific loopback interface: switch# show interface loopback 10 brief -------------------------------------------------------------------------------- Interface Status Description -------------------------------------------------------------------------------- loopback10 switch# Related Commands Command Description interface loopback Configures a loopback interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1291 OL-27880-02...
  • Page 298 Ethernet1/5 c84c.753d.5b74 c84c.753d.5b7c Ethernet1/6 c84c.753d.5b74 c84c.753d.5b7d Ethernet1/7 c84c.753d.5b74 c84c.753d.5b7e Ethernet1/8 c84c.753d.5b74 c84c.753d.5b7f Ethernet1/9 c84c.753d.5b74 c84c.753d.5b80 Ethernet1/10 c84c.753d.5b74 c84c.753d.5b81 Ethernet1/11 c84c.753d.5b74 c84c.753d.5b82 Ethernet1/12 c84c.753d.5b74 c84c.753d.5b83 Ethernet5/1 c84c.753d.5b74 a44c.11e7.ea20 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1292 OL-27880-02...
  • Page 299 Adds static entries to the MAC address table or configures a static MAC static address with IGMP snooping disabled for that address. show mac Displays information on the MAC address table. address-table Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1293 OL-27880-02...
  • Page 300 EtherType is 0x0000 1 minute input rate 11336 bits/sec, 9 packets/sec 1 minute output rate 2248 bits/sec, 3 packets/sec 22722587 input packets 7487592 unicast packets 7082728 multicast packets Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1294 OL-27880-02...
  • Page 301 0 brief -------------------------------------------------------------------------------- Port Status IP Address Speed -------------------------------------------------------------------------------- mgmt0 192.0.2.192 1000 1500 switch# Related Commands Command Description interface mgmt Configures a management interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1295 OL-27880-02...
  • Page 302 30 seconds output rate 352 bits/sec, 0 packets/sec Load-Interval #2: 5 minute (300 seconds) input rate 0 bps, 0 pps; output rate 368 bps, 0 pps 0 unicast packets 0 multicast packets 0 broadcast packets Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1296 OL-27880-02...
  • Page 303 0 late collision 0 lost carrier 0 no carrier 0 babble 0 Tx pause 1 interface resets switch# Related Commands Command Description interface port-channel Configures an EtherChannel interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1297 OL-27880-02...
  • Page 304 Displays information about the ports, including those in private VLANs. switchport show vlan Displays summary information for all VLANs. show vlan private-vlan Displays information for all private VLANs on the device. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1298 OL-27880-02...
  • Page 305 BPDUGuard errDisable Eth114/1/42 down BPDUGuard errDisable Eth114/1/43 down BPDUGuard errDisable Eth114/1/44 down BPDUGuard errDisable Eth114/1/45 down BPDUGuard errDisable Eth114/1/46 down BPDUGuard errDisable Eth114/1/47 down BPDUGuard errDisable --More-- switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1299 OL-27880-02...
  • Page 306 Show Commands show interface status err-disabled Related Commands Command Description errdisable detect cause Enables the error disabled (err-disabled) detection. errdisable recovery Enables error disabled recovery on an interface. cause Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1300 OL-27880-02...
  • Page 307: Show Interface Switchport

    Release Modification 5.2(1)N1(1) This command was introduced. Usage Guidelines You can configure the rate limit on the following Cisco Nexus 5000 Series switches using the switchport monitor rate-limit 1G command: • Cisco Nexus 5010 Series • Cisco Nexus 5020 Series This command does not require a license.
  • Page 308 Switchport: Enabled Switchport Monitor: Not enabled Operational Mode: trunk Access Mode VLAN: 700 (VLAN0700) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: 1,300-795 <--snip--> Name: port-channel4000 Switchport: Enabled Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1302 OL-27880-02...
  • Page 309 Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: 1,300-800 Pruning VLANs Enabled: 2-1001 Administrative private-vlan primary host-association: none Administrative private-vlan secondary host-association: none Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1303 OL-27880-02...
  • Page 310 Command Description switchport access vlan Sets the access VLAN when the interface is in access mode. switchport monitor Configures the rate limit for traffic on an interface. rate-limit Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1304 OL-27880-02...
  • Page 311 Bandwidth : 1000000 Kbit (Ethernet1/2), 10000000 Kbit (Ethernet1/1) Ethernet1/20 Ethernet1/21 Active Down/Backup Down Preemption Mode : off Multicast Fast Convergence : Off Bandwidth : 10000000 Kbit (Ethernet1/20), 10000000 Kbit (Ethernet1/21) Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1305 OL-27880-02...
  • Page 312 Configures Flex Links. interface show running-config Displays the running configuration information for backup interfaces. backup show running-config Displays the running configuration information for Flex Links. flexlink Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1306 OL-27880-02...
  • Page 313: Show Interface Transceiver

    MOC14081360 nominal bitrate is 10300 MBit/sec Link length supported for copper is 1 m cisco id is -- cisco extended id number is 4 switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1307 OL-27880-02...
  • Page 314 Show Commands show interface transceiver Related Commands Command Description interface ethernet Configures an Ethernet IEEE 802.3 interface. show interface Displays detailed information about the capabilities of an interface. capabilities Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1308 OL-27880-02...
  • Page 315 0 input packets 0 bytes 0 input packet drops 0 unicast packets 0 multicast packets 0 broadcast packets 0 output packets 0 bytes 0 flood packets 0 output packet drops Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1309 OL-27880-02...
  • Page 316 Administrative private-vlan trunk private VLANs: none Operational private-vlan: none Unknown unicast blocked: disabled Unknown multicast blocked: disabled switch# Related Commands Command Description interface vethernet Configures a virtual Ethernet interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1310 OL-27880-02...
  • Page 317 ------------------ ------------------ Rate Total Rate Total Rate averaging MB/s Frames MB/s Frames interval (seconds) ------------------------------------------------------------------------------- Vethernet10 switch# Related Commands Command Description interface vethernet Configures a virtual Ethernet interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1311 OL-27880-02...
  • Page 318 5.2(1)N1(1) This command was introduced. Usage Guidelines Before you use this command, make sure that you enable Cisco Virtual Machine Fabric Extender (VM-FEX) on the switch by using the feature vmfex command. Examples This example shows how to display brief information about the counters configured on a specified virtual...
  • Page 319 Chapter Show Commands show interface virtual Related Commands Command Description feature vmfex Enables VM-FEX on the switch. interface vethernet Configures a virtual Ethernet interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1313 OL-27880-02...
  • Page 320: Show Interface Vlan

    This example shows how to display a brief description for the specified VLAN: switch# show interface vlan 10 brief ------------------------------------------------------------------------- Interface Secondary VLAN(Type) Status Reason ------------------------------------------------------------------------- Vlan10 switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1314 OL-27880-02...
  • Page 321 Displays information about the ports, including those in private VLANs. switchport show vlan Displays summary information for all VLANs. show vlan private-vlan Displays summary information for all private VLANs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1315 OL-27880-02...
  • Page 322: Show Ip Igmp Snooping

    IGMPv3 Report suppression disabled Link Local Groups suppression enabled Router port detection using PIM Hellos, IGMP Queries Number of router-ports: 1 Number of groups: 0 VLAN vPC function enabled Active ports: Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1316 OL-27880-02...
  • Page 323 Globally enables IGMP snooping. IGMP snooping must be globally enabled (EXEC) in order to be enabled on a VLAN. ip igmp snooping Enables IGMP snooping on the VLAN interface. (VLAN) Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1317 OL-27880-02...
  • Page 324: Show Lacp

    This example shows how to display the LACP information for a specific interface: switch# show lacp interface ethernet 1/1 Interface Ethernet1/1 is up Channel group is 1 port channel is Po1 PDUs sent: 1684 PDUs rcvd: 1651 Markers sent: 0 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1318 OL-27880-02...
  • Page 325 Clears LACP counters. lacp port-priority Sets the priority for the physical interfaces for the LACP. lacp system-priority Sets the system priority of the switch for the LACP. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1319 OL-27880-02...
  • Page 326 Vlan Aging Time ----- ---------- 2023 2022 2021 2020 2019 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004 2003 --More-- switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1320 OL-27880-02...
  • Page 327 Related Commands Command Description mac address-table Configures the aging time for entries in the MAC address table. aging-time show mac Displays information about the MAC address table. address-table Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1321 OL-27880-02...
  • Page 328 This example shows how to display the number of dynamic entries currently in the MAC address table: switch# show mac address-table count dynamic MAC Entries for all vlans: Total MAC Addresses in Use: 7 switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1322 OL-27880-02...
  • Page 329 Chapter Show Commands show mac address-table count Related Commands Command Description show mac Displays information about the MAC address table. address-table Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1323 OL-27880-02...
  • Page 330 This example shows how to display MAC address move notifications: switch# show mac address-table notification mac-move MAC Move Notify : disabled switch# Related Commands Command Description show mac Displays information about the MAC address table. address-table Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1324 OL-27880-02...
  • Page 331 The switch maintains static MAC address entries that are saved in its startup configuration across reboots and flushes the dynamic entries. Examples This example shows how to display information about the entries for the MAC address table: switch# show mac address-table Legend: Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1325 OL-27880-02...
  • Page 332 Adds static entries to the MAC address table or configures a static MAC static address with IGMP snooping disabled for that address. show mac Displays information about the time-out values for the MAC address table. address-table aging-time Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1326 OL-27880-02...
  • Page 333 Displays the number of entries currently in the MAC address table. address-table count show mac Displays information about notifications for the MAC address table. address-table notifications Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1327 OL-27880-02...
  • Page 334: Show Monitor Session

    Legend: f = forwarding enabled, l = learning enabled switch# This example shows how to display a brief information about a SPAN session: switch# show monitor session range 1 brief session 1 --------------- Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1328 OL-27880-02...
  • Page 335 VLANs switch# Related Commands Command Description monitor session Creates a new Switched Port Analyzer (SPAN) session configuration. show running-config Displays the running configuration information about SPAN sessions. monitor Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1329 OL-27880-02...
  • Page 336: Show Mvr

    Configures an MVR port type for an interface. mvr vlan Configures an MVR VLAN for an interface. show mvr groups Displays the MVR groups. show mvr members Displays the active MVR groups. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1330 OL-27880-02...
  • Page 337 Configures an MVR group for an interface. mvr type Configures an MVR port type for an interface. mvr vlan Configures an MVR VLAN for an interface. show mvr members Displays the active MVR groups. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1331 OL-27880-02...
  • Page 338: Show Mvr Interface

    Configures an MVR group for an interface. mvr type Configures an MVR port type for an interface. mvr vlan Configures an MVR VLAN for an interface. show mvr members Displays the active MVR groups. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1332 OL-27880-02...
  • Page 339: Show Mvr Members

    Configures an MVR group for an interface. mvr type Configures an MVR port type for an interface. mvr vlan Configures an MVR VLAN for an interface. show mvr Displays general information about MVRs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1333 OL-27880-02...
  • Page 340 Configures an MVR port type for an interface. mvr vlan Configures an MVR VLAN for an interface. show mvr Displays general information about MVRs. show mvr members Displays the active MVR groups. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1334 OL-27880-02...
  • Page 341 Configures an MVR VLAN for an interface. show mvr Displays general information about MVRs. show mvr members Displays the active MVR groups. show mvr Displays the MVR receiver ports. receiver-ports Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1335 OL-27880-02...
  • Page 342 739 free 3% used switch# Related Commands Command Description port-channel Configures the load-balancing algorithm for EtherChannels. load-balance ethernet show tech-support Displays Cisco Technical Support information about EtherChannels. port-channel Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1336 OL-27880-02...
  • Page 343 Members have to have the same shut lan configured. This only applies to ethernet port-channel. * MEDIUM Members have to have the same medium type configured. This only applies to ethernet port-channel. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1337 OL-27880-02...
  • Page 344 Member must have same load interval configured. --More-- <---output truncated---> switch# Related Commands Command Description port-channel Configures the load-balancing algorithm for EtherChannels. load-balance ethernet show tech-support Displays Cisco Technical Support information about EtherChannels. port-channel Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1338 OL-27880-02...
  • Page 345 Age of the port-channel is 0d:09h:11m:30s Time since last bundle is 0d:09h:12m:20s Last bundled member is Ports: Ethernet2/3 [on] [up] * port-channel50 Last membership update is successful --More-- <---output truncated---> Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1339 OL-27880-02...
  • Page 346 Ethernet2/3 [on] [up] * switch# Related Commands Command Description port-channel Configures the load-balancing algorithm for EtherChannels. load-balance ethernet show tech-support Displays Cisco Technical Support information about EtherChannels. port-channel Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1340 OL-27880-02...
  • Page 347 (Optional) Displays the load distribution on the source IPv6 address. src-mac (Optional) Displays the load distribution on the source MAC address. src-mac-addr source MAC address. The format is AA:BB:CC:DD:EE:FF. Command Default None Command Modes EXEC mode Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1341 OL-27880-02...
  • Page 348 Port Channel Load-Balancing Configuration: System: source-dest-ip Port Channel Load-Balancing Addresses Used Per-Protocol: Non-IP: source-dest-mac IP: source-dest-ip source-dest-mac switch# Table 3 describes the fields shown in the display. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1342 OL-27880-02...
  • Page 349 ID: switch# show port-channel load-balance forwarding-path interface port-channel 10 vlan 1 dst-ip 192.0.2.25 src-ip 192.0.2.10 src-mac aa:bb:cc:dd:ee:ff l4-src-port 0 l4-dst-port 1 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1343 OL-27880-02...
  • Page 350 0 dst-ip: 192.0.2.25 src-ip: 192.0.2.10 dst-mac: 0000.0000.0000 src-mac: aabb.ccdd.eeff switch# Related Commands Command Description port-channel Configures the load-balancing method among the interfaces in the load-balance ethernet channel-group bundle. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1344 OL-27880-02...
  • Page 351 Eth1/40(P) Po5(SU) NONE Eth3/5(P) Eth3/6(P) Po6(SU) NONE Eth1/5(P) Eth1/6(P) Eth1/7(P) Eth1/8(P) Po12(SU) NONE Eth3/3(P) Eth3/4(P) Po15(SD) NONE Po20(SU) NONE Eth1/17(P) Eth1/18(P) Eth1/19(D) Eth1/20(P) Po24(SU) LACP Eth105/1/27(P) Eth105/1/28(P) Eth105/1/29 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1345 OL-27880-02...
  • Page 352 <---output truncated---> switch# Related Commands Command Description channel-group Assigns and configures a physical interface to an EtherChannel. (Ethernet) interface port-channel Creates an EtherChannel interface and enters interface configuration mode. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1346 OL-27880-02...
  • Page 353 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% Eth1/8 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% Eth1/9 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% Eth1/10 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1347 OL-27880-02...
  • Page 354 Show Commands show port-channel traffic Related Commands Command Description port-channel Configures the load-balancing algorithm for EtherChannels. load-balance ethernet show tech-support Displays Cisco Technical Support information about EtherChannels. port-channel Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1348 OL-27880-02...
  • Page 355 (some numbers may be in use by SAN port channels) switch# Related Commands Command Description port-channel Configures the load-balancing algorithm for EtherChannels. load-balance ethernet show tech-support Displays Cisco Technical Support information about EtherChannels. port-channel Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1349 OL-27880-02...
  • Page 356 Max Addresses limit in System (excluding one mac per port) : 8192 ---------------------------------------------------------------------------- Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action (Count) (Count) (Count) ---------------------------------------------------------------------------- Ethernet1/5 Shutdown ============================================================================ switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1350 OL-27880-02...
  • Page 357 Clears the dynamically secured addresses on a port. dynamic show running-config Displays the port security configuration information. port-security switchport Configures the switchport parameters to establish port security. port-security Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1351 OL-27880-02...
  • Page 358 Command Description provision Preprovisions a module in a slot. show running-config Displays the running configuration excluding the preprovisioned features. exclude-provision slot Enables a slot for preprovisioning a module. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1352 OL-27880-02...
  • Page 359 ----------- ----- ----- ------ -------- ------- vlan 4094 monitor-session 1000 port-channel u4route-mem u6route-mem m4route-mem m6route-mem bundle-map switch# Related Commands Command Description show interface Displays information about EtherChannels. port-channel Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1353 OL-27880-02...
  • Page 360 This example shows how to display detailed information on the running configuration: switch# show running-config all Related Commands Command Description show startup-config Displays the contents of the startup configuration file. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1354 OL-27880-02...
  • Page 361 Ethernet2/1 interface Ethernet1/2 switchport backup interface Ethernet1/1 interface Ethernet1/20 switchport backup interface Ethernet1/21 interface Ethernet2/2 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1355 OL-27880-02...
  • Page 362 Displays the Flex Links running configuration. flexlink show startup-config Displays the startup configuration for backup interfaces. backup show startup-config Displays the startup configuration for Flex Links. flexlink Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1356 OL-27880-02...
  • Page 363 Chapter Show Commands show running-config backup Command Description show tech-support Displays troubleshooting information for backup interfaces. backup show tech-support Displays troubleshooting information for Flex Links. flexlink Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1357 OL-27880-02...
  • Page 364 192.0.2.54 key 7 "wawy1234" tacacs-server host 192.0.2.37 tacacs-server host 192.0.2.37 test username user1 aaa group server tacacs+ t1 server 192.0.2.54 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1358 OL-27880-02...
  • Page 365 Displays the preprovisioned module information. show startup-config Displays the startup configuration without the preprovisioning information exclude-provision for offline interfaces. slot Configures a chassis slot for a predefined module. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1359 OL-27880-02...
  • Page 366 Ethernet2/1 interface Ethernet1/2 switchport backup interface Ethernet1/1 interface Ethernet1/20 switchport backup interface Ethernet1/21 interface Ethernet2/2 switchport backup interface port-channel507 preemption mode forced switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1360 OL-27880-02...
  • Page 367 Displays the startup configuration for Flex Links. flexlink show tech-support Displays troubleshooting information for backup interfaces. backup show tech-support Displays troubleshooting information for Flex Links. flexlink Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1361 OL-27880-02...
  • Page 368 Support for the QSFP+ GEM was added. 5.2(1)N1(1) This command was introduced. Examples This example shows how to display the running configuration for port channel 10: switch(config)# show running-config interface port-channel 10 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1362 OL-27880-02...
  • Page 369 !Command: show running-config interface Vlan5 !Time: Mon Jan 30 00:37:27 2013 version 6.0(2)N1(1) interface Vlan5 management switch# Related Commands Command Description show startup-config Displays the running configuration on the device. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1363 OL-27880-02...
  • Page 370 !Time: Mon Jan 30 00:37:27 2013 version 6.0(2)N1(1) monitor session 1 type local description A Local SPAN session source interface Ethernet1/5 both destination interface Ethernet1/21 no shut switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1364 OL-27880-02...
  • Page 371 Chapter Show Commands show running-config monitor Related Commands Command Description monitor session Configures SPAN or ERSPAN sessions. show monitor session Displays information about SPAN or ERSPAN sessions. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1365 OL-27880-02...
  • Page 372 !Time: Mon Jan 30 00:37:27 2013 version 6.0(2)N1(1) feature port-security interface Ethernet1/5 switchport port-security switchport port-security aging time 3 switchport port-security maximum 10 switchport port-security mac-address sticky switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1366 OL-27880-02...
  • Page 373 Related Commands Command Description clear port-security Clears the dynamically secured addresses on a port. dynamic show startup-config Displays the configuration information in the startup file. port-security Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1367 OL-27880-02...
  • Page 374 1 root priority 4096 mst 2 designated priority 4096 interface port-channel1 spanning-tree port type network switch# Related Commands Command Description show spanning-tree Displays information about STP. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1368 OL-27880-02...
  • Page 375 This example shows how to display the running configuration for VLAN 5: switch# show running-config vlan 5 Related Commands Command Description show vlan Displays information about all the VLANs on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1369 OL-27880-02...
  • Page 376 Enables VTP on the switch. vtp domain Configures the VTP administrative domain. vtp file Stores the VTP configuration in a file. vtp mode Configures a VTP device mode. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1370 OL-27880-02...
  • Page 377 Command Output Fields Field Definition Role Current port STP role. Valid values are as follows: • Desg (designated) • Root Altn (alternate) • Back (backup) • Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1371 OL-27880-02...
  • Page 378 P2p *TYPE_Inc Eth1/15 Desg BKN*2 128.143 P2p *TYPE_Inc Eth1/16 Desg BKN*2 128.144 P2p *TYPE_Inc Eth1/33 Desg FWD 2 128.161 Edge P2p Eth1/35 Desg FWD 2 128.163 Edge P2p Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1372 OL-27880-02...
  • Page 379 Displays detailed information about STP. detail show spanning-tree Displays the STP interface status and configuration of specified interfaces. interface show spanning-tree Displays information about Multiple Spanning Tree (MST) STP. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1373 OL-27880-02...
  • Page 380 Displays the status and configuration of the root bridge for the STP instance root to which this switch belongs. show spanning-tree Displays summary information about STP. summary show spanning-tree Displays STP information for specified VLANs. vlan Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1374 OL-27880-02...
  • Page 381 Displays the status and configuration of the root bridge for the STP instance root to which this switch belongs. show spanning-tree Displays summary information about STP. summary show spanning-tree Displays STP information for specified VLANs. vlan Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1375 OL-27880-02...
  • Page 382 VLAN0001 32769 (32768,1) 0005.9b74.a6fc rstp VLAN0005 32773 (32768,5) 0005.9b74.a6fc rstp switch# This example shows how to display detailed STP information for the bridge: switch# show spanning-tree bridge detail Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1376 OL-27880-02...
  • Page 383 Forward Delay 15 sec switch# Related Commands Command Description spanning-tree bridge Enables Bridge Assurance on all network ports on the switch. assurance show spanning-tree Displays summary information about STP. summary Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1377 OL-27880-02...
  • Page 384 128.3976 (vPC) Edge P2p Eth198/1/11 Desg FWD 1 128.1291 (vPC) Edge P2p Eth199/1/13 Desg FWD 2 128.1677 Edge P2p VLAN0300 Spanning tree enabled protocol rstp Root ID Priority 4396 --More-- switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1378 OL-27880-02...
  • Page 385 Displays the status and configuration of the root bridge for the STP instance root to which this switch belongs. show spanning-tree Displays summary information about STP. summary show spanning-tree Displays STP information for specified VLANs. vlan Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1379 OL-27880-02...
  • Page 386 The port type is edge by port type edge trunk configuration Link type is point-to-point by default Bpdu guard is enabled Bpdu filter is enabled BPDU: sent 0, received 0 switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1380 OL-27880-02...
  • Page 387 Displays the status and configuration of the root bridge for the STP instance root to which this switch belongs. show spanning-tree Displays summary information about STP. summary show spanning-tree Displays STP information for specified VLANs. vlan Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1381 OL-27880-02...
  • Page 388 (Optional) Displays the current port STP state. Command Default None Command Modes EXEC mode Command History Release Modification 6.0(2)N1(1) Support for the QSFP+ GEM was added. 5.2(1)N1(1) This command was introduced. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1382 OL-27880-02...
  • Page 389 Displays the status and configuration of the root bridge for the STP instance root to which this switch belongs. show spanning-tree Displays summary information about STP. summary show spanning-tree Displays STP information for specified VLANs. vlan Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1383 OL-27880-02...
  • Page 390 If the switch is not running in STP Multiple Spanning Tree (MST) mode when you enter this command, it returns the following message: ERROR: Switch is not in mst mode Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1384 OL-27880-02...
  • Page 391 Displays the status and configuration of the root bridge for the STP instance root to which this switch belongs. show spanning-tree Displays summary information about STP. summary show spanning-tree Displays STP information for specified VLANs. vlan Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1385 OL-27880-02...
  • Page 392 This example shows how to display information for the root bridge: switch(config)# show spanning-tree root Related Commands Command Description show spanning-tree Displays information about STP. show spanning-tree Displays information about STP active interfaces only. active Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1386 OL-27880-02...
  • Page 393 Displays information about Multiple Spanning Tree (MST) STP. show spanning-tree Displays summary information about STP. summary show spanning-tree Displays STP information for specified VLANs. vlan Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1387 OL-27880-02...
  • Page 394 Blocking Listening Learning Forwarding STP Active ---------------------- -------- --------- -------- ---------- ---------- VLAN0001 VLAN0005 ---------------------- -------- --------- -------- ---------- ---------- 2 vlans switch# Related Commands Command Description show spanning-tree Displays information about STP. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1388 OL-27880-02...
  • Page 395 (Optional) Displays the STP maximum-aging time for the specified VLANs. priority (Optional) Displays the STP priority for the specified VLANs. system-id (Optional) Displays the bridge identification with the system ID added for the specified VLANs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1389 OL-27880-02...
  • Page 396 Support for the QSFP+ GEM was added. 5.2(1)N1(1) This command was introduced. Examples This example shows how to display STP information on VLAN 1: switch# show spanning-tree vlan 1 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1390 OL-27880-02...
  • Page 397 Displays the status and configuration of the root bridge for the STP instance root to which this switch belongs. show spanning-tree Displays summary information about STP. summary Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1391 OL-27880-02...
  • Page 398 This example shows how to display information from the startup configuration file: switch# show startup-config Related Commands Command Description show running-config Displays the contents of the currently running configuration file. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1392 OL-27880-02...
  • Page 399 Ethernet2/1 interface Ethernet1/2 switchport backup interface Ethernet1/1 interface Ethernet1/20 switchport backup interface Ethernet1/21 interface Ethernet2/2 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1393 OL-27880-02...
  • Page 400 Copies the running configuration information to the startup configuration startup-config file. show running-config Displays the running configuration information for backup interfaces. backup show running-config Displays Flex Links running configuration information. flexlink Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1394 OL-27880-02...
  • Page 401 Chapter Show Commands show startup-config backup Command Description show tech-support Displays troubleshooting information for backup interfaces. backup show tech-support Displays troubleshooting information for Flex Links. flexlink Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1395 OL-27880-02...
  • Page 402 5 ! role network-operator no password strength-check ip domain-lookup ip domain-lookup tacacs-server host 192.0.2.54 key 7 "wawy1234" tacacs-server host 192.0.2.37 tacacs-server host 192.0.2.37 test username user1 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1396 OL-27880-02...
  • Page 403 Preprovisions a module in a slot. show provision Displays the preprovisioned module information. show running-config Displays the running configuration excluding the preprovisioned features. exclude-provision slot Configures a chassis slot for a predefined module. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1397 OL-27880-02...
  • Page 404 Ethernet2/1 interface Ethernet1/2 switchport backup interface Ethernet1/1 interface Ethernet1/20 switchport backup interface Ethernet1/21 interface Ethernet2/2 switchport backup interface port-channel507 preemption mode forced Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1398 OL-27880-02...
  • Page 405 Copies the running configuration information to the startup configuration startup-config file. show running-config Displays the running configuration information for backup interfaces. backup show running-config Displays Flex Links running configuration information. flexlink Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1399 OL-27880-02...
  • Page 406 Chapter Show Commands show startup-config flexlink Command Description show tech-support Displays troubleshooting information for backup interfaces. backup show tech-support Displays troubleshooting information for Flex Links. flexlink Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1400 OL-27880-02...
  • Page 407 This example shows how to display the information from the startup configuration file for all secure ports configured on an interface: switch# show startup-config port-security Related Commands Command Description clear port-security Clears the dynamically secured addresses on a port. dynamic Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1401 OL-27880-02...
  • Page 408 Enables VTP on the switch. vtp domain Configures the VTP administrative domain. vtp file Stores the VTP configuration in a file. vtp mode Configures a VTP device mode. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1402 OL-27880-02...
  • Page 409 Chapter Show Commands show svs connections show svs connections To display the current SVS connections to the Cisco Nexus 5000 Series switch for verification, use the show svs connections command. show svs connections [conn_name] Syntax Description conn-name (Optional) Name of the SVS connection. The name can be a maximum of 64 alphanumeric characters.
  • Page 410 DVS_DC DVS uuid: - config status: Disabled operational status: Disconnected sync status: - version: - switch# Related Commands Command Description svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1404 OL-27880-02...
  • Page 411 3968-4095 switch# Related Commands Command Description system vlan reserve Confiugres the reserved VLAN range. write erase Reverts to the default reserved VLAN range. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1405 OL-27880-02...
  • Page 412 Bandwidth : 20000000 Kbit (port-channel300), 10000000 Kbit (port-channel 301) port-channel500 port-channel501 Active Down/Backup Down Preemption Mode : off Multicast Fast Convergence : On Bandwidth : 100000 Kbit (port-channel500), 100000 Kbit (port-channel501) Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1406 OL-27880-02...
  • Page 413 MTS_OPC_IM_IF_CREATED(62467) with flexlink_q_mts ::13::[Thu Jan 1 00:01:21 2009 595448 usecs] flexlink_mts_queue_initialize: reg istered MTS_OPC_IM_IF_REMOVED(62468) with flexlink_q_mts ::14::[Thu Jan 1 00:01:21 2009 595495 usecs] flexlink_mts_queue_initialize: reg <--Output truncated--> switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1407 OL-27880-02...
  • Page 414 ::3::[Thu Jan 1 00:01:21 2009 594946 usecs] flexlink_mts_queue_initialize: mts bind for flexlink_q_mts(7) successful ::4::[Thu Jan 1 00:01:21 2009 595015 usecs] flexlink_mts_queue_initialize: regi stered MTS_OPC_SDWRAP_DEBUG_DUMP(1530) with flexlink_q_mts Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1408 OL-27880-02...
  • Page 415 MTS_OPC_IM_IF_CREATED(62467) with flexlink_q_mts <--Output truncated--> switch# Related Commands Command Description show running-config Displays the running configuration information for backup interfaces. backup show running-config Displays Flex Links running configuration information. flexlink Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1409 OL-27880-02...
  • Page 416 The output from the show tech-support port-channel command is very long. To better manage this output, you can redirect the output to a file. Examples This example shows how to display Cisco technical support information for EtherChannel interfaces: switch# show tech-support port-channel `show port-channel internal event-history all`...
  • Page 417 Related Commands Command Description port-channel Configures the load-balancing method among the interfaces in the load-balance ethernet channel-group bundle. show port-channel Displays information on EtherChannel load balancing. load-balance Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1411 OL-27880-02...
  • Page 418: Show Udld

    ---------------- Expiration time: 41 Cache Device index: 1 Current neighbor state: bidirectional Device ID: FLC12280095 Port ID: Ethernet1/1 Neighbor echo 1 devices: SSI130205RT Neighbor echo 1 port: Ethernet1/1 Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1412 OL-27880-02...
  • Page 419 Port Device Name Device ID Port ID Neighbor State -------------------------------------------------------------------------- Ethernet1/1 FLC12280095 Ethernet1/1 bidirectional Ethernet1/2 FLC12280095 Ethernet1/2 bidirectional Ethernet1/3 FLC12280095 Ethernet1/3 bidirectional Ethernet1/4 FLC12280095 Ethernet1/4 bidirectional Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1413 OL-27880-02...
  • Page 420 JAF1346000C Ethernet1/10 bidirectional switch# Related Commands Command Description udld (configuration Configures the UDLD protocol on the switch. mode) udld (Ethernet) Configures the UDLD protocol on an Ethernet interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1414 OL-27880-02...
  • Page 421: Show Vlan

    If a VLAN is shut down locally and internally, the value that is displayed in the Status field is act/ishut or sus/ishut. If a VLAN is shut down locally only, the value that is displayed in the Status field is act/lshut or sus/lshut. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1415 OL-27880-02...
  • Page 422 Related Commands Command Description show interface Displays information about the ports, including those in private VLANs. switchport show vlan private-vlan Displays private VLAN information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1416 OL-27880-02...
  • Page 423: Show Vlan Dot1Q Tag Native

    Related Commands Command Description vlan dot1q tag native Enables dot1q (IEEE 802.1Q) tagging for all native VLANs on all trunked ports on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1417 OL-27880-02...
  • Page 424: Show Vlan Id

    This example shows how to display information for the individual VLAN 5: switch# show vlan id 5 Related Commands Command Description show vlan Displays information about VLANs on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1418 OL-27880-02...
  • Page 425 VLANs so that both VLANs share the same primary VLAN interface. show interface Displays information about the ports, including those in private VLANs. switchport show vlan Displays information about all the VLANs on the switch. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1419 OL-27880-02...
  • Page 426 Number of V1 summary errors VTP pruning statistics: Trunk Join Transmitted Join Received Summary advts received from non-pruning-capable device ---------------- ---------------- ---------------- --------------------------- port-channel23 port-channel67 port-channel400 port-channel1504 Ethernet1/2 Ethernet1/12 switch# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1420 OL-27880-02...
  • Page 427 Show Commands show vtp counters Related Commands Command Description feature vtp Enables VTP on the switch. Enables VTP on an interface. vtp mode Configures the VTP device mode. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1421 OL-27880-02...
  • Page 428 Enabled switch# This example shows how to display the VTP configuration information for an Ethernet interface: switch# show vtp interface ethernet 1/12 Interface VTP Status -------------------------------- Ethernet1/12 Enabled Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1422 OL-27880-02...
  • Page 429 Displays the Ethernet interfaces configured on the switch. ethernet show interface Displays the EtherChannels configured on the switch. port-channel show vtp status Displays the VTP configuration status. Enables VTP on an interface. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1423 OL-27880-02...
  • Page 430 VTP password: cisco switch# Related Commands Command Description feature vtp Enables VTP on the switch. vtp domain Configures the VTP domain. vtp password Configures the VTP administrative password. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1424 OL-27880-02...
  • Page 431 Before you use this command, you must enable VTP on the switch by using the feature vtp command. Examples This example shows how to display the VTP domain status on a Cisco NX-OS Release 4.2(1)N1(1): switch# show vtp status VTP Version...
  • Page 432 Chapter Show Commands show vtp status switch# This example shows how to display the VTP domain status in Cisco NX-OS Release 5.0(2)N2(1): switch# show vtp status VTP Status Information ---------------------- VTP Version : 2 (capable) Configuration Revision Maximum VLANs supported locally : 1005...
  • Page 433 U Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with U. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1427 OL-27880-02...
  • Page 434 In these cases, the UDLD aggressive mode disables one of the ports on the link, which prevents traffic from being discarded. Examples This example shows how to enable the aggressive UDLD mode for the switch: switch# configure terminal Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1428 OL-27880-02...
  • Page 435 This example shows how to reset all ports that were shut down by UDLD: switch# configure terminal switch(config)# udld reset Related Commands Command Description show udld Displays the administrative and operational UDLD status. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1429 OL-27880-02...
  • Page 436 This example shows how to enable the aggressive UDLD mode for an Ethernet port: switch(config-if)# udld aggressive This example shows how to disable UDLD for an Ethernet port: switch(config-if)# udld disable Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1430 OL-27880-02...
  • Page 437 Chapter U Commands udld (Ethernet) Related Commands Command Description show udld Displays the administrative and operational UDLD status. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1431 OL-27880-02...
  • Page 438 Chapter U Commands udld (Ethernet) Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1432 OL-27880-02...
  • Page 439 V Commands This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with V. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1433 OL-27880-02...
  • Page 440 5.2(1)N1(1) This command we introduced. Usage Guidelines Before you use a virtual Ethernet interface, you must enable Cisco Virtual Machine Fabric Extender (VM-FEX) on the switch by using the feature vmfex command. Examples This example shows how to enable automatic creation of virtual Ethernet interfaces on the switch:...
  • Page 441 VLAN, the switch automatically reinstates all the original ports to that VLAN. In Cisco NX-OS 5.0(2)N1(1), you can configure VLANs on a device configured as a VLAN Trunking Protocol (VTP) server or transparent device. If the VTP device is configured as a client, you cannot add a VLAN or enter the VLAN configuration mode.
  • Page 442 This example shows how to add a range of new VLANs and enter VLAN configuration mode: switch(config)# vlan 2,5,10-12,20,25,4000 switch(config-vlan)# This example shows how to delete a VLAN: switch(config)# no vlan 2 Related Commands Command Description show vlan Displays VLAN information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1436 OL-27880-02...
  • Page 443 1 designated priority 4096 switch(config-pseudo)# vlan 1 root priority 8192 switch(config-pseudo)# Related Commands Command Description show running-config Displays the running configuration information of the Spanning Tree spanning-tree Protocol (STP). Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1437 OL-27880-02...
  • Page 444 Chapter V Commands vlan (STP) Command Description show spanning-tree Displays the configuration information of the STP. spanning-tree Configures spanning tree pseudo information parameters. pseudo-information Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1438 OL-27880-02...
  • Page 445: Vlan Dot1Q Tag Native

    This example shows how to disable 802.1Q tagging on the switch: switch(config)# no vlan dot1q tag native Turning off vlan dot1q tag native may impact the functioning of existing dot1q tunnel ports switch(config)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1439 OL-27880-02...
  • Page 446 Chapter V Commands vlan dot1Q tag native Related Commands Command Description show vlan dot1q tag Displays the status of tagging on the native VLAN. native Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1440 OL-27880-02...
  • Page 447 Related Commands Command Description show interface Displays information about the virtual Ethernet interface configuration. vethernet show running-config Displays the running system configuration information for an interface. interface Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1441 OL-27880-02...
  • Page 448 SVSConn switch(config-svs-conn)# no vmware dvs datacenter-name dc1 switch(config-svs-conn)# Related Commands Command Description show svs connections Displays SVS connection information. svs connection Enables an SVS connection. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1442 OL-27880-02...
  • Page 449 5.2(1)N1(1) This command we introduced. Usage Guidelines Before you use this command, make sure that you enable the Cisco Virtual Machine Fabric Extender (VM-FEX) on the switch by using the feature vmfex command. This command does not require a license.
  • Page 450 Enters the monitor configuration mode for configuring an ERSPAN session for analyzing traffic between ports. show monitor session Displays information about the Ethernet switched port analyzer (SPAN) or ERSPAN monitor session. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1444 OL-27880-02...
  • Page 451: Vrf Context

    • shutdown—Shuts down the current VRF context. • Examples This example shows how to enter VRF context mode: switch(config)# vrf context management switch(config-vrf)# Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1445 OL-27880-02...
  • Page 452 Chapter V Commands vrf context Related Commands Command Description show vrf Displays VRF information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1446 OL-27880-02...
  • Page 453 Before you use this command, you must enable VTP on the switch by using the feature vtp command. VLAN Trunking Protocol (VTP) is a Cisco Proprietary Layer 2 messaging protocol used to distribute the VLAN configuration information across multiple devices within a VTP domain.
  • Page 454: Vtp Domain

    Before you use this command, you must enable VTP on the switch by using the feature vtp command. VLAN Trunking Protocol (VTP) is a Cisco Proprietary Layer 2 messaging protocol used to distribute the VLAN configuration information across multiple devices within a VTP domain. Without VTP, you must configure VLANs in each device in the network.
  • Page 455 VTP database file (vlan.dat) or the startup configuration file. Depending on the VTP mode configured for the switch, the information is updated as follows: Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1449 OL-27880-02...
  • Page 456 Related Commands Command Description feature vtp Enables VTP on the switch. show running-config Displays the running VTP configuration. show vtp status Displays VTP information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1450 OL-27880-02...
  • Page 457 This command we introduced. Usage Guidelines VLAN Trunking Protocol (VTP) is a Cisco Proprietary Layer 2 messaging protocol used to distribute the VLAN configuration information across multiple devices within a VTP domain. Without VTP, you must configure VLANs in each device in the network. Using VTP, you configure VLANs on a VTP server and then distribute the configuration to other VTP devices in the VTP domain.
  • Page 458 This example shows how to configure a VTP device as a client: switch(config)# vtp mode client switch(config)# Related Commands Command Description feature vtp Enables VTP on the switch. show vtp status Displays VTP information. vlan Configures VLANs. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1452 OL-27880-02...
  • Page 459: Vtp Password

    This example shows how to configure a password for the VTP administrative domain named accounting: switch(config)# vtp domain accounting switch(config)# vtp password cisco switch(config)# Related Commands Command Description show vtp password Displays the VTP domain password. show vtp status Displays VTP information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1453 OL-27880-02...
  • Page 460: Vtp Version

    This example shows how to enable VTP version 2 for Token Ring VLANs: switch(config)# vtp version 2 switch(config)# Related Commands Command Description feature vtp Enables VTP on the switch. show vtp status Displays VTP information. Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference 1454 OL-27880-02...

Table of Contents