IEEE 802.1w RSTP
기존 STP의 약점인 네트워크 토폴로지 변경시 Spanning -tree 의 재계산 등의 시간을 대폭 향상
IEEE 802.1d STP 컨버전스에 비해 포트 이전이 상당히 빠른 STP
RSTP 는 BPDU 와 TCN BPDU 대신 Proposal BPDU 와 Agreenment BPDU 를 사용
SW1#spanning-tree mode rapid-pvst
SW1#do sh span vlan 1
VLAN0001
Spanning tree enabled protocol rstp ★
Root ID Priority 4097
Address 0014.1caf.a100
Cost 19
Port 24 (FastEthernet0/24)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 000e.3889.d700
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/20 Altn BLK 19 128.20 P2p Peer(STP)
Fa0/24 Root FWD 19 128.24 P2p Peer(STP)
PVST(Per VLAN Spanning-Teree) : 각각의 VLAN마다 spannig-tree 를 제공 / 최대 VLAN 128개까지 제공
why? Root Bridge 를 서로 다르게해서 Back Bridge 와 Blocking 을 다르게 설정 하려고
→각 VLAN 마다 우선순위를 다르게 설정
[실습Ⅰ VLAN 11-14 Root,Backup Bridge 수동설정]
@SW1
conf t
spanning-tree vlan 11 priority 4096 ←Root Bridge
spanning-tree vlan 13 priority 4096 ←Root Bridge
spanning-tree vlan 12 priority 16384 ←Backup Bridge
spanning-tree vlan 14 priority 16384 ←Backup Bridge
@SW3
conf t
spanning-tree vlan 11 priority 16384
spanning-tree vlan 13 priority 16384
spanning-tree vlan 12 priority 4096
spanning-tree vlan 14 priority 4096
@SW2
SW2#sh spanning-tree
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 4097
Address 0014.1caf.a100
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4097 (priority 4096 sys-id-ext 1)
Address 0014.1caf.a100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/22 Desg FWD 19 128.22 P2p Peer(STP)
Fa0/24 Desg FWD 19 128.24 P2p
VLAN0011
Spanning tree enabled protocol rstp
Root ID Priority 32779
Address 000d.bd19.4f80
Cost 19
Port 22 (FastEthernet0/22)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32779 (priority 32768 sys-id-ext 11)
Address 0014.1caf.a100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 19 128.22 P2p Peer(STP)
Fa0/24 Altn BLK 19 128.24 P2p
VLAN0012
Spanning tree enabled protocol rstp
Root ID Priority 32780
Address 000d.bd19.4f80
Cost 19
Port 22 (FastEthernet0/22)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32780 (priority 32768 sys-id-ext 12)
Address 0014.1caf.a100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 19 128.22 P2p Peer(STP)
Fa0/24 Altn BLK 19 128.24 P2p
VLAN0013
Spanning tree enabled protocol rstp
Root ID Priority 32781
Address 000d.bd19.4f80
Cost 19
Port 22 (FastEthernet0/22)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32781 (priority 32768 sys-id-ext 13)
Address 0014.1caf.a100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 19 128.22 P2p Peer(STP)
Fa0/24 Altn BLK 19 128.24 P2p
VLAN0014
Spanning tree enabled protocol rstp
Root ID Priority 32782
Address 000d.bd19.4f80
Cost 19
Port 22 (FastEthernet0/22)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32782 (priority 32768 sys-id-ext 14)
Address 0014.1caf.a100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 19 128.22 P2p Peer(STP)
Fa0/24 Altn BLK 19 128.24 P2p
<예제>
-SW1은 VLAN 100에 대해서 Root Bridge, SW2는 Backup Bridge
-SW2은 VLAN 200에 대해서 Root Bridge, SW3는 Backup Bridge
-SW3은 VLAN 300에 대해서 Root Bridge, SW1는 Backup Bridge
SW1에서 VLAN 100에 우선순위 4096 VALN 300에 우선순위 16384 설정
SW2에서 VLAN 200에 우선순위 4096 VALN 100에 우선순위 16384 설정
SW3에서 VLAN 300에 우선순위 4096 VALN 200에 우선순위 16384 설정
@SW1
SW1(config)#spanning-tree vlan 100 priority 4096
SW1(config)#spanning-tree vlan 300 priority 16384
SW1#sh spanning-tree
VLAN0100
Spanning tree enabled protocol rstp
Root ID Priority 4196
Address 000e.3889.d700
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4196 (priority 4096 sys-id-ext 100)
Address 000e.3889.d700
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/20 Desg FWD 19 128.20 P2p Peer(STP)
Fa0/24 Desg FWD 19 128.24 P2p
VLAN0200
Spanning tree enabled protocol rstp
Root ID Priority 16584
Address 000d.bd19.4f80
Cost 19
Port 20 (FastEthernet0/20)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32968 (priority 32768 sys-id-ext 200)
Address 000e.3889.d700
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/20 Root FWD 19 128.20 P2p Peer(STP)
Fa0/24 Desg FWD 19 128.24 P2p
VLAN0300
Spanning tree enabled protocol rstp
Root ID Priority 4396
Address 000d.bd19.4f80
Cost 19
Port 20 (FastEthernet0/20)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 16684 (priority 16384 sys-id-ext 300)
Address 000e.3889.d700
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/20 Root FWD 19 128.20 P2p Peer(STP)
Fa0/24 Desg FWD 19 128.24 P2p
IEEE 802.1s MSTP(Multiple Spanning-Tree Protocol)
- VLAN이 128개 초과시 사용
- 자동으로 RSTP가 사용되며 mode를 바꿔야함
vlan 1~100 ←MST 1 ←STP
vlan 101~200 ←MST 2 ←STP
@SW1, SW2, SW3
conf t
spanning-tree mode mst
SW2#sh spanning-tree
MST0 ← VLAN 0001에서 변경됨
Spanning tree enabled protocol mstp
Root ID Priority 32768
Address 000d.bd19.4f80
Cost 0
Port 22 (FastEthernet0/22)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768 (priority 32768 sys-id-ext 0)
Address 0014.1caf.a100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg FWD 200000 128.24 P2p Bound(PVST)
SW2#sh spanning-tree mst
##### MST0 vlans mapped: 1-4094 ←VLAN이 128개 초과
Bridge address 0014.1caf.a100 priority 32768 (32768 sysid 0)
Root address 000d.bd19.4f80 priority 32768 (32768 sysid 0)
port Fa0/22 path cost 0
Regional Root address 000d.bd19.4f80 priority 32768 (32768 sysid 0)
internal cost 200000 rem hops 19
Operational hello time 2 , forward delay 15, max age 20, txholdcount 6
Configured hello time 2 , forward delay 15, max age 20, max hops 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg FWD 200000 128.24 P2p Bound(PVST)
→ MST 는 따로 분산처리가 되지 않아 그룹을 만들어야함
@SW1, SW2, SW3
conf t
vlan 11
vlan 12
vlan 13
vlan 14
@SW2
conf t
spanning-tree mode mst
spanning-tree mst configuration
revision 1
name CISCO
instance 1 vlan 11,13 ←수정할때 1씩 증가하고 VLAN 11,13을 한그룹으로 묶음
instance 2 vlan 12,14
!
end
SW2#sh spanning-tree
MST0
Spanning tree enabled protocol mstp
Root ID Priority 32768
Address 000d.bd19.4f80
Cost 0
Port 22 (FastEthernet0/22)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768 (priority 32768 sys-id-ext 0)
Address 0014.1caf.a100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg BLK 200000 128.24 P2p Bound(PVST)
MST1
Spanning tree enabled protocol mstp
Root ID Priority 32769
Address 000d.bd19.4f80
Cost 200000
Port 22 (FastEthernet0/22)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 0014.1caf.a100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg BLK 200000 128.24 P2p Bound(PVST)
MST2
Spanning tree enabled protocol mstp
Root ID Priority 32770
Address 000d.bd19.4f80
Cost 200000
Port 22 (FastEthernet0/22)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)
Address 0014.1caf.a100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg BLK 200000 128.24 P2p Bound(PVST)
SW2#sh spanning-tree mst
##### MST0 vlans mapped: 1-10,15-4094
Bridge address 0014.1caf.a100 priority 32768 (32768 sysid 0)
Root address 000d.bd19.4f80 priority 32768 (32768 sysid 0)
port Fa0/22 path cost 0
Regional Root address 000d.bd19.4f80 priority 32768 (32768 sysid 0)
internal cost 200000 rem hops 19
Operational hello time 2 , forward delay 15, max age 20, txholdcount 6
Configured hello time 2 , forward delay 15, max age 20, max hops 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg LRN 200000 128.24 P2p Bound(PVST)
##### MST1 vlans mapped: 11,13
Bridge address 0014.1caf.a100 priority 32769 (32768 sysid 1)
Root address 000d.bd19.4f80 priority 32769 (32768 sysid 1)
port Fa0/22 cost 200000 rem hops 19
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg FWD 200000 128.24 P2p Bound(PVST)
##### MST2 vlans mapped: 12,14
Bridge address 0014.1caf.a100 priority 32770 (32768 sysid 2)
Root address 000d.bd19.4f80 priority 32770 (32768 sysid 2)
port Fa0/22 cost 200000 rem hops 19
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg FWD 200000 128.24 P2p Bound(PVST)
[실습Ⅱ 조건으로 MST 설정해 Root&Backup Bridge 설정]
@SW1
SW1(config)#spanning-tree mst 1 priority 4096
SW1(config)#spanning-tree mst 2 priority 16384
@SW3
SW3(config)#spanning-tree mst 2 priority 4096
SW3(config)#spanning-tree mst 1 priority 16384
@SW2
SW2#sh spanning-tree mst 1
##### MST1 vlans mapped: 11,13
Bridge address 0014.1caf.a100 priority 32769 (32768 sysid 1)
Root address 000e.3889.d700 priority 4097 (4096 sysid 1)
port Fa0/24 cost 200000 rem hops 19
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/22 Altn BLK 200000 128.22 P2p
Fa0/24 Root FWD 200000 128.24 P2p
SW2#sh spanning-tree mst 2
##### MST2 vlans mapped: 12,14
Bridge address 0014.1caf.a100 priority 32770 (32768 sysid 2)
Root address 000d.bd19.4f80 priority 4098 (4096 sysid 2)
port Fa0/22 cost 200000 rem hops 19
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Altn BLK 200000 128.24 P2p
<예제>
-SW1은 VLAN100,200에 대해서 Root Bridge, SW2는 Backup Bridge
-SW2은 VLAN300,400에 대해서 Root Bridge, SW3는 Backup Bridge
-SW3은 VLAN500,600에 대해서 Root Bridge, SW1는 Backup Bridge
SW1에서 VLAN 100,200 / VLAN 500,600을 MST mode 로 그룹화하고 우선순위 4096 / 16384 설정
SW2에서 VLAN 200,300 / VLAN 100,200을 MST mode 로 그룹화하고 우선순위 4096 / 16384 설정
SW3에서 VLAN 500,600 / VLAN 300,400을 MST mode 로 그룹화하고 우선순위 4096 / 16384 설정
conf t
vlan 100,200,300,400,500,600
@SW1
SW1(config)#spanning-tree mode mst
!
SW1(config)#spanning-tree mst configuration
SW1(config-mst)#revision 1
SW1(config-mst)#name CISCO
SW1(config-mst)#instance 1 vlan 100,200
SW1(config-mst)#instance 2 vlan 500,600
SW1(config-mst)#instance 3 vlan 300,400
SW1#sh spanning-tree mst
##### MST0 vlans mapped: 1-10,15-99,101-199,201-299,301-399,401-499
501-599,601-4094
Bridge address 000e.3889.d700 priority 32768 (32768 sysid 0)
Root address 000d.bd19.4f80 priority 32768 (32768 sysid 0)
port Fa0/20 path cost 200000
Regional Root this switch
Operational hello time 2 , forward delay 15, max age 20, txholdcount 6
Configured hello time 2 , forward delay 15, max age 20, max hops 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/20 Root FWD 200000 128.20 P2p Bound(RSTP)
Fa0/24 Altn BLK 200000 128.24 P2p Bound(RSTP)
##### MST1 vlans mapped: 11,13,100,200
Bridge address 000e.3889.d700 priority 4097 (4096 sysid 1)
Root this switch for MST1
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/20 Mstr FWD 200000 128.20 P2p Bound(RSTP)
Fa0/24 Altn BLK 200000 128.24 P2p Bound(RSTP)
##### MST2 vlans mapped: 12,14,500,600
Bridge address 000e.3889.d700 priority 16386 (16384 sysid 2)
Root this switch for MST2
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/20 Mstr FWD 200000 128.20 P2p Bound(RSTP)
Fa0/24 Altn BLK 200000 128.24 P2p Bound(RSTP)
##### MST3 vlans mapped: 300,400
Bridge address 000e.3889.d700 priority 32771 (32768 sysid 3)
Root this switch for MST3
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/20 Mstr FWD 200000 128.20 P2p Bound(RSTP)
Fa0/24 Altn BLK 200000 128.24 P2p Bound(RSTP)
@SW2
SW2#sh spanning-tree mst
##### MST0 vlans mapped: 1-10,15-99,101-199,201-299,301-399,401-499
501-599,601-4094
Bridge address 0014.1caf.a100 priority 32768 (32768 sysid 0)
Root address 000d.bd19.4f80 priority 32768 (32768 sysid 0)
port Fa0/22 path cost 0
Regional Root address 000d.bd19.4f80 priority 32768 (32768 sysid 0)
internal cost 200000 rem hops 19
Operational hello time 2 , forward delay 15, max age 20, txholdcount 6
Configured hello time 2 , forward delay 15, max age 20, max hops 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg FWD 200000 128.24 P2p
##### MST1 vlans mapped: 11,13,100,200
Bridge address 0014.1caf.a100 priority 32769 (32768 sysid 1)
Root address 000d.bd19.4f80 priority 16385 (16384 sysid 1)
port Fa0/22 cost 200000 rem hops 19
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg FWD 200000 128.24 P2p
##### MST2 vlans mapped: 12,14,300,400
Bridge address 0014.1caf.a100 priority 4098 (4096 sysid 2)
Root this switch for MST2
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/22 Desg FWD 200000 128.22 P2p
Fa0/24 Desg FWD 200000 128.24 P2p
##### MST3 vlans mapped: 500,600
Bridge address 0014.1caf.a100 priority 16387 (16384 sysid 3)
Root address 000d.bd19.4f80 priority 4099 (4096 sysid 3)
port Fa0/22 cost 200000 rem hops 19
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/22 Root FWD 200000 128.22 P2p
Fa0/24 Desg FWD 200000 128.24 P2p
'네트워크' 카테고리의 다른 글
L3 스위치(Switch) (0) | 2020.07.23 |
---|---|
IEEE 802.1d STP -1 (0) | 2020.07.16 |
VTP (0) | 2020.07.16 |
VLAN (0) | 2020.07.16 |
스위치(Switch) (0) | 2020.07.16 |
댓글