You are on page 1of 12

STP

VL1 VL2

trunk

trunk

VL1 VL2

trunk

VL1 VL2

brid
PerVLAN
ge-i
d (
brid
VL1+
ge-i
pri
d (p
+ MA
rior
C)
ity
+ MA
C)
Root
BPDU
trunk
VL1 VL2

brid
STP
ge

trunk

brid -id (V
L2
ge-i
d (p + pri
+ MA
rior
C)
ity
+ MA
C)
BPDU
Root

VL1 VL2

trunk

VL1 VL2

PVST+ Priority

STP
Bridge
Priority

MAC Address

PVST+
BridgeVLAN ID
Bridge
Priority
Priority
12 bit

MAC Address

PVST+ Priority

STP
32768
32768+1

PVST+
VLAN ID
32768
32768+4096
12 bit

MAC Address

MAC Address

PVST+ Priority

32768
1
1

0
0

4096
1

Bridge
Priority

VLAN ID
12 bit

MAC Address

Switch(config)# spanning-tree vlan 1 priority 20480


Switch# show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID
Priority
20481
Address
0004.9A2B.056C
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID

Priority
Address
Hello Time
Aging Time

Interface
---------------Fa0/1
Fa0/2
Switch#

Role
---Desg
Desg

Sts
--FWD
FWD

20481 (priority 20480 sys-id-ext 1)


0004.9A2B.056C
2 sec Max Age 20 sec Forward Delay 15 sec
20
Cost
--------19
19

Prio.Nbr
-------128.1
128.2

Type
---------------------------P2p
P2p

Switch(config)# spanning-tree vlan 3 priority 20480


Switch# show spanning-tree vlan 3
VLAN0003
Spanning tree enabled protocol ieee
Root ID
Priority
20483
Address
0004.9A2B.056C
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID

Priority
Address
Hello Time
Aging Time

Interface
---------------Fa0/1
Fa0/2
Switch#

Role
---Desg
Desg

Sts
--FWD
FWD

20483 (priority 20480 sys-id-ext 3)


0004.9A2B.056C
2 sec Max Age 20 sec Forward Delay 15 sec
20
Cost
--------19
19

Prio.Nbr
-------128.1
128.2

Type
---------------------------P2p
P2p

spanning-tree vlan 1 priority 28673


% Bridge Priority must be in increments of 4096.
% Allowed values are:
0
4096 8192 12288 16384 20480 24576 28672
32768 36864 40960 45056 49152 53248 57344 61440
spanning-tree vlan 1 priority 28672
root

Sw2

Sw3

Pri 4096 (PVST) > Pri 0 (STP)

Priority

DS1
spanning-tree vlan 1 root primary

DS2
spanning-tree vlan 1 root secondary

AS1

Cost

root

RP

4109
=
C

RPC=38
Sw2

Sw(config-if)# spanning-tree vlan 1 cost 40

Sw3

Sw# show running-config spanning-tree [all]


Sw# show spanning-tree brief
Sw# show spanning-tree vlan 30
VLAN0030
Spanning tree enabled protocol ieee

/pvst+

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
-------- ----Gi1/1
Desg
Gi1/2
Desg
Gi5/1
Desg
Gi5/2
Desg

Sts Cost Prio.Nbr


--- --- -------LIS 4
128.1
BLK 4
128.2
LRN 4
128.257
FWD 4
128.258

Type
---P2p
P2p
P2p
P2p

Rapid STP

STP
802.1d
RSTP 802.1w

PVST+
PVRST+

Sw(config)# spanning-tree mode rapid-pvst

You might also like