© 2003, Cisco Systems, Inc. All Rights Reserved
© 2003, Cisco Systems, Inc. All Rights Reserved
© 2003, Cisco Systems, Inc. All Rights Reserved
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-3
Link Redundancy
• Redundant
connections from
access layer to
distribution layer
• Redundant
connections from
distribution layer to
core layer
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-4
Link Redundancy
Issue of L2 Redundancy
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-5
Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-6
Spanning Tree
A switch is
elected as the root.
Root selection is
based on the lowest
configured priority of
any switch 0-65535.
A ‘tree-like’
loop-free topology
is established from
the perspective of
the root bridge.
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-7
Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-8
Spanning Tree
• Blocking
• Listening
• Learning
• Forwarding
• Disabled (off)
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-9
Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-10
Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-11
Spanning Tree
Per VLAN Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-12
Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-13
Spanning Tree
• PortFast
• UplinkFast
• BackboneFast
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-14
Spanning Tree
PortFast
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-15
Spanning Tree
Benefits of PortFast
Console> (enable) set spantree portfast 4/1 enable Warning: Spantree port fast start should only be enabled on
ports connected
to a single host. Connecting hubs, concentrators, switches, bridges, etc. to a fast start port can cause temporary
spanning tree loops. Use with caution.
Spantree port 4/1 fast start enabled.
Console> (enable) show spantree 4/1
Port Vlan Port-State Cost Priority Fast-Start Group-method
--------- ---- ------------- ----- -------- ---------- ------------
4/1 1 blocking 19 20 enabled
4/1 100 forwarding 10 20 enabled
4/1 521 blocking 19 20 enabled
4/1 522 blocking 19 20 enabled
4/1 523 blocking 19 20 enabled
4/1 524 blocking 19 20 enabled
4/1 1003 not-connected 19 20 enabled
4/1 1005 not-connected 19 4 enabled
Console> (enable)
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-16
Spanning Tree
Uplink Fast
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-18
Spanning Tree
BackboneFast
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-19
Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-20
Spanning Tree
STP Timer Tuning
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-21
Spanning Tree
Configuration step:
Console> (enable) set spantree root vlan dia diameter hello hello_time
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-22
Rapid Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-23
Rapid Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-24
Rapid Spanning Tree
Port States
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-25
Rapid Spanning Tree
RSTP Roles
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-26
Rapid Spanning Tree
Modified BPDU
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-27
Rapid Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-28
Rapid Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-29
Rapid Spanning Tree
Agreement/Proposal
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-30
Rapid Spanning Tree
Integrated UplinkFast
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-31
Rapid Spanning Tree
Integrated BackboneFast
Inferior BPDU
“I am the root.”
• B loses its root port and sends a BPDU to C claiming that it is the
root.
• C is immediately designated as blocking and sends a proposal to B to
move to forwarding ASAP.
• B replies with an agreement and C moves its port to forwarding.
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-32
Rapid Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-33
Rapid Spanning Tree
802.1D Topology Change
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-34
Rapid Spanning Tree
Switch(config)#
spanning-tree mode {pvst | mst | rapid-pvst}
Configure a spanning-tree mode. All stack members run the same version of Spanning
Tree.
•Select pvst to enable PVST+ (the default setting).
•Select mst to enable MSTP (and RSTP).
•Select rapid-pvst to enable rapid PVST+.
Switch(config)#
spanning-tree link-type point-to-point
If the local port becomes a designated port, the switch negotiates with the remote port
and rapidly transitions the local port to the forwarding state.
Switch#
clear spanning-tree detected-protocols
If any port on the switch is connected to a port on a legacy 802.1D switch, restart the
protocol migration process on the entire switch.
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-35
Rapid Spanning Tree
Protocol Migration
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-36
Multiple Spanning Tree
Why MST?
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-37
Multiple Spanning Tree
Contrast with 802.1Q
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-40
Multiple Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-41
Multiple Spanning Tree
MST Region Boundary
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-42
Multiple Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-43
Multiple Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-44
Multiple Spanning Tree
MST Region: a Virtual Bridge
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-45
Multiple Spanning Tree
MST region: a Virtual Bridge
CST
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-46
Multiple Spanning Tree
MSTIs (2)
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-47
Multiple Spanning Tree
MSTIs (3)
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-48
Multiple Spanning Tree
MSTIs (4)
The IST instance exists on all ports,
regardless of VLAN mapping.
No connectivity between PC A and PC B. Why?
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-51
Multiple Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-52
Multiple Spanning Tree
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-53
Multiple Spanning Tree
Interaction with PVST(+) Bridges (2)
Must be either
blocking or
forwarding for all
Block for all VLANS
but VLAN 2
IST/CST interaction
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-56
Multiple Spanning Tree
Switch(config)#
spanning-tree mst configuration
Enter MST configuration mode.
Switch(config-mst)#
instance instance-id vlan vlan-range
For instance-id, the range is 1 to 15. For vlan vlan-range, the range is 1 to 4094.
Switch(config-mst)#
name name
Switch(config)# spanning-tree mst configuration
Switch(config-mst)# instance 1 vlan 10-20
Switch(config-mst)# name region1
Switch(config-mst)# revision 1
Switch(config-mst)# show pending
Pending MST configuration
Name [region1]
Revision 1
Instance Vlans Mapped
-------- ----------------------------
0 1-9,21-4094
1 10-20
------------------------------------------
Switch(config-mst)# exit
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-58
Plan for High Availability at the Data
Link Layer
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-59
Plan for High Availability at the Data
Link Layer (Cont.)
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-60
Summary
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-61
© 2003, Cisco Systems, Inc. All rights reserved. AEVAP Single Site—3b-62