Describing The STP: Implementing Spanning Tree
Describing The STP: Implementing Spanning Tree
Transparent Bridging
Bridge loops can occur any time there is a redundant path or loop
in the bridge network.
802.1D STP
Configured root switch
Redundant switch links
Optimal path selection
Bridge ID with
the Extended
System ID
215 4
bits
Priority
12 bits
20
VLAN Number
Link Speed
10 Gbps
1 Gbps
100 Mbps
19
10
10 Mbps
100
100
Enhancements to STP
PortFast
Per VLAN Spanning Tree+ (PVST+)
Rapid Spanning Tree Protocol (RSTP)
Multiple Spanning Tree Protocol (MSTP)
MSTP is also known as Multi-Instance Spanning Tree
Protocol (MISTP) on Cisco Catalyst 6500 switches and
above
Per VLAN Rapid Spanning Tree (PVRST)
Describing PortFast
Configuring PortFast
Configuring
spanning-tree portfast (interface command)
or
spanning-tree portfast default (global command)
enables PortFast on all nontrunking ports
Verifying
show running-config interface fastethernet 1/1
IEEE Documents
IEEE 802.1D
IEEE 802.1Q
IEEE 802.1w
IEEE 802.1s
IEEE 802.1t
Summary
Transparent bridges require no client configuration.
A bridge loop may occur when there are redundant paths
between switches.
A loop free network eliminates redundant paths between
switches.
The 802.1D protocol establishes a loop-free network.
The root bridge is a reference point for STP.
Each STP port will host a specific port role.
Enhancements now enable STP to converge more quickly
and run more efficiently.
Implementing RSTP
Verifying
show spanning-tree vlan 101
Debugging
debug spanning-tree
Verifying PVRST
Switch# show spanning-tree vlan 30
VLAN0030
Spanning tree enabled protocol rstp
Root ID Priority 24606
Address 00d0.047b.2800
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24606 (priority 24576 sys-id-ext
30)
Address 00d0.047b.2800
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
-------- ----- --- --- -------- ---Gi1/1
Desg FWD 4
128.1
P2p
Gi1/2
Desg FWD 4
128.2
P2p
Gi5/1
Desg FWD 4
128.257
P2p
Summary
RSTP provides faster convergence than 802.1D STP when topology changes
occur.
RSTP defines three port states: discarding, listening, and forwarding.
RSTP defines five port roles: root, designated, alternate, backup, and disabled.
Edge ports forward while topology changes occur.
RSTP makes use of two link typesP2P and shared.
802.1w uses the BPDU differently from 802.1D.
Convergence results from the proposal and agreement process conducted
switch by switch.
The RSTP topology change notification process differs from 802.1D.
Various commands are used to configure and verify PVRST.
PVRST enables RSTP while still maintaining PVST.
Implementing MSTP
MST Regions
Configuring MSTP
Switch(config)#spanning-tree mst configuration
Verifying MSTP
Role
---Back
Desg
Boun
Sts
--BLK
FWD
FWD
Cost
--------1000
200000
200000
Prio.Nbr
-------240.196
128.197
128.240
Summary
MSTP reduces the encumbrance of PVST by allowing a
single instance of spanning tree to run for multiple VLANs.
An MST region is a group of MSTP switches that appears as
a single virtual bridge to adjacent CST and MSTP regions.
Extended system ID ensures that VLAN ID or MSTP instance
can be carried in the Bridge ID field of a BPDU.
An MSTP region requires an IST and an arbitrary number of
MSTP instances as it connects to an 802.1Q network at the
MST region border.
MSTP is configured with a unique set of commands.
MSTP implementation requires configuration and verification
using specific configuration and show commands.
EtherChannel
Logical aggregation of
similar links
Load balances
Viewed as one logical port
Redundancy
LACP
IEEE 802.3ad standard
Verify
show interfaces fastethernet 0/1 etherchannel
show etherchannel 1 port-channel
show etherchannel 1 summary
Verifying EtherChannel
Switch#show running-config interface port-channel num
S
A
d
Timers: H
S
Local information:
Port
Gi0/9
Flags State
SC
U6/S7
Timers
H
Hello
Partner PAgP
Interval Count
Priority
30s
1
128
Learning Group
Method Ifindex
Any
15
Partner's information:
Port
Gi0/9
Partner
Name
DSW122
Partner
Device ID
0005.313e.4780
Partner
Port
Gi0/9
Partner Group
Age Flags
Cap.
18s SC
20001
EtherChannel Guidelines
Switch#show run
interface FastEthernet0/9
description DSW121 0/9-10 - DSW122 0/9-10
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,21-28
switchport mode trunk
switchport nonegotiate
duplex full
speed 100
channel-group 2 mode desirable
!
interface FastEthernet0/10
description DSW121 0/9-10 - DSW122 0/9-10
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,21-28
switchport mode trunk
switchport nonegotiate
duplex full
speed 100
channel-group 2 mode desirable
Summary
EtherChannel increases bandwidth and provides redundancy
by aggregating individual links between switches.
EtherChannel can be dynamically configured between
switches using either PAgP or LACP.
Etherchannel is configured and verified using a variety of
show commands.
Best practices should be followed for EtherChannel
configuration.
EtherChannel load balances traffic over all the links in the
bundle.
Module Summary
STP protects the network from Layer 2 frames that might
loop.
Through the use of specific port states, port roles, and link
types, RSTP quickly adapts to network topology transitions.
MSTP reduces the burden of excessive STP traffic and
CPU processing.
EtherChannel adds redundancy and creates high-bandwidth
connections between switches.