Americas Headquarters
First Published February 29 Last Modified March 22
Cisco Systems, Inc
170 West Tasman Drive San Jose, CA
Cisco Systems, Inc. All rights reserved
Obtaining Documentation and Submitting a Service Request
C O N T E N T S
Audience Document Conventions
Related Documentation for Nexus 3000 Series NX-OS Software
Default CDP Configuration
About the Error-Disabled State
About the Debounce Timer Parameters
About MTU Configuration
Configuring a VLAN as a Management SVI
Configuring VTP
Verifying VLAN Configuration
Configuring a Private VLAN
Configuring Access and Trunk Interfaces
Configuring Trunk Ports
Verifying Interface Configuration
Enabling Store-and-Forward Switching Reenabling Cut-Through Switching
Protocol Timers Port Roles Port States
Forwarding State Disabled State Summary of Port States
Configuring Rapid PVST+ Enabling Rapid PVST+
Enabling Rapid PVST+ per VLAN Configuring the Root Bridge ID
MST Overview MST Regions MST BPDUs MST Configuration Information
Configuring MST MST Configuration Guidelines Enabling MST
Entering MST Configuration Mode Specifying the MST Name
Specifying the MST Configuration Revision Number
Verifying MST Configurations
Configuring STP Extensions
STP Extensions Configuration Guidelines
Configuring Spanning Tree Port Types Globally
Verifying the MAC Address Configuration
Configuring IGMP Snooping Parameters
Verifying IGMP Snooping Configuration
Configuring Traffic Storm Control
Obtaining Documentation and Submitting a Service Request, page
Preface
Audience
Document Conventions
Related Documentation for Nexus 3000 Series NX-OS Software
Convention
Description
Convention
Installation and Upgrade Guides
Configuration Guides
Error and System Messages
Release Notes
Obtaining Documentation and Submitting a Service Request
Feature
New and Changed Information for this Release
C H A P T E R
New and Changed Information for this Release, page
New and Changed Information for this Release
New and Changed Information for this Release
OL-26590-01
Layer 2 Ethernet Switching Overview
Layer 2 Ethernet Switching Overview, page VLANs, page
Overview
VLANs
Spanning Tree
Private VLANs
STP Overview
Rapid PVST+
STP Extensions
Overview STP Extensions
OL-26590-01
Configuring Ethernet Interfaces
About the Interface Command
Configuring Ethernet Interfaces, page
Default Physical Ethernet Settings , page
About the Unidirectional Link Detection Parameter
UDLD Aggressive and Nonaggressive Modes
Default UDLD Configuration
Feature
About the Error-Disabled State
Default CDP Configuration
About Interface Speed
About the Cisco Discovery Protocol
Configuring Ethernet Interfaces
About the Debounce Timer Parameters
About MTU Configuration
About Port Profiles
Configuring the UDLD Mode
Procedure
Command or Action
switch# configure terminal
Changing an Interface Port Mode
running-config bootflash
running-config startup-config
profile portmode portmode
Configuring Interface Speed
Procedure
Command or Action
switch# configure terminal
Disabling Link Negotiation
Procedure
Command or Action
Command or Action
Configuring the CDP Characteristics
advertise v1
device-id mac-address
serial-number system-name
Enabling or Disabling CDP
Procedure
Command or Action
Command or Action
Enabling the Error-Disabled Detection
config t
errdisable detect cause all link-flap
show interface status err-disabled
Enabling the Error-Disabled Recovery
Configuring the Error-Disabled Recovery Interval
Enters configuration mode
Procedure
Configuring the Debounce Timer
Configuring the Description Parameter
errdisable recovery interval interval
Step 3 show interface status err-disabled
Displaying Interface Information
Disabling and Restarting Ethernet Interfaces
Procedure
Command or Action
Command
switch# show interface type slot / port
switch# show interface type slot / port capabilities
switch# show interface type slot / port transceiver
Displaying Input Packet Discard Information
Default Setting
Default Physical Ethernet Settings
Parameter
Configuring Ethernet Interfaces Default Physical Ethernet Settings
OL-26590-01
Configuring Ethernet Interfaces Default Physical Ethernet Settings
OL-26590-01
Configuring VLANs
Information About VLANs, page Configuring a VLAN, page
Information About VLANs
Understanding VLANs
VLAN Ranges
Creating, Deleting, and Modifying VLANs
VLANs Numbers
Range
Usage
Configuring a VLAN
About the VLAN Trunking Protocol
Creating and Deleting a VLAN
Guidelines and Limitations for VTP
Configuring a VLAN
Procedure
Command or Action
switch# configure terminal
switchconfig# interface ethernet
Adding Ports to a VLAN
active suspend
Procedure
Configuring a VLAN as a Routed SVI
switchconfig-if# switchport access vlan
configure terminal
Enters global configuration mode
Configuring a VLAN as a Management SVI
Configuring VTP
Creates a VLAN interface SVI and configures the
Copies the running configuration to the startup
vtp password
show vtp password
copy running-config
startup-config
Verifying VLAN Configuration
switch# show running-config vlan vlanid vlanrange
switch# show vlan brief id vlanid vlanrange name name
summary
Configuring Private VLANs
Configuring a Private VLAN, page
Verifying the Private VLAN Configuration, page
Information About Private VLANs
Primary and Secondary VLANs in Private VLANs
Private VLAN Ports
Primary, Isolated, and Community Private VLANs
Associating Primary and Secondary VLANs
Private VLAN Promiscuous Trunks
Private VLAN Isolated Trunks
Broadcast Traffic in Private VLANs
Private VLAN Port Isolation
Configuring a Private VLAN
switchconfig# feature private-vlan
Guidelines and Limitations for Private VLANs
Enabling Private VLANs
Configuring a VLAN as a Private VLAN
Associating Secondary VLANs with a Primary Private VLAN
community isolated primary
Procedure
association
Procedure
Command or Action
switch# configure terminal
Configuring an Interface as a Private VLAN Host Port
Configuring an Interface as a Private VLAN Promiscuous Port
switchconfig-if# switchport private-vlan
private-vlan host
Configuring a Promiscuous Trunk Port
Configuring an Isolated Trunk Port
Configuring the Allowed VLANs for PVLAN Trunking Ports
private-vlan promiscuous
Verifying the Private VLAN Configuration
Configuring Native 802.1Q VLANs on Private VLANs
switch# show feature
switch# show interface switchport
Configuring Private VLANs Verifying the Private VLAN Configuration
OL-26590-01
Configuring Access and Trunk Interfaces
Information About Access and Trunk Interfaces
Understanding Access and Trunk Interfaces
Information About Access and Trunk Interfaces, page
Understanding IEEE 802.1Q Encapsulation
Figure 5 Devices in a Trunking Environment
Understanding Access VLANs
Figure 6 Header without and with 802.1Q Tag Included
Understanding Allowed VLANs
Understanding the Native VLAN ID for Trunk Ports
Understanding Native 802.1Q VLANs
Configuring Access and Trunk Interfaces
Configuring a LAN Interface as an Ethernet Access Port
mode access trunk
VLAN, use the switchport access vlan command
Configuring Access Host Ports
Configuring Trunk Ports
Procedure
Procedure
Configuring the Native VLAN for 802.1Q Trunking Ports
Configuring the Allowed VLANs for Trunking Ports
specified trunk, use the switchport trunk allowed vlan
port-channel number
Configuring Native 802.1Q VLANs
Step 1 switch# configure terminal
allowed vlan vlan-list all none add except none remove vlan-list
Procedure
Verifying Interface Configuration
switchconfig# no vlan dot1q tag
switch# show vlan dot1q tag native
switch# show interface
Verifying Interface Configuration
Configuring Access and Trunk Interfaces
OL-26590-01
Configuring Switching Modes
Information About Switching Modes
Information About Switching Modes, page
Guidelines and Limitations for Switching Modes, page
Guidelines and Limitations for Switching Modes
Licensing Requirements for Switching Modes
Cut-Through Switching Mode Guidelines and Limitations
Store-and-Forward Switching Mode Guidelines and Limitations
Default Settings for Switching Modes
Configuring Switching Modes
Enabling Store-and-Forward Switching
Reenabling Cut-Through Switching
Feature History for Switching Modes
Feature Name
Releases
Information
Configuring Rapid PVST+
Information About Rapid PVST+, page Configuring Rapid PVST+, page
Verifying Rapid PVST+ Configurations, page
Information About Rapid PVST+
Understanding the Bridge ID
Understanding How a Topology is Created
Bridge Priority Value
Extended System ID
STP MAC Address Allocation
Bridge Priority Value
8192
Understanding BPDUs
Creating the Spanning Tree Topology
Election of the Root Bridge
Figure 8 Spanning Tree Topology
Understanding Rapid PVST+
Rapid PVST+ Overview
Rapid PVST+ BPDUs
Proposal and Agreement Handshake
Figure 10 Proposal and Agreement Handshaking for Rapid Convergence
Protocol Timers
Port Roles
Variable
Description
Port States
Rapid PVST+ Port State Overview
Learning State
Blocking State
Forwarding State
Disabled State
Synchronization of Port Roles
Summary of Port States
Operational Status
Processing Superior BPDU Information
Spanning-Tree Dispute Mechanism
Port Cost
Processing Inferior BPDU Information
Bandwidth
Rapid PVST+ and IEEE 802.1Q Trunks
Rapid PVST+ Interoperation with Legacy 802.1D STP
Port Priority
Bandwidth
Rapid PVST+ Interoperation with 802.1s MST
Configuring Rapid PVST+
Enabling Rapid PVST+
mode rapid-pvst
switch# configure
Enabling Rapid PVST+ per VLAN
terminal
Command or Action
Configuring the Root Bridge ID
Purpose
Configuring a Secondary Root Bridge
Procedure
Command or Action
Step 1 switch# configure terminal
Configuring the Rapid PVST+ Port Priority
vlan vlan-list port-priority priority
Procedure
Procedure
Configuring the Rapid PVST+ Pathcost Method and Port Cost
Configuring the Rapid PVST+ Bridge Priority of a VLAN
pathcost method long short
vlan vlan-id cost value auto
Configuring the Rapid PVST+ Hello Time for a VLAN
switchconfig# spanning-tree vlan
Procedure
Procedure
Configuring the Rapid PVST+ Forward Delay Time for a VLAN
Configuring the Rapid PVST+ Maximum Age Time for a VLAN
Specifying the Link Type
Procedure
Verifying Rapid PVST+ Configurations
switch# clear spanning-tree detected-protocol
switch# show running-config spanning-tree all
Restarting the Protocol
switch# show spanning-tree options
Command
Configuring Rapid PVST+ Verifying Rapid PVST+ Configurations
switch# show spanning-tree brief
Configuring Rapid PVST+ Verifying Rapid PVST+ Configurations
OL-26590-01
Configuring Multiple Spanning Tree
Information About MST, page Configuring MST, page
Verifying MST Configurations, page
Information About MST
MST BPDUs
MST Regions
Figure 14 MST BPDU with M-Records for MSTIs
IST, CIST, and CST
MST Configuration Information
IST, CIST, and CST Overview
Spanning Tree Operation Within an MST Region
Spanning Tree Operations Between MST Regions
MST Terminology
Figure 15 MST Regions, CIST Regional Roots, and CST Root
Hop Count
Boundary Ports
Figure 16 MST Boundary Ports
Spanning-Tree Dispute Mechanism
Figure 17 Detecting a Unidirectional Link Failure
Port Cost and Port Priority
Interoperability with IEEE 802.1D
Configuring MST
MST Configuration Guidelines
Interoperability with Rapid PVST+ Understanding PVST Simulation
Enabling MST
Entering MST Configuration Mode
switchconfig# spanning-tree mode mst
switchconfig# no spanning-tree mode mst
mst configuration
switchconfig# spanning-tree mst
Specifying the MST Name
spanning-tree mst
Procedure
Specifying the MST Configuration Revision Number
Specifying the Configuration on an MST Region
Procedure
Procedure
Command or Action
When you map VLANs to an MST instance, the mapping is
Purpose
Step
Mapping and Unmapping VLANs to MST Instances
Procedure
Command or Action
switch# configure terminal
Configuring the Root Bridge
synchronize
mst instance-id root primary
Procedure
Step 3 switchconfig# no spanning-tree mst instance-id root
secondary diameter dia hello-time hello-time
Configuring a Secondary Root Bridge
Procedure
Configuring the Port Priority
Procedure
Command or Action
Command or Action
Configuring the Port Cost
Configuring the Switch Priority
Procedure
Command or Action
Configuring the Hello Time
hello-time seconds
Procedure
Procedure
Configuring the Forwarding-Delay Time
Configuring the Maximum-Aging Time
Procedure
Procedure
Configuring the Maximum-Hop Count
Configuring PVST Simulation Globally
mst max-age seconds
max-hops hop-count
Configuring PVST Simulation Per Port
simulate pvst disable
spanning-tree mst simulate pvst global command
mst simulate pvst global
Procedure
Command or Action
Step 1 switch# configure terminal
Specifying the Link Type
Verifying MST Configurations
switch# show running-config spanning-tree all
switch# show spanning-tree mst options
Procedure
Configuring STP Extensions
About STP Extensions
Information About STP Extensions
Understanding STP Port Types
Understanding Bridge Assurance
Understanding BPDU Guard
Spanning Tree Network Ports
Spanning Tree Normal Ports
Configuration
Understanding BPDU Filtering
BPDU Filtering Global
STP Edge Port
Understanding Loop Guard
Understanding Root Guard
Configuration
Configuration
Configuring STP Extensions
STP Extensions Configuration Guidelines
Configuring Spanning Tree Port Types Globally
Before You Begin
Configuring Spanning Tree Edge Ports on Specified Interfaces
port type edge default
port type network default
Procedure
Configuring Spanning Tree Network Ports on Specified Interfaces
port type edge
Procedure
Command or Action
Enabling BPDU Guard Globally
port type network
Procedure
Command or Action
switchconfig# spanning-tree port type
edge bpduguard default
bpduguard enable disable
spanning-tree port type edge bpduguard default command
edge bpdufilter default
Enabling BPDU Filtering Globally
Procedure
Command or Action
bpdufilter enable disable
Enabling BPDU Filtering on Specified Interfaces
bpdufilter
Procedure
loopguard default
Enabling Loop Guard Globally
Enabling Loop Guard or Root Guard on Specified Interfaces
Procedure
Verifying STP Extension Configuration
guard loop root none
Procedure
Command or Action
Configuring STP Extensions Verifying STP Extension Configuration
OL-26590-01
Configuring LLDP
Configuring Global LLDP Commands
Configuring Global LLDP Commands, page
Configuring Interface LLDP Commands, page
holdtime reinit timer
Procedure
Command or Action
Step 1 switch# configure terminal
Configuring Interface LLDP Commands
transmit
Procedure
Command or Action
This example shows how to display LLDP timer information
This example shows how to display LLDP counters
Configuring LLDP Configuring Interface LLDP Commands
switch# show lldp timers LLDP Timers
Configuring the MAC Address Table
Configuring MAC Addresses
Configuring a Static MAC Address
Information About MAC Addresses, page Configuring MAC Addresses, page
Configuring the Aging Time for the MAC Table
switchconfig-# no mac-address-table static
Procedure
Procedure
Verifying the MAC Address Configuration
switchconfig# clear mac-address-table dynamic
switch# show mac-address-table aging-time
defined in the switch
This example shows how to display the MAC address table
This example shows how to display the current aging time
Configuring the MAC Address Table
Verifying the MAC Address Configuration
Configuring IGMP Snooping
Configuring IGMP Snooping Parameters, page
Verifying IGMP Snooping Configuration, page
Information About IGMP Snooping
IGMPv1 and IGMPv2
Figure 18 IGMP Snooping Switch
IGMP Snooping Querier
IGMPv3
IGMP Forwarding
Parameter
Configuring IGMP Snooping Parameters
Description
no ip igmp snooping mrouter vpc-peer-link
no ip igmp snooping mrouter
snooping
Procedure
snooping explicit-tracking
snooping fast-leave
last-member-query-interval
snooping querier IP-address
Verifying IGMP Snooping Configuration
switch# show ip igmp snooping vlan vlan-id
switch# show ip igmp snooping groups vlan vlan-id detail
switch# show ip igmp snooping querier vlan vlan-id
Configuring IGMP Snooping Verifying IGMP Snooping Configuration
OL-26590-01
Configuring Traffic Storm Control
Configuring Traffic Storm Control, page
Traffic Storm Control Example Configuration, page
Default Traffic Storm Settings, page
Traffic Storm Guidelines and Limitations
Figure 19 Broadcast Suppression
Configuring Traffic Storm Control
switchconfig-if# storm-control broadcast
multicast unicast level percentage . fraction
Procedure
Traffic Storm Control Example Configuration
Default Traffic Storm Settings
Verifying Traffic Storm Control Configuration
switch# show running-config interface
I N D E
Page
Page
adding ports to