Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PortFast
Forwarding
Learning
Blocking
ListeningState
State
State
Powered
On
Im adding
any
addresses on
this port to
my MAC
Address
Table.
Configuring Portfast
Access2(config)#interface range fa 0/10 - 24
Access2(config-if-range)#switchport mode access
Access2(config-if-range)#spanning-tree portfast
OR
Access2(config)#spanning-tree portfast default
to a single host.
If hubs or switches are connected to the interface when PortFast is
enabled, temporary bridging loops can occur.
If a loop is detected on the port, it will move into Blocking state.
BPDU
Blocking and
now listening
to BPDUs
X
Portfast
Forwards
BPDUs to
other
switches.
STP Reconvergence?
Even though PortFast is enabled, the interface will listen for BPDUs.
A port configured with PortFast will go into blocking state if it receives a Bridge
Protocol Data Unit (BPDU).
This could lead to false STP information that enters the switched network and
causes unexpected STP behavior.
Newly connected switch could advertise itself as the root.
BPDU Guard: Developed to protect integrity of switch ports with PortFast enabled
but also keeps maintains STP integrity by disallowing unauthorized switches.
5
BPDU
|
No BPDUs sent
Portfast &
BPDU Guard
Root Guard
Protect
Protect
Potential Root
Potential Root
Root Guard
UplinkFast must
be disabled
because it
cannot be used
with root guard.
Distribution1(config)#interface fa 0/3
Distribution1(config-if-range)#spanning-tree
Distribution1(config)#interface gig 0/2
Distribution1(config-if-range)#spanning-tree
Distribution2(config)#interface fa 0/3
Distribution2(config-if-range)#spanning-tree
Distribution2(config)#interface gig 0/1
Distribution2(config-if-range)#spanning-tree
guard root
guard root
guard root
guard root
Root Guard
Root
Guard
STP
I will
Inconsistent
now transition to
listening
State no
sate,
traffic
then
is learning
state, passed.
then forwarding sate.
Superior
BPDU
I no longer
want to be
root. I have
beento
I want
reconfigured
be root
to be a nonbridge!
root
bridge.
UplinkFast
10
UplinkFast
Root
UplinkFast must have direct knowledge of the link failure in order to move a blocked
port into a forwarding state.
When Access 1 detects a link failure on the currently active link, the root port (a direct
link failure), UplinkFast unblocks the blocked port on Access 1 and transitions it to the
forwarding state without going through the listening and learning states
If Root Port fails, next-lowest path cost is unblocked and used without delay
This switchover occurs within 1 second.
11
UplinkFast
Access1(config)#spanning-tree uplinkfast
12
Blocking
When link first
comes up
Listening
Forward delay = 15 sec
Learning
Forward delay = 15 sec
Forwarding
Port states
Operational
STP
RSTP
Enabled
Blocking
Discarding
Enabled
Listening
Discarding
Enabled
Learning
Learning
Enabled
Forwarding
Forwarding
Disabled
Disabled
Discarding
Alternate port
takes over if
Des port fails.
18
Multiple Spanning Tree (MST) extends the IEEE 802.1w RST algorithm to multiple
spanning trees.
The main purpose of MST is to:
Reduce the total number of spanning-tree instances to match the physical topology of
the network
Thus reduce the CPU cycles of a switch.
Allows the network administrator to configure the exact number of instances.
PVST+ runs a single instance of STP for each VLAN and does not take into
consideration the physical topology.
May have 1,000 VLANs but only 2 different topologies (2 different Root Bridges).
PVST+ will still create 1,000 instances of STP
MST, on the other hand, uses a minimum number of STP instances to match the
number of physical topologies present.
May have 1,000 VLANs but only 2 different topologies (2 different Root Bridges).
MST will let you specify only 2 instances of STP.
20
MST Regions
MST Region is a group of switches placed under a common administration (like an AS).
In most networks a single MST region is sufficient.
A single MST Region can handle 15 STP instances (topologies).
Within a region, all switches must run the instance of MST as defined by:
MST configuration name (32 characters)
MST configuration revision number ( 0 to 65,535)
MST instance-to-VLAN mapping table (4,096 entries)
MST was designed to work with all forms of STP.
IST (Internal Spanning Tree) instance runs to work out a loop-free topology inside the
MST Region.
IST presents the entire MST region as a single virtual switch (bridge) to the CST (802.1D)
outside.
21
Current RSTP
23
Configuring and
Verifying MST
Configure SW1 as primary root bridge for MST instance 1 and secondary root
for instance 2
26
SW2(config)#
SW2(config)#
--------SW1(config)#
----------SW2(config)#
----------SW3(config)#
Configure SW2 as secondary root bridge for MST instance 1 and primary root
for instance 2.
Change STP mode to MST on all three switches
27
MST runs three instances: the default MSTI0 and the two you configured
(MSTI1 and MSTI2).
28
MST
Example 2
Enables MST
Distribution1(config)# spanning-tree mode mst
Distribution1(config)# spanning-tree mst configuration
Distribution1(config-mst)# name region1
Configure Region
and MST instances
Distribution1(config-mst)# revision 10
Distribution1(config-mst)# instance 1 vlan 10, 30, 100
Distribution1(config-mst)# instance 2 vlan 20, 40, 200
Distribution1(config-mst)# exit
Configure Root Bridge
Distribution1(config)# spanning-tree mst 0-1 root primary
Distribution1(config)# spanning-tree mst 2 root secondary
30
MST
Example 2
Enables MST
Distribution2(config)# spanning-tree mode mst
Distribution2(config)# spanning-tree mst configuration
Distribution2(config-mst)# name region1
Configure Region
and MST instances
Distribution2(config-mst)# revision 10
Distribution2(config-mst)# instance 1 vlan 10, 30, 100
Distribution2(config-mst)# instance 2 vlan 20, 40, 200
Distribution2(config-mst)# exit
Configure Root Bridge
Distribution2(config)# spanning-tree mst 2 root primary
Distribution2(config)# spanning-tree mst 0-1 root secondary
31