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