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