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
• Document Conventions, page 1
• Related Documentation, page 2
• Obtaining Documentation and Submitting a Service Request, page 3
Audience
This publication is for experienced users who configure and maintain Cisco NX-OS devices.
Document Conventions
Command descriptions use these conventions:
ConventionDescription
boldface fontCommands and keywords are in boldface.
italic fontArguments for which you supply values are in italics.
[ ]Elements in square brackets are optional.
{x | y | z}Alternative keywords are grouped in braces and separated by vertical bars.
[ x | y | z ]Optional alternative keywords are grouped in brackets and separated by vertical
stringA nonquoted set of characters. Do not use quotation marks around the string or
OL-27880-02
bars.
the string will include the quotation marks.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
1
Page 2
Chapter
Screen examples use these conventions:
screen fontTerminal sessions and information that the switch displays are in screen font.
boldface screen
font
italic screen font Arguments for which you supply values are in italic screen font.
Information you must enter is in boldface screen font.
< >Nonprinting characters, such as passwords, are in angle brackets.
[ ]Default responses to system prompts are in square brackets.
!, #An exclamation point (!) or a pound sign (#) at the beginning of a line of code
indicates a comment line.
This document uses the following conventions:
NoteMeans reader take note. Notes contain helpful suggestions or references to material not covered in the
manual.
CautionMeans reader be careful. In this situation, you might do something that could result in equipment damage
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:
The documentation set includes the following types of documents:
• Licensing Information Guide
• Release Notes
• Installation and Upgrade Guides
• Configuration Guides
• Configuration Examples and TechNotes
• Programming Guides
• Operations Guides
• Error and System Message Guides
• Field Notices
• Security Advisories, Responses and Notices
• Troubleshooting Guide
• Command References
• MIB Reference Guide
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
2
OL-27880-02
Page 3
Chapter
Obtaining Documentation and Submitting a Service Request
Documentation Feedback
To provide technical feedback on this document or to report an error or ommission, please send your
comments to nexus5k-docfeedback@cisco.com. We appreciate your feedback.
Obtaining Documentation and Submitting a Service Request
For information on obtaining documentation, using the Cisco Bug Search Tool (BST), submitting a
service request, and gathering additional information, see What’s New in Cisco Product Documentation
at: http://www.cisco.com/c/en/us/td/docs/general/whatsnew/whatsnew.html.
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.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
3
Page 4
Chapter
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
4
OL-27880-02
Page 5
New and Changed Information
This chapter provides release-specific information for each new and changed feature in the Cisco Nexus
5500 Series NX-OS Layer 2 Interfaces Command Reference. The latest version of this document is
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:
New and Changed Information for Cisco NX-OS Releases
This section includes the following topics:
• New and Changed Information for Cisco NX-OS Release 6.0(2)N1(2), page 17
New and Changed Information for Cisco NX-OS Release 6.0(2)N1(2)
Table 1 summarizes the new and changed features for Cisco NX-OS Release 6.0(2)N1(2) and tells you
where they are documented.
Table 1New and Changed Information for Release 6.0(2)N1(2)
FeatureDescriptionWhere Documented
QSFP+ GEMThis feature was introduced.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
• B Commands
• C Commands
• D Commands
• I Commands
• M Commands
• S Commands
• Show Commands
17
Page 6
Chapter
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
18
OL-27880-02
Page 7
B Commands
This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with B.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
11
Page 8
bandwidth (interface)
bandwidth (interface)
To set the inherited and received bandwidth values for an interface, use the bandwidth command. To
restore the default values, use the no form of this command.
bandwidth {kbps | inherit [kbps]}
no bandwidth {kbps | inherit [kbps]}
Chapter B Commands
Syntax Description
kbpsInformational bandwidth in kilobits per second. Valid values are from 1 to
10000000.
inherit(Optional) Specifies that the bandwidth be inherited from the parent
interface.
Command Default1000000 kbps
Command ModesInterface configuration mode
Subinterface configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesThe bandwidth command sets an informational parameter to communicate only the current bandwidth
to the higher-level protocols; you cannot adjust the actual bandwidth of an interface using this command.
The bandwidth inherit command controls how a subinterface inherits the bandwidth of its main
interface.
The no bandwidth inherit command enables all subinterfaces to inherit the default bandwidth of the
main interface, regardless of the configured bandwidth. If a bandwidth is not configured on a
subinterface, and you use the bandwidth inherit command, all subinterfaces will inherit the current
bandwidth of the main interface. If you configure a new bandwidth on the main interface, all
subinterfaces will use this new value.
If you do not configure a bandwidth on the subinterface and you configure the bandwidth inherit
command on the main interface, the subinterfaces will inherit the specified bandwidth.
In all cases, if an interface has an explicit bandwidth setting configured, then that interface will use that
setting, regardless of whether the bandwidth inheritance setting is in effect.
ExamplesThis example shows how to configure the badwidth for a Layer 2 interface:
show interfaceDisplays the interface configuration information.
bandwidth (interface)
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
13
Page 10
beacon (interface)
beacon (interface)
To turn on the beacon LED for a port of an interface, use the beacon command. To turn off the beacon
LED for the interface, use the no form of this command.
beacon
no beacon
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultNone
Command ModesInterface configuration mode
Chapter B Commands
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesUse the beacon command to toggle the port LED of an interface to easily identify each time a beacon is
sent to check for pending packets on the interface.
ExamplesThis example shows how to turn on the locator beacon LED for a specific interface:
interface vethernetConfigures a virtual Ethernet interface.
show interface
ethernet
OL-27880-02
Displays information about Ethernet interfaces.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
15
Page 12
bind (virtual Ethernet interface)
CommandDescription
show interface
vethernet
show running-config
interface
Chapter B Commands
Displays the specified virtual Ethernet interface, attributes, and status.
Displays the running configuration of an interface.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
16
OL-27880-02
Page 13
C Commands
This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with C.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
17
Page 14
capability (virtual Ethernet interface)
capability (virtual Ethernet interface)
To set a profile capability for a virtual Ethernet interface, use the capability command. To remove the
profile capability of an interface, use the no form of this command.
profile capability iscsi-multipath
no profile capability iscsi-multipath
Chapter C Commands
Syntax Description
iscsi-multipathConfigure an iSCSI multipath profile.
interface vethernetConfigures 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
18
OL-27880-02
Page 15
Chapter C Commands
carrier-delay
To set the carrier delay on a serial interface, use the carrier-delay command. To return to the default
carrier delay value, use the no form of this command.
carrier-delay
carrier-delay {delay-seconds | msec milliseconds}
no carrier-delay
Syntax Description
delay-secondsTime, in seconds, to wait for the system to change states. Enter an integer
in the range 0 to 60.
msecSpecifies the delay time in milliseconds.
millisecondsTime, in milliseconds, to wait for the system to change states. Enter an
integer in the range 0 to 1000.
Command DefaultNone
Command ModesInterface configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesYou can use this command on a VLAN interface.
If a link goes down and comes back up before the carrier delay timer expires, the down state is effectively
filtered, and the rest of the software on the switch is not aware that a link-down event occurred.
Therefore, a large carrier delay timer results in fewer link-up/link-down events being detected. Setting
the carrier delay time to 0 means that every link-up/link-down event is detected.
This command does not require a license.
ExamplesThis example shows how to change the carrier delay to 10 seconds:
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
19
Page 16
carrier-delay
Related CommandsCommandDescription
show running-config
Displays the running configuration information for an interface.
interface
Chapter C Commands
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
110
OL-27880-02
Page 17
Chapter C Commands
cdp
cdp
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.
This example shows how to configure the MAC address as the CDP device ID:
switch# configure terminal
switch(config)# cdp format device-id mac-address
This example shows how to disable CDP on all Ethernet interfaces:
switch# configure terminal
switch(config)# no cdp enable
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
111
Page 18
cdp
Related CommandsCommandDescription
show cdpDisplays Cisco Discovery Protocol (CDP) information.
Chapter C Commands
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
112
OL-27880-02
Page 19
Chapter C Commands
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 DescriptionThis command has no arguments or keywords.
Command DefaultNone
Command ModesInterface configuration mode
Virtual Ethernet interface configuration mode
cdp enable
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesYou can use this command on the following interfaces:
• Ethernet interface
• Management interface
• Virtual Ethernet interface
ExamplesThis example shows how to enable CDP on an Ethernet interface:
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
113
Page 20
cdp enable
Related CommandsCommandDescription
show cdpDisplays Cisco Discovery Protocol (CDP) information.
show interfaceDisplays the interface configuration information.
Chapter C Commands
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
114
OL-27880-02
Page 21
Chapter C Commands
channel-group (Ethernet)
To assign and configure a physical interface to an EtherChannel, use the channel-group command. To
remove the channel group configuration from the interface, use the no form of this command.
channel-group number [force] [mode {active | on | passive}]
no channel-group [number]
channel-group (Ethernet)
Syntax Description
numberNumber 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.
mode(Optional) Specifies the EtherChannel mode of the interface.
activeSpecifies that when you enable the Link Aggregation Control Protocol
(LACP), this command enables LACP on the specified interface. The
interface is in an active negotiating state, in which the port initiates
negotiations with other ports by sending LACP packets.
onThis is the default channel mode. Specifies that all EtherChannels that are
not running LACP remain in this mode. If you attempt to change the channel
mode to active or passive before enabling LACP, the switch returns an error
message.
After you enable LACP globally, by using the feature lacp command, you
enable LACP on each channel by configuring the channel mode as either
active or passive. An interface in this mode does not initiate or respond to
LACP packets. When an LACP attempts to negotiate with an interface in the
on state, it does not receive any LACP packets and becomes an individual
link with that interface; it does not join the channel group.
The default mode is on.
passiveSpecifies that when you enable LACP, this command enables LACP only if
an LACP device is detected. The interface is in a passive negotiation state,
in which the port responds to LACP packets that it receives but does not
initiate LACP negotiation.
Command DefaultNone
Command ModesInterface configuration mode
Command History
OL-27880-02
ReleaseModification
5.2(1)N1(1)This command was introduced.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
115
Page 22
Chapter C Commands
channel-group (Ethernet)
Usage GuidelinesUse this command to create a channel group that includes the interface that you are working on and to
add or remove specific interfaces from the channel group. Use this command to move a port from one
channel group to another. You enter the channel group that you want the port to move to; the switch
automatically removes the specified port from its present channel group and adds it to the specified
channel group.
Use the force keyword to force the addition of the interface into the specified channel group.
After you enable LACP globally, by using the feature lacp command, you enable LACP on each channel
by configuring the channel mode as either active or passive. An EtherChannel in the on channel mode
is a pure EtherChannel and can aggregate a maximum of eight ports. The EtherChannel does not run
LACP.
You cannot change the mode for an existing EtherChannel or any of its interfaces if that EtherChannel
is not running LACP; the channel mode remains as on. The system returns an error message if you
attempt to change the mode.
Use the no form of this command to remove the physical interface from the EtherChannel. When you
delete the last physical interface from an EtherChannel, the EtherChannel remains. To delete the
EtherChannel completely, use the no form of the interface port-channel command.
The compatibility check includes the following operational attributes:
• Port mode
• Access VLAN
• Trunk native VLAN
• Tagged or untagged
• Allowed VLAN list
• Switched Port Analyzer (SPAN) (cannot be SPAN source or destination port)
• Storm control
Use the show port-channel compatibility-parameters command to see the full list of compatibility
checks that Cisco NX-OS uses.
You can only add interfaces configured with the channel mode set to on for static EtherChannels, that
is, without a configured aggregation protocol. You can only add interfaces configured with the channel
mode as active or passive to EtherChannels that are running LACP.
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:
• MAC address
• Spanning Tree Protocol (STP)
• Service policy
• Quality of service (QoS)
• Access control lists (ACLs)
Interface parameters, such as the following, remain unaffected when the interface joins or leaves a
EtherChannel:
• Description
• Cisco Discovery Protocol (CDP)
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
116
OL-27880-02
Page 23
Chapter C Commands
channel-group (Ethernet)
• LACP port priority
• Debounce
• Rate mode
• Shutdown
• SNMP trap
If interfaces are configured for the EtherChannel interface and a member port is removed from the
EtherChannel, the configuration of the EtherChannel interface is not propagated to the member ports.
Any configuration changes that you make in any of the compatibility parameters to the EtherChannel
interface are propagated to all interfaces within the same channel group as the EtherChannel (for
example, configuration changes are also propagated to the physical interfaces that are not part of the
EtherChannel but are part of the channel group).
ExamplesThis example shows how to add an interface to LACP channel group 5 in active mode:
switch(config)# interface ethernet 1/1
switch(config-if)# channel-group 5 mode active
switch(config-if)#
This example shows how to forcefully add an interface to the channel group 5:
switch(config)# interface ethernet 1/1
switch(config-if)# channel-group 5 force
switch(config-if)#
Related CommandsCommandDescription
show interface
port-channel
Displays information about the traffic on the specified EtherChannel
interface.
show lacpDisplays LACP information.
show port-channel
Displays information on the EtherChannels.
summary
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
117
Page 24
clear lacp counters
clear lacp counters
To clear the Link Aggregation Control Protocol (LACP) counters, use the clear lacp counters command.
address mac-addr(Optional) Specifies the MAC address to remove from the table.
interface(Optional) Specifies the interface for which MAC addresses
ethernet slot/[QSFP-module/]port (Optional) Specifies the Ethernet interface and the slot number
port-channel number(Optional) Specifies the EtherChannel for which MAC addresses
vlan vlan-id(Optional) Specifies the VLAN from which MAC addresses
Use the format EEEE.EEEE.EEEE.
should be removed from the table. The type can be either
Ethernet or EtherChannel.
and port number. The slot number is from 1 to 255. The
QSFP-module number is from 1 to 4. The port number is from 1
to 128.
NoteThe QSFP-module number applies only to the QSFP+
Generic Expansion Module (GEM).
should be removed from the table. Use the EtherChannel number.
The number range is from 1 to 4096.
should be removed from the table. The range is from 1 to 3967
and from 4049 to 4093.
Command ModesEXEC mode
Command History
Usage GuidelinesUse the clear mac address-table dynamic command with no arguments to remove all dynamic entries
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
120
ReleaseModification
6.0(2)N1(1)Support for the QSFP+ GEM was added.
5.2(1)N1(1)This command was introduced.
from the table.
To clear static MAC addresses from the table, use the no mac address-table static command.
If the clear mac address-table dynamic command is entered with no options, all dynamic addresses are
removed. 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.
OL-27880-02
Page 27
Chapter C Commands
clear mac address-table dynamic
ExamplesThis example shows how to clear all the dynamic entries from the MAC address table:
switch# clearmac address-table dynamic
This example shows how to clear all the dynamic entries from the MAC address table for VLAN 2:
switch# clearmac address-table dynamic vlan 2
Related CommandsCommandDescription
show mac
Displays the information about the MAC address table.
address-table
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
121
Page 28
clear port-security dynamic
clear port-security dynamic
To clear port security information, use the clear port-security dynamic command.
ethernet slot/[QSFP-module/]port Specifies the Ethernet interface slot and port number. The
port-channel channelSpecifies the EtherChannel number. The number range is
vlan vlan-id(Optional) Specifies the VLAN. The range is from 1 to
Command DefaultNone
Command ModesEXEC mode
Command History
ReleaseModification
6.0(2)N1(1)Support for the QSFP+ GEM was added.
5.2(1)N1(1)This command was introduced.
slot number is from 1 to 255. The QSFP-module number is
from 1 to 4. The port number is from 1 to 128.
NoteThe QSFP-module number applies only to the
QSFP+ Generic Expansion Module (GEM).
from 1 to 4096.
3967 and from 4049 to 4093.
Usage GuidelinesYou can clear all the STP counters on the entire switch, per VLAN, or per interface.
ExamplesThis example shows how to clear the STP counters for VLAN 5:
switch# clearspanning-tree counters vlan 5
Related Commands
CommandDescription
show spanning-treeDisplays information about the spanning tree state.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
124
OL-27880-02
Page 31
Chapter C Commands
clear spanning-tree detected-protocol
To restart the protocol migration, use the clear spanning-tree detected-protocol command. With no
arguments, the command is applied to every port of the switch.
ethernet slot/[QSFP-module/]port Specifies the Ethernet interface and the slot number and port
port-channel channelSpecifies the EtherChannel number. The number range is from 1
Command DefaultNone
Command ModesEXEC mode
Command History
ReleaseModification
6.0(2)N1(1)Support for the QSFP+ GEM was added.
5.2(1)N1(1)This command was introduced.
number. The slot number is from 1 to 255. The QSFP-module
number is from 1 to 4. The port number is from 1 to 128.
NoteThe QSFP-module number applies only to the QSFP+
Generic Expansion Module (GEM).
to 4096.
Usage GuidelinesRapid per VLAN Spanning Tree Plus (Rapid PVST+) and Multiple Spanning Tree (MST) have built-in
compatibility mechanisms that allow them to interact properly with other versions of IEEE spanning tree
or other regions. For example, a switch running Rapid PVST+ can send 802.1D bridge protocol data
units (BPDUs) on one of its ports when it is connected to a legacy device. An MST switch can detect
that a port is at the boundary of a region when it receives a legacy BPDU or an MST BPDU that is
associated with a different region.
These mechanisms are not always able to revert to the most efficient mode. For example, a Rapid PVST+
switch that is designated for a legacy 802.1D bridge stays in 802.1D mode even after the legacy bridge
has been removed from the link. Similarly, an MST port assumes that it is a boundary port when the
bridges to which it is connected have joined the same region.
To force a port to renegotiate with its neighbors, enter the clear spanning-tree detected-protocol
command.
ExamplesThis example shows how to restart the protocol migration on a specific interface:
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
125
Page 32
clear spanning-tree detected-protocol
Related CommandsCommandDescription
show spanning-treeDisplays information about the spanning tree state.
Chapter C Commands
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
126
OL-27880-02
Page 33
Chapter C Commands
clear vtp counters
To clear VLAN Trunking Protocol (VTP) counters, use the clear vtp counters command.
clear vtp counters
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultNone
Command ModesEXEC mode
clear vtp counters
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesUse this command to clear the VTP statistics, such as the VTP requests, VTP advertisements, and
configuration revisions.
ExamplesThis example shows how to clear the VTP counters:
switch# clear vtp counters
switch#
Related Commands
CommandDescription
show vtp countersDisplays VTP counters.
show vtp statusDisplays VTP information.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
127
Page 34
clock protocol
clock protocol
To set the synchronization protocol for the clock to a protocol, use the clock protocol command. To
remove the clock protocol, use the no form of this command.
clock protocol {none | ntp}
no clock protocol {none | ntp}
Chapter C Commands
Syntax Description
noneSpecifies that the clock can be set manually.
ntpSpecifies that the clock be set to the Network Time Protocol (NTP).
Command DefaultNone
Command ModesGlobal configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesThis command does not require a license.
ExamplesThis example shows how to set the synchronization protocol for the clock to NTP:
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
134
OL-27880-02
Page 41
Chapter D Commands
Related CommandsCommandDescription
show interface
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.
description (interface)
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
135
Page 42
description (SPAN, ERSPAN)
description (SPAN, ERSPAN)
To add a description to an Ethernet Switched Port Analyzer (SPAN) or an Encapsulated Remote
Switched Port Analyzer (ERSPAN) session configuration, use the description command. To remove the
description, use the no form of this command.
description description
no description
Chapter D Commands
Syntax Description
descriptionString description of the SPAN session configuration. This string is limited
to 80 characters.
Command DefaultNo description is added.
Command ModesSPAN session configuration mode
ERSPAN session configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesUse the description command to provide a reminder in the configuration to describe what certain SPAN
sessions are used for. The description appears in the output of the following commands such as show monitor session and show running-config monitor.
ExamplesThis example shows how to add a description for a SPAN session:
switch# configure terminal
switch(config)# monitor session 9 type local
switch(config-monitor)# description A Local SPAN session
switch(config-monitor)#
This example shows how to add a description for an ERSPAN session:
switch# configure terminal
switch(config)# monitor session 9 type erspan-source
switch(config-erspan-src)# description An ERSPAN session
switch(config-erspan-src)#
Related Commands
CommandDescription
destination (SPAN
session)
monitor sessionCreates a new SPAN session configuration.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
136
Configures a destination SPAN port.
OL-27880-02
Page 43
Chapter D Commands
CommandDescription
show monitor sessionDisplays 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.
description (SPAN, ERSPAN)
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
137
Page 44
destination (ERSPAN)
destination (ERSPAN)
To configure an Encapsulated Remote Switched Port Analyzer (ERSPAN) destination IP address, use
the destination command. To remove the destination ERSPAN IP address, use the no form of this
command.
destination ip ip_address
no destination ip ip_address
Chapter D Commands
Syntax Description
ipConfigures the remote IP address.
ip_addressIPv4 address in the format A.B.C.D.
Command DefaultNone
Command ModesERSPAN session configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesYou can configure only one destination IP address for an ERSPAN source session.
This command does not require a license.
ExamplesThis example shows how to configure an ERSPAN destination IP address:
switch# configure terminal
switch(config)# monitor session 1 type erspan-source
switch(config-erspan-src)# destination ip 192.0.3.1
switch(config-erspan-src)#
Related Commands
CommandDescription
monitor sessionCreates a new SPAN session configuration.
show monitor sessionDisplays SPAN session configuration information.
show running-config
monitor
source (SPAN session) Configures a source SPAN port.
source (ERSPAN
session)
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
138
Displays the running configuration information of a SPAN session.
Configures a source VLAN or VSAN interface.
OL-27880-02
Page 45
Chapter D Commands
destination (SPAN session)
To configure a Switched Port Analyzer (SPAN) destination port, use the destination command. To
remove the destination SPAN port, use the no form of this command.
no source interface {ethernet slot/[QSFP-module/]port}
destination (SPAN session)
Syntax Description
interfaceSpecifies the interface type to use as the destination SPAN port.
ethernet slot/[QSFP-module/]port Specifies the Ethernet interface to use as the destination SPAN
port. The slot number is from 1 to 255. The QSFP-module
number is from 1 to 4. The port number is from 1 to 128.
NoteThe QSFP-module number applies only to the QSFP+
Generic Expansion Module (GEM).
Command DefaultNone
Command ModesSPAN session configuration mode
Command History
ReleaseModification
6.0(2)N1(1)Support for the QSFP+ GEM was added.
5.2(1)N1(1)This command was introduced.
Usage GuidelinesEach local SPAN session destination session must have a destination port (also called a monitoring port)
that receives a copy of traffic from the source port.
The destination port can be any Ethernet physical port and must reside on the same switch as the source
port (for a local SPAN session). The destination port cannot be a source port, a port channel, or SAN
port channel group.
A destination port receives copies of sent and received traffic for all monitored source ports. If a
destination port is oversubscribed, it can become congested. This congestion can affect traffic
forwarding on one or more of the source ports.
ExamplesThis example shows how to configure an Ethernet interface SPAN destination port and activate the SPAN
session:
switch# configure terminal
switch(config)# interface ethernet 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
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
139
Page 46
destination (SPAN session)
switch(config-monitor)# destination interface ethernet 1/5
switch(config-monitor)# no shutdown
switch(config-monitor)#
Related CommandsCommandDescription
source (SPAN session) Configures a source SPAN port.
monitor sessionCreates a new SPAN session configuration.
show monitor sessionDisplays SPAN session configuration information.
show running-config
Displays the running configuration information of a SPAN session.
monitor
Chapter D Commands
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
140
OL-27880-02
Page 47
Chapter D Commands
duplex
duplex
To specify the duplex mode as full, half, or autonegotiate, use the duplex command. To return the system
to default mode, use the no form of this command.
duplex {full | half | auto}
no duplex {full | half | auto}
Syntax Description
fullSpecifies the duplex mode as full.
halfSpecifies the duplex mode as half.
NoteThis keyword is not supported on a management interface.
autoSpecifies the duplex mode as autonegotiate.
Command DefaultNone
Command ModesInterface configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesThe interface speed that you specify can affect the duplex mode used for an interface, so you should set
the speed before setting the duplex mode. If you set the speed for autonegotiation, the duplex mode is
automatically set to be autonegotiated. If you specify 10- or 100-Mbps speed, the port is automatically
configured to use half-duplex mode, but you can specify full-duplex mode instead. Gigabit Ethernet is
full duplex only. 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.
This command does not require a license.
ExamplesThis example shows how to specify the duplex mode for full duplex:
show svs connectionsDisplays SVS connection information.
svs connectionEnables an SVS connection.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
143
Page 50
dvs-name
Chapter D Commands
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
144
OL-27880-02
Page 51
E Commands
This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with E.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
145
Page 52
encapsulation dot1Q
encapsulation dot1Q
To enable IEEE 802.1Q encapsulation of traffic on a specified subinterface, use the encapsulation dot1q
command. To disable encapsulation, use the no form of this command.
encapsulation dot1Q vlan-id
no encapsulation dot1Q vlan-id
Chapter E Commands
Syntax Description
vlan-idVLAN to set when the interface is in access mode; valid values are from 1
to 4093, except for the VLANs reserved for internal switch use.
Command DefaultNo encapsulation
Command ModesSubinterface configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesIEEE 802.1Q encapsulation is configurable on Ethernet and EtherChannel interfaces. IEEE 802.1Q is a
standard protocol for interconnecting multiple switches and routers and for defining VLAN topologies.
Use the encapsulation dot1q command in subinterface range configuration mode to apply a VLAN ID
to the subinterface.
NoteThis command is not applicable to loopback interfaces.
This command does not require a license.
ExamplesThis example shows how to enable dot1Q encapsulation on a subinterface for VLAN 30:
show vlan dot1QDisplays dot1Q encapsulation information for a VLAN.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
146
OL-27880-02
Page 53
Chapter E Commands
errdisable detect cause
To enable error-disable (err-disabled) detection in an application, use the errdisable detect cause
command. To disable error disable detection, use the no form of this command.
errdisable detect cause {all | link-flap | loopback}
no errdisable detect cause {all | link-flap | loopback}
errdisable detect cause
Syntax Description
allEnables error detection on all cases.
link-flapEnables error disable detection on linkstate-flapping.
loopbackEnables error disable detection on loopback.
Command DefaultEnabled
Command ModesGlobal configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesWhen error disable detection is enabled and a cause is detected on an interface, the interface is placed
in an err-disabled state, which is an operational state that is similar to the link-down state.
ExamplesThis example shows how to enable the err-disabled detection on linkstate-flapping:
switch(config)# errdisable detect cause link-flap
switch(config)#
Related Commands
CommandDescription
errdisable recoveryConfigures recovery from the err-disabled state.
show interface status
err-disabled
OL-27880-02
Displays the interface error disabled state.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
147
Page 54
errdisable recovery cause
errdisable recovery cause
To configure the application to bring the interface out of the error-disabled (err-disabled) state and retry
coming up, use the errdisable recovery cause command. To revert to the defaults, use the no form of
this command.
no errdisable recovery cause {all | bpduguard | failed-port-state | link-flap-recovery |
pause-rate-limit | udld}
Chapter E Commands
Syntax Description
allEnables a timer to recover from all causes.
bpduguardEnables a timer to recover from bridge protocol data unit (BPDU) Guard
failed-port-stateEnables a timer to recover from a Spanning Tree Protocol (STP) set port
link-flapEnables a timer to recover from linkstate flapping.
pause-rate-limitEnables a timer to recover from the pause rate limit error disabled state.
udldEnables a timer to recover from the Unidirectional Link Detection (UDLD)
Command DefaultNone
Command ModesGlobal configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
error disable state.
state failure.
error disabled state.
Usage GuidelinesWhen error disable recovery is enabled, the interface automatically recovers from the err-disabled state,
and the device retries bringing the interface up.
ExamplesThis 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
148
OL-27880-02
Page 55
Chapter E Commands
Related CommandsCommandDescription
errdisable detect cause Enables the error disabled (err-disabled) detection.
show interface status
Displays the interface error disabled state.
err-disabled
errdisable recovery cause
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
149
Page 56
errdisable recovery interval
errdisable recovery interval
To configure the recovery time interval to bring the interface out of the error-disabled (err-disabled)
state, use the errdisable recovery interval command. To revert to the defaults, use the no form of this
command.
errdisable recovery interval time
no errdisable recovery interval
Chapter E Commands
Syntax Description
timeError disable recovery time interval. The range is from 30 to 65535 seconds.
Command DefaultDisabled
Command ModesGlobal configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesWhen error disable recovery is enabled, the interface automatically recovers from the err-disabled state,
and the device retries bringing the interface up.
The device waits 300 seconds to retry.
ExamplesThis example shows how to enable error disable recovery time interval to 100 seconds:
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
150
Enables an error disabled recovery on an interface.
Displays the interface error disabled state.
OL-27880-02
Page 57
Chapter E Commands
erspan-id
erspan-id
To configure the flow ID for an Encapsulated Remote Switched Port Analyzer (ERSPAN)) session, use
the erspan-id command. To remove the flow ID, use the no form of this command.
erspan-idflow_id
Syntax Description
flow_idERSPAN flow ID. The range is from 1 to 1023.
Command DefaultNone
Command ModesERSPAN session configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesThis command does not require a license.
ExamplesThis example shows how to configure the flow ID for an ERSPAN session:
show svs connectionsDisplays SVS connection information.
svs connectionEnables an SVS connection.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
152
OL-27880-02
Page 59
F Commands
This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with F.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
153
Page 60
feature flexlink
feature flexlink
To enable Flex Links, use the feature flexlink command. To disable Flex Links, use the no form of this
command.
feature flexlink
no feature flexlink
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultDisabled
Command ModesGlobal configuration mode
Chapter F Commands
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
ExamplesThis example shows how to enable Flex Links on the switch:
switch(config)# feature flexlink
Related Commands
CommandDescription
show featureDisplays the status of features enabled or disabled on the switch.
switchport backup
interface
Configures Flex Links, which are two interfaces that provide backup to each
other, on a Layer 2 interface.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
154
OL-27880-02
Page 61
Chapter F Commands
feature interface-vlan
To enable the creation of VLAN interfaces, use the feature interface-vlan command. To disable the
VLAN interface feature, use the no form of this command.
feature interface-vlan
no feature interface-vlan
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultVLAN interfaces are disabled.
Command ModesGlobal configuration mode
feature interface-vlan
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesYou must use the feature interface-vlan command before you can create VLAN interfaces.
ExamplesThis example shows how to enable the interface VLAN feature on the switch:
switch(config)# feature interface-vlan
Related Commands
CommandDescription
interface vlanCreates a VLAN interface.
show featureDisplays the features that are enabled or disabled on the switch.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
155
Page 62
feature lacp
feature lacp
To enable the Link Aggregation Control Protocol (LACP), which bundles a number of physical ports
together to form a single logical channel, use the feature lacp command. To disable LACP on the switch,
use the no form of this command.
feature lacp
no feature lacp
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultLACP is disabled.
Command ModesGlobal configuration mode
Chapter F Commands
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesYou must remove all the LACP configuration parameters from all EtherChannels on the switch before
you can disable LACP.
Even after you enable LACP globally, you do not have to run LACP on all EtherChannels on the switch.
You enable LACP on each channel mode using the channel-group mode command.
ExamplesThis example shows how to enable LACP EtherChannels on the switch:
switch(config)# feature lacp
Related Commands
CommandDescription
show lacpDisplays information on LACP.
show featureDisplays whether or not LACP is enabled on the switch.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
156
OL-27880-02
Page 63
Chapter F Commands
feature lldp
The Link Layer Discovery Protocol (LLDP), which is a neighbor discovery protocol that is used for
network devices to advertise information about themselves to other devices on the network, is enabled
on the switch by default.
Command DefaultEnabled
feature lldp
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesYou 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
below:
switch# show running-config
!Command: show running-config
!Time: Wed Jan 30 12:36:03 2013
version 6.02N1(1)
feature telnet
feature lldp
username admin password 5 $1$d8lkfqC8$4VfRuOoZTKvCtTq8VAKbq/ role network-admin
no password strength-check
ip domain-lookup
hostname switch
class-map type qos class-fcoe
class-map type qos match-all c1
match cos 1
<--Output truncated-->
switch#
The Cisco Discovery Protocol (CDP) is a device discovery protocol that runs over Layer 2 (the data link
layer) on all Cisco-manufactured devices (routers, bridges, access servers, and switches). CDP allows
network management applications to automatically discover and learn about other Cisco devices
connected to the network.
To support non-Cisco devices and to allow for interoperability between other devices, the switch
supports the Link Layer Discovery Protocol (LLDP). LLDP is a neighbor discovery protocol that is used
for network devices to advertise information about themselves to other devices on the network. This
protocol runs over the data-link layer, which allows two systems running different network layer
protocols to learn about each other.
Related Commands
CommandDescription
lldpConfigures the global LLDP options on the switch.
lldp (Interface)Configures the LLDP feature on an interface.
show featureDisplays that LLDP is enabled on the switch.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
157
Page 64
feature port-security
feature port-security
To enable port security on Layer 2 interfaces, use the feature port-security command. To disable port
security, use the no form of this command.
feature port-security
no feature port-security
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultDisabled
Command ModesGlobal configuration mode
Chapter F Commands
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesUse the port security feature to secure a port by limiting and identifying the MAC addresses of the
switches that are allowed to access the port.
You can enable port security on a virtual port channel (vPC) port only if the following occurs:
• Port security is enabled on both the vPC peers
• Port security is enabled on the vPC port on both the vPC peers.
This command does not require a license.
ExamplesThis example shows how to enable port security on the switch:
This example shows how to disable port security on the switch:
switch# configure terminal
switch(config)# no feature port-security
switch(config)#
Related Commands
CommandDescription
show featureDisplays the features that are enabled or disabled on the switch.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
158
OL-27880-02
Page 65
Chapter F Commands
CommandDescription
show port-securityDisplays the port security configuration information.
switchport
Configures the switchport parameters to establish port security.
port-security
feature port-security
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
159
Page 66
feature private-vlan
feature private-vlan
To enable private VLANs, use the feature private-vlan command. To return to the default settings, use
the no form of this command.
feature private-vlan
no feature private-vlan
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultPrivate VLANs are disabled.
Command ModesGlobal configuration mode
Chapter F Commands
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesThe private VLAN commands are not available until you enable the private VLAN feature.
You cannot disable the private VLANs if there are operational ports on the switch that are in private
VLAN mode.
NoteA private VLAN-isolated port on a Cisco Nexus device running the current release of Cisco NX-OS does
not support IEEE 802.1Q encapsulation and cannot be used as a trunk port.
ExamplesThis example shows how to enable private VLAN functionality on the switch:
switch(config)# feature private-vlan
Related Commands
CommandDescription
private-vlan Configures a VLAN as either a community, isolated, or primary private
VLAN.
show vlan private-vlan Displays information on private VLANs. If the feature is not enabled, this
command is not available.
show featureDisplays whether or not private VLAN is enabled on the switch.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
160
OL-27880-02
Page 67
Chapter F Commands
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.
feature udld
no feature udld
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultUDLD is disabled.
feature udld
Command ModesGlobal configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
ExamplesThis example shows how to enable UDLD on the switch:
switch(config)# feature udld
Related Commands
CommandDescription
show udldDisplays the administrative and operational UDLD status.
show featureDisplays whether or not UDLD is enabled on the switch.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
161
Page 68
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 DescriptionThis command has no arguments or keywords.
Command DefaultDisabled
Command ModesGlobal configuration mode
Chapter F Commands
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesBefore you use this command, make sure that you install and enable the virtualization feature set using
the install feature-set virtualization and feature-set virtualization commands respectively.
If you attempt to disable the VM-FEX feature with virtual Ethernet interface or port profile
configurations enabled, the switch returns an error message.
This command requires an Enhanced Layer 2 license.
ExamplesThis example shows how to enable VM-FEX on the switch:
This example shows how to disable VM-FEX on the switch:
switch# configure terminal
switch(config)# no feature vmfex
switch(config)#
Related Commands
CommandDescription
feature-set
virtualization
interface vethernetConfigures a virtual Ethernet interface.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
162
Enables the virtualization features.
OL-27880-02
Page 69
Chapter F Commands
feature vmfex
CommandDescription
install feature-set
Installs the virtualization feature set on the switch.
virtualization
port-profileConfigures a port profile.
show featureDisplays the features that are enabled or disabled on the switch.
show feature-setDisplays the status of the virtualization feature set.
switchport modeConfigures the interface as a nontrunking nontagged single-VLAN Ethernet
interface.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
163
Page 70
feature vtp
feature vtp
To enable VLAN Trunking Protocol (VTP), use the feature vtp command. To disable VTP, use the no
form of this command.
feature vtp
no feature vtp
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultDisabled
Command ModesGlobal configuration mode
Chapter F Commands
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
ExamplesThis example shows how to enable VTP on the switch:
switch(config)# feature vtp
Related Commands
CommandDescription
show vtp statusDisplays the VTP information.
vtpConfigures VTP.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
164
OL-27880-02
Page 71
Chapter F Commands
feature-set virtualization
To enable the Cisco Virtual Machine features on the switch, use the feature-set virtualization
command. To disable the virtualization feature, use the no form of this command.
feature-set virtualization
no feature-set virtualization
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultNone
Command ModesGlobal configuration mode
feature-set virtualization
Command History
Usage Guidelines
NoteThe Cisco virtual machine feature is supported only on the Cisco Nexus devices.
NoteYou must install the Cisco virtual machine feature set before you enable virtualization on the switch.
ReleaseModification
5.2(1)N1(1)This command was introduced.
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.
Before you disable this feature on the switch, do the following:
• Remove all virtual Ethernet interface configurations on the switch.
• Remove all virtual network tag (VNTag) configurations on the switch.
• Remove all port profiles of type vethernet.
• Change the port mode to access by using the switchport mode access command.
This command requires an Enhanced Layer 2 license.
ExamplesThis example shows how to enable the virtualization feature on the switch:
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
165
Page 72
feature-set virtualization
switch(config)#
This example shows how to disable the virtualization feature on the switch:
switch# configure terminal
switch(config)# no feature-set virtualization
switch(config)#
Related CommandsCommandDescription
feature vmfexEnables 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-setDisplays the status of the virtualization feature set.
Chapter F Commands
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
166
OL-27880-02
Page 73
H Commands
This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with H.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
167
Page 74
hardware multicast hw-hash
hardware multicast hw-hash
To use hardware hashing for multicast traffic on an EtherChannel interface, use the hardware multicast
hw-hash command. To restore the defaults, use the no form of this command.
hardware multicast hw-hash
no hardware multicast hw-hash
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultThe software selection method is used for multicast traffic.
Command ModesInterface configuration mode
Chapter H Commands
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesBy default, ingress multicast traffic on any port in the switch selects a particular EtherChannel member
to egress the traffic. 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.
NoteHardware hashing is not available on a Cisco Nexus 2000 Series Fabric Extender HIF port (downlink
port).
ExamplesThis example shows how to set the hardware hashing for multicast traffic on an EtherChannel interface:
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
170
OL-27880-02
Page 77
I Commands
This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with I.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
171
Page 78
install certificate
install certificate
To install a certificate that is used to connect to a vCenter Server, use the install certificate command.
To remove a certificate, use the no form of this command.
show svs connectionsDisplays SVS connection information.
svs connectionEnables an SVS connection.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
172
OL-27880-02
Page 79
Chapter I Commands
install feature-set virtualization
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
no install feature-set virtualization
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultDisabled
Command ModesGlobal configuration mode
install feature-set virtualization
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage Guidelines
NoteThe Cisco virtual machine feature is supported only on the Cisco Nexus 5500 Series switches.
This command requires an Enhanced Layer 2 license.
ExamplesThis example shows how to install the Cisco virtual machine feature set on the switch:
feature vmfexEnables or disables Cisco Virtual Machine Fabric Extender (VM-FEX) on
the switch.
feature-set
Enables the Cisco virtual machine feature set on the switch.
virtualization
show feature-setDisplays the status of the virtualization feature set.
show running-configDisplays the running system configuration information.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
173
Page 80
instance vlan
instance vlan
To map a VLAN or a set of VLANs to a Multiple Spanning Tree instance (MSTI), use the instance vlan
command. To delete the instance and return the VLANs to the default instance (Common and Internal
Spanning Tree [CIST]), use the no form of this command.
Chapter I Commands
instance instance-id vlan vlan-id
no instance instance-id [vlan vlan-id]
Syntax Description
instance-idInstances to which the specified VLANs are mapped. The range is from 0 to
4094.
vlanvlan-idSpecifies the number of the VLANs that you are mapping to the specified
MSTI. The VLAN ID range is from 1 to 4094.
Command DefaultNo VLANs are mapped to any MST instance (all VLANs are mapped to the CIST instance).
Command ModesMST configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesThe VLAN identifier is entered as a single value or a range.
The mapping is incremental, not absolute. When you enter a range of VLANs, this range is added to or
removed from the existing instances.
Any unmapped VLAN is mapped to the CIST instance.
CautionWhen you change the VLAN-to-MSTI mapping, the system restarts MST.
ExamplesThis example shows how to map a range of VLANs to MSTI 4:
chassis_ID(Optional) Specifies the Fabric Extender chassis ID. The chassis ID is from
slot
QSFP-module
portPort number within a particular slot. The port number is from 1 to 128.
.(Optional) Specifies the subinterface separator.
subintf-port-no(Optional) Port number for the subinterface. The range is from 1 to 48.
Command DefaultNone
Command ModesGlobal configuration mode
Interface configuration mode
100 to 199.
NoteThis argument is not optional when addressing the host interfaces of
a Cisco Nexus 2000 Series Fabric Extender.
Slots from 1 to 4. The following list defines the slots available:
• Slot 1 are the fixed ports.
• Slots 2 to 4 are expansion modules.
The QSFP-module numbers are from 1 to 4.
NoteThe QSFP-module number applies only to the QSFP+ Generic
Expansion Module (GEM).
Command History
ReleaseModification
6.0(2)N1(1)Support for the QSFP+ GEM was added.
5.2(1)N1(1)This command was introduced.
Usage GuidelinesYou must use the no switchport command in the interface configuration mode to configure the interface
as a Layer 3 routed interface. When you configure the interface as a Layer 3 interface, all Layer 2 specific
configurations on this interface are deleted.
Use the switchport command to convert a Layer 3 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.
ExamplesThis 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
178
OL-27880-02
Page 85
Chapter I Commands
interface ethernet (Layer 3)
This example shows how to configure a Layer 3 subinterface for Ethernet interface 1/5 in the global
configuration mode:
switch(config)# interface ethernet 1/5.2
switch(config-if)# no switchport
switch(config-subif)# ip address 10.1.1.1/24
switch(config-subif)#
This example shows how to configure a Layer 3 subinterface in interface configuration mode:
switch(config)# interface ethernet 1/5
switch(config-if)# no switchport
switch(config-if)# interface ethernet 1/5.1
switch(config-subif)# ip address 10.1.1.1/24
switch(config-subif)#
This example shows how to convert a Layer 3 interface to a Layer 2 interface:
switch(config)# interface ethernet 1/5
switch(config-if)# no switchport
switch(config-if)# ip address 10.1.1.1/24
switch(config-if)# switchport
switch(config-if)#
Related CommandsCommandDescription
bandwidthSets the bandwidth parameters for an interface.
delayConfigures the interface throughput delay value.
encapsulationSets the encapsulation type for an interface.
ip addressSets a primary or secondary IP address for an interface.
inheritAssigns a port profile to an interface.
interface vethernetConfigures a virtual Ethernet interface.
no switchportConfigures an interface as a Layer 3 interface.
service-policyConfigures a service policy for an interface.
show fexDisplays all configured Fabric Extender chassis connected to the switch.
show interface
Displays various parameters of an Ethernet IEEE 802.3 interface.
ethernet
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
179
Page 86
interface loopback
interface loopback
To create a loopback interface and enter interface configuration mode, use the interface loopback
command. To remove a loopback interface, use the no form of this command.
interface loopback number
no interface loopback number
Chapter I Commands
Syntax Description
numberInterface number; valid values are from 0 to 1023.
Command DefaultNone
Command ModesGlobal configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesUse the interface loopback command to create or modify loopback interfaces.
From the loopback interface configuration mode, the following parameters are available:
• description—Provides a description of the purpose of the interface.
• ip—Configures IP features, such as the IP address for the interface, Address Resolution Protocol
(ARP) attributes, load balancing, Unicast Reverse Path Forwarding (RPF) or IP Source Guard.
• logging—Configure logging of events.
• shutdown—Shut down traffic on the interface.
This command does not require a license.
ExamplesThis 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
CommandDescription
show interface
loopback
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
180
Displays information about the traffic on the specified loopback interface.
OL-27880-02
Page 87
Chapter I Commands
interface mgmt
To enter the management interface configuration mode, use the interface mgmt command.
interface mgmt mgmt-intf-num
interface mgmt
Syntax Description
mgmt-intf-numManagement interface number. The interface number is 0.
Command DefaultNone
Command ModesGlobal configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
ExamplesThis example shows how to enter the management interface configuration mode:
speedConfigures the transmit and receive speed for an interface.
vrf memberAdds an interface to a virtual routing and forwarding (VRF) instance.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
181
Page 88
interface port-channel
interface port-channel
To create an EtherChannel interface and enter interface configuration mode, use the interface
port-channel command. To remove an EtherChannel interface, use the no form of this command.
no interface port-channel channel-number[.subintf-channel-no]
Chapter I Commands
Syntax Description
channel-numberChannel number that is assigned to this EtherChannel logical interface. The
range is from 1 to 4096.
.(Optional) Specifies the subinterface separator.
NoteApplies to Layer 3 interfaces.
subintf-channel-no(Optional) Port number of the EtherChannel subinterface. The range is from
1 to 4093.
NoteApplies to Layer 3 interfaces.
Command DefaultNone
Command ModesGlobal configuration mode
Interface configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesA port can belong to only one channel group.
When you use the interface port-channel command for Layer 2 interfaces, follow these guidelines:
• If you are using CDP, you must configure it only on the physical interface and not on the
EtherChannel interface.
• If you do not assign a static MAC address on the EtherChannel interface, a MAC address is
automatically assigned. If you assign a static MAC address and then later remove it, the MAC
address is automatically assigned.
• The MAC address of the EtherChannel is the address of the first operational port added to the
channel group. If this first-added port is removed from the channel, the MAC address comes from
the next operational port added, if there is one.
You must use the no switchport command in the interface configuration mode to configure the
EtherChannel interface as a Layer 3 interface. When you configure the interface as a Layer 3 interface,
all Layer 2 specific configurations on this interface are deleted.
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
182
OL-27880-02
Page 89
Chapter I Commands
interface port-channel
You can configure one or more subinterfaces on a port channel made from routed interfaces.
ExamplesThis example shows how to create an EtherChannel group interface with channel-group number 50:
This example shows how to create a Layer 3 EtherChannel group interface with channel-group number
10:
switch(config)# interface port-channel 10
switch(config-if)# no switchport
switch(config-if)# ip address 192.0.2.1/24
switch(config-if)#
This example shows how to configure a Layer 3 EtherChannel subinterface with channel-group number
1 in interface configuration mode:
switch(config)# interface port-channel 10
switch(config-if)# no switchport
switch(config-if)# interface port-channel 10.1
switch(config-subif)# ip address 192.0.2.2/24
switch(config-subif)#
This example shows how to configure a Layer 3 EtherChannel subinterface with channel-group number
20.1 in global configuration mode:
switch(config)# interface port-channel 20.1
switch(config-subif)# ip address 192.0.2.3/24
switch(config-subif)#
Related CommandsCommandDescription
encapsulation(Layer 3 interfaces) Sets the encapsulation type for an interface.
ip address(Layer 3 interfaces) Sets a primary or secondary IP address for an interface.
no switchport(Layer 3 interfaces) Configures an interface as a Layer 3 interface.
show interfaceDisplays configuration information about interfaces.
show lacpDisplays LACP information.
show port-channel
Displays information on the EtherChannels.
summary
vtp (interface)Enables VLAN Trunking Protocol (VTP) on an interface.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
183
Page 90
interface vethernet
interface vethernet
To enter interface configuration mode for a virtual Ethernet (vEth) interface, use the interface vethernet
command. To remove a virtual Ethernet interface, use the no form of this command.
no interface vethernet veth-id[, vethernet veth-id, ...]
Chapter I Commands
Syntax Description
veth-idVirtual Ethernet interface number. The range is from 1 to 1,048,575.
You can specify more than one virtual Ethernet interface. Make sure you use
the comma (,) separator.
Command DefaultNone
Command ModesGlobal configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesBefore 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.
You must configure a virtual Ethernet interface on each switch. The configuration in the secondary
switch must be identical to that of the primary switch.
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.
ExamplesThis example shows how to enter configuration mode for virtual Ethernet interface 10:
This example shows how to bind an interface, configure a vEthernet access interface, assign the access
VLAN for that interface, and then assign a port profile named ppVEth, and a class of service (CoS) value
3 to a virtual Ethernet interface:
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
This example shows how to remove a virtual Ethernet interface:
switch# configure terminal
switch(config)# no interface vethernet 2
switch(config)#
Related CommandsCommandDescription
bindBinds an interface to a virtual Ethernet interface.
feature vmfexenables VM-FEX on the switch.
port-profileConfigures a port profile.
show interface
Displays information about Ethernet interfaces.
ethernet
show interface
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.
interface vethernet
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
185
Page 92
interface vlan
interface vlan
To create a VLAN interface and enter interface configuration mode, use the interface vlan command.
To remove a VLAN interface, use the no form of this command.
Chapter I Commands
interface vlan vlan-id
no interface vlan vlan-id
Syntax Description
vlan-idVLAN to set when the interface is in access mode; valid values are from 1
to 4094, except for the VLANs reserved for the internal switch use.
Command DefaultNone
Command ModesGlobal configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesBefore you use this command, enable the interface-vlan feature by using the feature interface-vlan
command.
Use the interface vlan command to create or modify VLAN interfaces.
The VLAN interface is created the first time that you enter the interface vlan command for a particular
VLAN. The vlan-id argument corresponds to the VLAN tag that is associated with the data frames on
an IEEE 802.1Q-encapsulated trunk, or the VLAN ID that is configured for an access port.
This command does not require a license.
ExamplesThis example shows how to create a VLAN interface for VLAN 50:
feature interface-vlanEnables the ability to create VLAN interfaces.
show interface vlanDisplays information about the traffic on the specified VLAN interface.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
186
OL-27880-02
Page 93
Chapter I Commands
ip igmp snooping (EXEC)
To enable Internet Group Management Protocol (IGMP), use the ip igmp snooping command. To
disable IGMP snooping, use the no form of this command.
ip igmp snooping
no ip igmp snooping
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultIGMP snooping is enabled.
NoteIf the global setting is disabled, then all VLANs are treated as disabled, whether they are enabled or not.
ip igmp snooping (EXEC)
Command ModesEXEC mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
ExamplesThis example shows how to enable IGMP snooping:
switch# ip igmp snooping
Related Commands
CommandDescription
show ip igmp snooping Displays IGMP snooping information and configuration.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
187
Page 94
ip igmp snooping (VLAN)
ip igmp snooping (VLAN)
To configure Internet Group Management Protocol (IGMP) on a VLAN, use the ip igmp snooping
command. To negate the command or return to the default settings, use the no form of this command
ip igmp snooping parameter
no ip igmp snooping parameter
Chapter I Commands
Syntax Description
parameterParameter to configure. See the “Usage Guidelines” section for additional
information.
Command DefaultThe default settings are as follows:
• explicit-tracking—enabled
• fast-leave—disabled for all VLANs
• last-member-query-interval seconds—1
• querier IP-address—disabled
• report-suppression—enabled
Command ModesVLAN configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesTable 1 lists the valid values for parameter.
Table 1IGMP Snooping Parameters
Keyword and ArgumentDescription
explicit-trackingEnables tracking IGMPv3 membership reports for each port on a
fast-leaveEnables IGMPv3 snooping fast-leave processing. The default is
last-member-query-interval
seconds
mrouter interface interfaceConfigures a static connection to a multicast router. The specified
querier IP-addressConfigures a snooping querier. The IP address is used as the source
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
188
per-VLAN basis. The default is enabled on all VLANs.
disabled for all VLANs.
Removes the group if no hosts respond to an IGMP query message.
Valid value is from 1 to 25 seconds. The default is 1 second.
interface is Ethernet or EtherChannel.
in messages. The default is disabled.
OL-27880-02
Page 95
Chapter I Commands
Table 1IGMP Snooping Parameters (continued)
Keyword and ArgumentDescription
report-suppressionLimits the membership report traffic sent to multicast-capable
routers. When you disable report suppression, all IGMP reports are
sent as is to multicast-capable routers. The default is enabled.
Configures an interface belonging to a VLAN as a static member of
a multicast group. The specified interface is Ethernet or
EtherChannel, or virtual Ethernet.
ExamplesThis example shows how to configure IGMP snooping parameters for VLAN 5:
switch# configure terminal
switch(config)# vlan 5
switch(config-vlan)# ip igmp snooping last-member-query-interval 3
switch(config-vlan)# ip igmp snooping querier 192.168.2.106
switch(config-vlan)# ip igmp snooping explicit-tracking
switch(config-vlan)# ip igmp snooping fast-leave
switch(config-vlan)# ip igmp snooping report-suppression
switch(config-vlan)# ip igmp snooping mrouter interface ethernet 1/10
switch(config-vlan)# ip igmp snooping static-group 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)#
ip igmp snooping (VLAN)
Related Commands
CommandDescription
show ip igmp snooping Displays the IGMP snooping information and configuration.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
189
Page 96
ip igmp snooping (VLAN)
Chapter I Commands
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
190
OL-27880-02
Page 97
L Commands
This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with L.
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
191
Page 98
lacp graceful-convergence
lacp graceful-convergence
To configure port channel Link Aggregation Control Protocol (LACP) graceful convergence, use the
lacp graceful-convergence command. To disable graceful convergence on a port channel interface, use
the no form of this command.
lacp graceful-convergence
no lacp graceful-convergence
Syntax DescriptionThis command has no arguments or keywords.
Command DefaultEnabled
Command ModesInterface configuration mode
Chapter L Commands
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesYou can use this command only on a port channel interface that is in an administratively down state. You
cannot configure (or disable) LACP graceful convergence on a port chanel that is in an administratively
up state. If you do so, you will see the following error message:
ERROR: Cannot set/reset lacp graceful-convergence for port-channel10 that is admin up
NoteTo avoid port suspension, we recommend that you disable graceful convergence on LACP ports on a peer
switch that is not running Cisco NX-OS.
This command does not require a license.
ExamplesThis example shows how to enable LACP graceful convergence on a port channel:
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
192
OL-27880-02
Page 99
Chapter L Commands
Related CommandsCommandDescription
show lacpDisplays LACP information.
show running-configDisplays the running system configuration.
lacp graceful-convergence
OL-27880-02
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
193
Page 100
lacp port-priority
lacp port-priority
To set the priority for the physical interfaces for the Link Aggregation Control Protocol (LACP), use the
lacp port-priority command. To return the port priority to the default value, use the no form of this
command.
lacp port-priority priority
no lacp port-priority
Chapter L Commands
Syntax Description
priorityPriority for the physical interfaces. The range of valid numbers is from 1 to
65535.
Command DefaultSystem priority value is 32768.
Command ModesInterface configuration mode
Command History
ReleaseModification
5.2(1)N1(1)This command was introduced.
Usage GuidelinesEach port configured to use LACP has an LACP port priority. You can configure a value between 1 and
65535. LACP uses the port priority in combination with the port number to form the port identifier. The
port priority is used with the port number to form the port identifier. The port priority is used to decide
which ports should be put into standby mode when there is a hardware limitation that prevents all
compatible ports from aggregating.
NoteWhen setting the priority, note that a higher number means a lower priority.
ExamplesThis example shows how to set the LACP port priority for the interface to 2000: