First Published February 29 Last Modified March 22
Americas Headquarters
Page
N T E N T S
Configuring VLANs
Configuring Private VLANs
Configuring Rapid PVST+
Configuring Multiple Spanning Tree
Configuring the Port Priority
Configuring Lldp
Configuring Igmp Snooping
Audience
Preface
Document Conventions
Convention Description
Italic screen font
Configuration Guides
Installation and Upgrade Guides
Error and System Messages
Release Notes
Obtaining Documentation and Submitting a Service Request
Switching mode. There are two switching
Feature Description Added or
New and Changed Information for this Release
Changed Release
OL-26590-01
Overview
Layer 2 Ethernet Switching Overview
VLANs
This chapter contains the following sections
Private VLANs
Spanning Tree
STP Overview
STP Extensions
Rapid PVST+
Overview STP Extensions
Configuring Ethernet Interfaces
About the Interface Command
Information About Ethernet Interfaces
About the Unidirectional Link Detection Parameter
Following table shows the default Udld configuration
Default Udld Configuration
Feature
Udld Aggressive and Nonaggressive Modes
Default CDP Configuration
About the Error-Disabled State
Following table shows the default CDP configuration
About Interface Speed
About the Debounce Timer Parameters
Configuring Ethernet Interfaces
About MTU Configuration
About Port Profiles
Command or Action Purpose Step
Configuring the Udld Mode
Switch# configure terminal
Aggressive
Command or Action
Changing an Interface Port Mode
Running-config bootflash
Running-config startup-config
Configuring Interface Speed
Slot /port
Transceiver inserted into it
Disabling Link Negotiation
Command or Action Purpose
Advertise v1
Configuring the CDP Characteristics
Device-id mac-address
Serial-number system-name
Seconds
Enabling or Disabling CDP
Example
Enabling the Error-Disabled Detection
Configuring the Error-Disabled Recovery Interval
Enabling the Error-Disabled Recovery
Config t Enters configuration mode
Copy running-config startup-config
Configuring the Description Parameter
Configuring the Debounce Timer
Errdisable recovery interval interval
Show interface status err-disabled
Switchconfig-if# shutdown Disables the interface
Displaying Interface Information
Disabling and Restarting Ethernet Interfaces
Command Purpose
Displaying Input Packet Discard Information
Following example shows how to display the CDP neighbors
Parameter Default Setting
Default Physical Ethernet Settings
Page
OL-26590-01
Configuring VLANs
Information About VLANs
Understanding VLANs
VLANs as Logically Defined Networks
Vlan Ranges
VLANs Numbers Range Usage
Creating, Deleting, and Modifying VLANs
About the Vlan Trunking Protocol
Configuring a Vlan
Creating and Deleting a Vlan
Guidelines and Limitations for VTP
Configuring a Vlan
Vlan-id vlan-range
Vlan vlan-id vlan-range
Switchconfig# interface ethernet
Adding Ports to a Vlan
Active suspend
Switchconfig-if# switchport access vlan
Configuring a Vlan as a Routed SVI
Configure terminal Enters global configuration mode
Feature interface-vlan Enables the creation of SVIs
Configuring a Vlan as a Management SVI
Configuring VTP
You can configure routing protocols on this interface
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
Information About Private VLANs
Configuring Private VLANs
Primary and Secondary VLANs in Private VLANs
Private Vlan Ports
Three types of Pvlan ports are as follows
Primary, Isolated, and Community Private VLANs
Private Vlan Traffic Flows
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
Configuring a Vlan as a Private Vlan
Associating Secondary VLANs with a Primary Private Vlan
Community isolated primary
Association add secondary-vlan-list
Remove secondary-vlan-list
Association
Configuring an Interface as a Private Vlan Promiscuous Port
Configuring an Interface as a Private Vlan Host Port
Configuring a Promiscuous Trunk Port
Configuring an Isolated Trunk Port
Configuring the Allowed VLANs for Pvlan Trunking Ports
Configuring Native 802.1Q VLANs on Private VLANs
Verifying the Private Vlan Configuration
Switch# show feature
Switch# show interface switchport
OL-26590-01
Configuring Access and Trunk Interfaces
Information About Access and Trunk Interfaces
Understanding Access and Trunk Interfaces
Devices in a Trunking Environment
Understanding Ieee 802.1Q Encapsulation
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
Configuring Trunk Ports
Configuring Access Host Ports
Switchconfig-if# switchport host
On bpdu filtering and bpdu guard
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
Switch# configure terminal Enters configuration mode
Configuring Native 802.1Q VLANs
Switchconfig# no vlan dot1q tag
Verifying Interface Configuration
Switch# show vlan dot1q tag native
Switch# show interface
OL-26590-01
Information About Switching Modes
Configuring Switching Modes
Cut-Through Switching Mode
Store-and-Forward Switching Mode
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
Saves the change persistently through reboots
Feature History for Switching Modes
This example shows how to reenable cut-through switching
Feature Name Releases Information
Information About Rapid PVST+
Configuring Rapid PVST+
Understanding STP
STP Overview
Understanding the Bridge ID
Understanding How a Topology is Created
Bridge Priority Value
Bit extended system ID field is part of the bridge ID
Bit
8192 4096 2048 1024 512 256 128
Understanding BPDUs
Creating the Spanning Tree Topology
Election of the Root Bridge
Rapid PVST+ Overview
Understanding Rapid PVST+
Rapid PVST+ Flag Byte in Bpdu
Rapid PVST+ BPDUs
Proposal and Agreement Handshaking for Rapid Convergence
Proposal and Agreement Handshake
Protocol Timers
Port Roles
Variable Description
Rapid PVST+ Port State Overview
Port States
Blocking State
Synchronization of Port Roles
Enabled Blocking Learning Yes Forwarding Disabled
Operational Status Port State
Topology?
Processing Superior Bpdu Information
Port Cost
Spanning-Tree Dispute Mechanism
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
Spanning-tree mst max-ageconfiguration commands
Configuring a Secondary Root Bridge
Vlan vlan-list port-priority priority
Configuring the Rapid PVST+ Port Priority
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
Configuring the Rapid PVST+ Hello Time for a Vlan
Switchconfig# spanning-tree vlan
Vlan-range hello-time hello-time
Configuring the Rapid PVST+ Maximum Age Time for a Vlan
Configuring the Rapid PVST+ Forward Delay Time for a Vlan
Specifying the Link Type
Vlan-range forward-time forward-time
Switch# clear spanning-tree detected-protocol
Verifying Rapid PVST+ Configurations
Switch# show running-config spanning-tree all
Restarting the Protocol
Switch# show spanning-tree options
Spanning tree configuration
This example shows how to display spanning tree status
OL-26590-01
Configuring Multiple Spanning Tree
Information About MST
MST Overview
MST BPDUs
MST Regions
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
MST Regions, Cist Regional Roots, and CST Root
MST Terminology
Boundary Ports
Hop Count
MST Boundary Ports
Spanning-Tree Dispute Mechanism
Interoperability with Ieee 802.1D
Port Cost and Port Priority
MST Configuration Guidelines
Configuring MST
You must enable MST Rapid PVST+ is the default
Enabling MST
Switchconfig# spanning-tree mode mst
Entering MST Configuration Mode
Switchconfig# no spanning-tree mode mst
Mst configuration
Switchconfig# spanning-tree mst
Specifying the MST Name
Spanning-tree mst
Specifying the MST Configuration Revision Number
Specifying the Configuration on an MST Region
Instance-id vlan vlan-range
Version
Name
Default MSTI, which is the Cist
This example shows how to map Vlan 200 to Msti
Mapping and Unmapping VLANs to MST Instances
Synchronize
Configuring the Root Bridge
Same Msti and their associated primary Vlan
For all private VLANs
104
Configuring the Port Priority
Switchconfig# no spanning-tree Optional
Mst instance-id root
Configuring the Switch Priority
Configuring the Port Cost
Configuring the Hello Time
Configures the hello time for all MST instances. The hello
Hello-time seconds
Configuring the Forwarding-Delay Time
Configuring the Maximum-Aging Time
Switch is alive. For seconds, the range is from 1 to 10,
Configuring Pvst Simulation Globally
Configuring the Maximum-Hop Count
Mst max-age seconds
Max-hops hop-count
Configuring Pvst Simulation Per Port
Switchconfig-if#spanning-tree mst simulate pvst disable
Restarts MST on entire switch or
Verifying MST Configurations
Command
Specified interfaces
About STP Extensions
Configuring STP Extensions
Information About STP Extensions
Understanding STP Port Types
Understanding Bpdu Guard
Understanding Bridge Assurance
Default Enable Disable Enabled/Disabled
Is disabled
Understanding Bpdu Filtering
Port returns to
Understanding Root Guard
Understanding Loop Guard
Configuring STP Extensions
STP Extensions Configuration Guidelines
Configuring Spanning Tree Port Types Globally
Port type network default
Port type edge default
Switchconfig-if# spanning-tree
Switchconfig# interface type
Port type edge
Edge ports. Edge ports immediately transition to
Ports. If you enable Bridge Assurance, it automatically
Enabling Bpdu Guard Globally
Port type network
Enabling Bpdu Guard on Specified Interfaces
Enables Bpdu Filtering by default on all
Switchconfig-if# no spanning-tree bpduguard
Edge bpdufilter default
Filtering is disabled by default
Bpdufilter enable disable
Enabling Bpdu Filtering on Specified Interfaces
Bpdufilter
Normal and network ports. By default, global Loop
Loopguard default
Guard is disabled
Enabling Loop Guard Globally
Guard loop root none
Verifying STP Extension Configuration
126
Configuring Global Lldp Commands
Configuring Lldp
Ensure that the Lldp feature is enabled on the switch
Holdtime reinit timer
Optionalswitch# show lldp Displays Lldp configurations
Transmit
Configuring Interface Lldp Commands
This example shows how to display Lldp counters
This example shows how to display Lldp timer information
Configuring MAC Addresses
Configuring the MAC Address Table
Configuring a Static MAC Address
Information About MAC Addresses
Switchconfig-# no mac-address-table static
Configuring the Aging Time for the MAC Table
Switch# configure terminal Enters global configuration mode
Macaddress vlan vlan-id
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
Information About Igmp Snooping
Configuring Igmp Snooping
IGMPv1 and IGMPv2
Igmp Snooping Switch
IGMPv3
Igmp Snooping Querier
Igmp Forwarding
Parameter Description
Configuring Igmp Snooping Parameters
No ip igmp snooping mrouter vpc-peer-link
No ip igmp snooping mrouter
Snooping
Snooping fast-leave
Snooping explicit-tracking
Last-member-query-interval
Snooping querier IP-address
141
Verifying Igmp Snooping Configuration
142
Information About Traffic Storm Control
Configuring Traffic Storm Control
Broadcast Suppression
Traffic Storm Guidelines and Limitations
Switchconfig-if# storm-control broadcast
Configuring Traffic Storm Control
Configures traffic storm control for traffic
On the interface. The default state is
Default Traffic Storm Settings
Traffic Storm Control Example Configuration
Verifying Traffic Storm Control Configuration
Parameters Default
D E
Mstp Cist root 93 CIST, described 91 CST 91
Rstp 68, 71, 75, 89 active topology 71 Bpdu
VLANs
Adding ports to Private Configuring