Académique Documents
Professionnel Documents
Culture Documents
System Networking
Agenda
Spanning Tree overview
RSTP configuration guide
PVRST configuration guide
MSTP configuration guide
IBM Confidential
System Networking
IBM Confidential
System Networking
RSTP Configuration
Switch 1
MAC: 08:17:f4:8c:b5:00
25
26
27
Vlan 200
17
18
17
1
Switch 2
MAC: 08:17:f4:a2:6c:00
1
Switch 3
MAC: 08:17:f4:a2:71:00
IBM Confidential
System Networking
RSTP Configuration
Using configuration command for STP 1, we can change the default bridge priority for switch1 (using a
lower priority value in this case, so that it will be the Root Bridge):
switch1(config)#spanning-tree stp 1 bridge priority 9000
RSTP: bridge priority 9000 is changed to 8192
Using port configuration commands for STP1, we can change the default port priority/port path cost.
On switch1 port 26 we lower the default port priority, so that root port on switch2 will change from port 17 to port 18:
switch1(config)#interface port 26
switch1(config-if)#spanning-tree stp 1 priority 100
RSTP: port 26 priority 100 is changed to 96
RSTP Troubleshooting:
RSTP information on switch1 (Root Bridge):
switch1(config)#sh spanning-tree
-----------------------------------------------------------------Pvst+ compatibility mode enabled
-----------------------------------------------------------------Spanning Tree Group 1: On (RSTP)
VLANs: 1 5 17 25 27 55 64 100 200 4095
Current Root:
Path-Cost Port Hello MaxAge FwdDel
2000 08:17:f4:8c:b5:00
0
0 2 20 15
System Networking
RSTP Troubleshooting
switch2#sh spanning-tree
-----------------------------------------------------------------Pvst+ compatibility mode enabled
-----------------------------------------------------------------Spanning Tree Group 1: On (RSTP)
VLANs: 1 13 17 26 78 200 1000 4095
switch3(config)#sh spanning-tree
-----------------------------------------------------------------Pvst+ compatibility mode enabled
-----------------------------------------------------------------Spanning Tree Group 1: On (RSTP)
VLANs: 1 13 23 27 78 200 1000 4095
Current Root:
Path-Cost Port Hello MaxAge FwdDel
2000 08:17:f4:8c:b5:00 2000
18 2 20 15
Current Root:
Path-Cost Port Hello MaxAge FwdDel
2000 08:17:f4:8c:b5:00 2000
17 2 20 15
Port
Prio Cost State Role Designated Bridge
Des Port Type
------------- ---- ---------- ----- ---- ---------------------- -------- ---------1
128
2000! FWD DESG 8000-08:17:f4:a2:6c:00 8001
P2P
17
128
2000! DISC ALTN 2000-08:17:f4:8c:b5:00 8019
P2P
18
128
2000! FWD ROOT 2000-08:17:f4:8c:b5:00 601a
P2P
MGTB
0
0 FWD *
* = STP turned off for this port.
! = Automatic path cost.
switch2#sh spanning-tree blockedports
Instance Blocked Port List
---------- ---------------------1
17
switch2#sh spanning-tree root
Instance
Root ID
Path-Cost Hello MaxAge FwdDel Root Port
---------- ---------------------- --------- ----- ------ ------ -----------1
2000 08:17:f4:8c:b5:00 2000
2 20 15
18
IBM Confidential
Port
Prio Cost State Role Designated Bridge
Des Port Type
------------- ---- ---------- ----- ---- ---------------------- -------- ---------1
128
2000! DISC ALTN 8000-08:17:f4:a2:6c:00 8001
P2P
17
128
2000! FWD ROOT 2000-08:17:f4:8c:b5:00 801b
P2P
MGTB
0
0 FWD *
* = STP turned off for this port.
! = Automatic path cost.
switch3(config)#sh spanning-tree blockedports
Instance Blocked Port List
---------- ---------------------1
1
Number of blocked ports (segments) in the system :1
switch3(config)#sh spanning-tree root
Instance
Root ID
Path-Cost Hello MaxAge FwdDel Root Port
---------- ---------------------- --------- ----- ------ ------ -----------1
2000 08:17:f4:8c:b5:00 2000
2 20 15
17
System Networking
System Networking
PVRST Configuration
Switch ports can not be added directly to STG; they have to be first added to VLANs
and then VLANs are assgined to STGs;
STG1 is the default STG and it is enabled by default; Default VLAN1 is included in STG1
be default;
1.
2.
IBM Confidential
System Networking
For VLAN number in range 1-127, VASA will add them in STG with same number, if it is
available (VLAN x-STG x);
For VLAN numbers higher than 127, VASA will assign them to a STG using a modulus
calculation;
If there is no available STG (with no VLANs assigned) when a VLAN is created, the VLAN
will be added to STG1
If VASA is disabled, when a new VLAN is created it will be added to STG1 and it can be
manually added to a different STG;
switch2(config)#vlan 50
Warning: VLAN 50 was assigned to STG 50.
VLAN 50 is created.
switch2(config-vlan)#vlan 147
Warning: VLAN 147 was assigned to STG 20.
VLAN 147 is created.
10
IBM Confidential
System Networking
1.
VLANs can be manually assigned to STGs in both cases when VASA is enabled or disabled
Example for VLAN-STG assigment-VLANs can be added to STGs in 2 ways:
Using the global config command:
11
When a VLAN is added to a new STG, it is removed from its previous STG
System Networking
Vlan2/stg1
Root bridge: switch1
Switch 2
MAC: 08:17:f4:a2:6c:00
17
25
27
Vlan100/stg100
Root bridge: switch2
18
17
1
26
Switch 3
MAC: 08:17:f4:a2:71:00
Vlan100/stg100
Configure STP mode to PVRST for switch1: Root bridge: switch2
IBM Confidential
System Networking
switch1(config)#interface port 27
switch1(config-if)#switchport access vlan 100
VLAN number 100 with name "VLAN 100" will be created.
Port 27 is an Untagged/Access-mode port and its PVID/NativeVLAN is changed from 1 to 100
Warning: VLAN 100 was assigned to STG 100.
System Networking
PVRST troubleshooting
PVRST information for switch2/stg 100; switch2 is the root bridge for stg 100:
switch2(config)#sh spanning-tree stp 100 inf
-----------------------------------------------------------------Spanning Tree Group 100: On (PVRST)
VLANs: 100
Current Root:
Path-Cost Port Hello MaxAge FwdDel
3064 08:17:f4:a2:6c:00
0
0 2
20
15
Parameters: Priority Hello MaxAge FwdDel Aging Topology Change Counts
12388
2
20
15
300
1
Port
Prio Cost State Role Designated Bridge
Des Port Type
------------- ---- ---------- ----- ---- ---------------------- -------- ---------1
128
2000! FWD DESG 3064-08:17:f4:a2:6c:00
8001
P2P
! = Automatic path cost.
2013 IBM Corporation
System Networking
PVRST Troubleshooting
Switch2/stg100 root bridge, blocked ports and also
configuration:
Instance
Root ID
Path-Cost Hello MaxAge FwdDel
Root Port
---------- ---------------------- --------- ----- ------ ------ -----------1
2001 08:17:f4:8c:b5:00 2000
2
20
15
18
100
3064 08:17:f4:a2:6c:00 0
2
20
15
0
111
806f 08:17:f4:a2:6c:00 0
2
20
15
0
128
8080 08:17:f4:a2:6c:00 0
2
20
15
0
switch2(config)#sh spanning-tree blockedports
Instance Blocked Port List
---------- ---------------------1
17
Number of blocked ports (segments) in the system :1
switch2(config)#sh spanning-tree stp 100
-----------------------------------------------------------------Current Spanning Tree Group 100 settings: ON (PVRST)
Bridge params: Priority Hello MaxAge FwdDel Aging
12288
2
20
15
300
VLANs: 100
STP Ports:
Port 1 : Priority 128, Path Cost 0, auto
Current Root:
Path-Cost Port Hello MaxAge FwdDel
3064 08:17:f4:a2:6c:00 2000
1 2 20 15
Parameters: Priority Hello MaxAge FwdDel Aging Topology Change
Counts
32868
2
20
15 300
3
Port
Prio Cost State Role Designated Bridge
Des Port
Type
------------- ---- ---------- ----- ---- ---------------------- -------- ---------1
128
2000! FWD ROOT 3064-08:17:f4:a2:6c:00 8001
P2P
17
128
2000! FWD DESG 8064-08:17:f4:a2:71:00 8011
P2P
! = Automatic path cost.
switch3(config)#sh spanning-tree root
Instance
Root ID
Path-Cost Hello MaxAge FwdDel Root Port
---------- ---------------------- --------- ----- ------ ------ -----------1
8001 08:17:f4:a2:71:00 0
2 20 15
0
100
3064 08:17:f4:a2:6c:00 2000
2 20 15
1
128
8080 08:17:f4:a2:71:00 0
2 20 15
0
System Networking
PVRST Troubleshooting
Switch1/stg 100 information, root bridge and
stg100 configuration:
switch1(config)#sh spanning-tree stp 100 inf
----------------------------------------------------------------------------------------------------------------------------------Spanning Tree Group 100: On (PVRST)
VLANs: 100
Current Root:
Path-Cost Port Hello MaxAge FwdDel
3064 08:17:f4:a2:6c:00
4000
27 2
20
15
Parameters: Priority Hello MaxAge FwdDel Aging Topology
Change Counts
32868
2
20
15
300
1
Port
Prio Cost State Role Designated Bridge
Des
Port Type
------------- ---- ---------- ----- ---- ---------------------- -------- ---------27
128
2000! FWD ROOT 8064-08:17:f4:a2:71:00
8011
P2P
! = Automatic path cost.
switch1(config)#sh spanning-tree root
Instance
Root ID
Path-Cost Hello MaxAge FwdDel
Root Port
---------- ---------------------- --------- ----- ------ ------ -----------1
2001 08:17:f4:8c:b5:00 0
2
20
15
0
100
3064 08:17:f4:a2:6c:00 4000
2
20
15
27
128
8080 08:17:f4:8c:b5:00 0
2
20
15
0
System Networking
PVRST Troubleshooting
Switch2/stg1 information, root bridge and blocked ports information; For stg1 the root bridge is switch1:
switch2(config)#sh spanning-tree stp 1 inf
-----------------------------------------------------------------Spanning Tree Group 1: On (PVRST)
VLANs: 1 2
Current Root:
Path-Cost Port Hello MaxAge FwdDel
2001 08:17:f4:8c:b5:00
2000
18 2
20
15
Parameters: Priority Hello MaxAge FwdDel Aging Topology Change Counts
32769
2
20
15
300
4
Port
Prio Cost State Role Designated Bridge
Des Port Type
------------- ---- ---------- ----- ---- ---------------------- -------- ---------17
128
2000! DISC ALTN 2001-08:17:f4:8c:b5:00
8019
P2P
18
128
2000! FWD ROOT 2001-08:17:f4:8c:b5:00
601a
P2P
! = Automatic path cost.
switch2(config)#sh spanning-tree root
Instance
Root ID
Path-Cost Hello MaxAge FwdDel Root Port
---------- ---------------------- --------- ----- ------ ------ -----------1
2001 08:17:f4:8c:b5:00 2000
2
20
15
18
100
3064 08:17:f4:a2:6c:00 0
2
20
15
0
111
806f 08:17:f4:a2:6c:00 0
2
20
15
0
128
8080 08:17:f4:a2:6c:00 0
2
20
15
0
switch2(config)#sh spanning-tree blockedports
Instance Blocked Port List
---------- ---------------------1
17
Number of blocked ports (segments) in the system :1
System Networking
Supports multiple Spanning Tree Groups and each STG may include
multiple VLANs
Bridges which are in the same region must have the following same
attributes:
Region name
Revision number
VLAN-STG mapping
1.
2.
3.
System Networking
System Networking
25
Region_1
MST2- VLAN200
MST1- VLAN100
27
Switch 3- Root
17 Bridge MST 2
17
Switch 2
24
24
26
Switch3- CIST
Regional Root
26
Region_2
IBM Confidential
System Networking
switch1(config-mst)#name region_1
switch4(config-mst)#name region_2
switch4(config-mst)#revision 100
switch4(config-mst)#exit
For each switch in the topology, switch ports are set as trunk ports and they are added to vlans 100 and
200.
Switch1:
System Networking
Then using similar commands, all the ports displayed in the topology need to be added to vlans 100 and
200 on each switch.
Note: Starting with images 7.8.1.0, the vlans mapped to mstp instances do not need to be previously
created on the switches. The vlan-stg mapping must be the same for switches in the same region, but
some of the vlans mapped to stg instances may not be created on the switch, or they can be created but
not enabled.
The switch with lowest Bridge ID in the topology will be elected CIST Root Bridge (Current Root). In this
case for switch4, the bridge priority for mst instance 0 is configured using a lower value than for rest of
switches:
For MST instance 1, the Bridge Priority will be configured using a lower value than the priority for the
other 2 switches in region_1/MST 1, so that switch1 will be the Root Bridge for MST 1:
Also for MST 2, the Bridge Priority is configured a lower value than default for switch3, so that switch 3
will be the Root Bridge for MST2:
The Regional Root for region region_1 will be the switch with the best (lowest) cost to the region of
Current Root. In this topology switch2 or switch3 will be elected as Regional Root for region_1. The
default cost to region_2 is the same for switch2 and switch3. In order to have switch3 as the Regional
Root for region_1, on switch3 it is configured cost for port24 using a lower value than default, for mst
instance 0:
switch3(config)#interface port 24
switch3(config-if)#spanning-tree mst 0 cost 1999
2013 IBM Corporation
System Networking
MSTP Troubleshooting
Switch1 mstp information for mst1, and mst2
instances. It is the Root Bridge for MST1:
Current Root:
Path-Cost Port
2000 08:17:f4:8c:b5:00
0
0
Parameters: Priority Aging Topology Change Counts
8192
300
3
Port
Prio Cost State Role Designated Bridge
Des Port Type
------------- ---- ---------- ----- ---- ---------------------- -------- ---------25
128
2000! FWD DESG 2000-08:17:f4:8c:b5:00
8019
27
128
2000! FWD DESG 2000-08:17:f4:8c:b5:00
801b
! = Automatic path cost.
switch1(config)#sh spanning-tree mst 2 inf
-----------------------------------------------------------------Mstp Digest: 0x6da4b50c4fd587757eef0356753605e1
-----------------------------------------------------------------Spanning Tree Group 2: On (MSTP)
VLANs MAPPED: 200
VLANs: 200
Current Root:
Path-Cost Port
3000 08:17:f4:a2:71:00
2000
27
Parameters: Priority Aging Topology Change Counts
32768
300
3
Port
Prio Cost State Role Designated Bridge
Des Port Type
------------- ---- ---------- ----- ---- ---------------------- -------- ---------25
128
2000! FWD DESG 8000-08:17:f4:8c:b5:00
8019
27
128
2000! FWD ROOT 3000-08:17:f4:a2:71:00
8011
! = Automatic path cost.
P2P
P2P
2013 IBM Corporation
System Networking
MSTP Troubleshooting
Current Root:
Path-Cost Port
3000 08:17:f4:a2:71:00 2000
1
Port
Prio Cost State Role Designated Bridge
Des Port Type
------------- ---- ---------- ----- ---- ---------------------- -------- ---------1
128
2000! FWD ROOT 3000-08:17:f4:a2:71:00 8001
P2P
17
128
2000! DISC ALTN 8000-08:17:f4:8c:b5:00 8019
P2P
24
128
2000! DISC ALTN 8000-08:17:f4:a2:6c:00 8018
P2P
! = Automa
Instance
Root ID
Path-Cost Hello MaxAge FwdDel Root Port
---------- ---------------------- --------- ----- ------ ------ -----------CIST
2000 00:02:f4:8c:8d:00 1999
2 20 15
1
1
2000 08:17:f4:8c:b5:00 2000
2 20 15
17
2
3000 08:17:f4:a2:71:00 2000
2 20 15
1
2013 IBM Corporation
System Networking
MSTP Troubleshooting
Switch2 CIST Information:
Type
2
2
2
System Networking
MSTP Troubleshooting
Switch 3 CIST Information:
Current Root:
Path-Cost Port MaxAge FwdDel
2000 00:02:f4:8c:8d:00
1999
24
20
15
Current Root:
Path-Cost Port MaxAge FwdDel
2000 00:02:f4:8c:8d:00
0
0 20 15