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