이 문서에서는 캠퍼스 네트워크의 스패닝 트리 모드를 PVST+에서 rapid-PVST+로 마이그레이션하는 샘플 컨피그레이션을 제공합니다.또한 PVST+ 구성, 스패닝 트리 로드 밸런싱, UplinkFast 및 BackboneFast 기능에 대해서도 설명합니다.
rapid-PVST+를 구성하기 전에 Understanding Rapid Spanning Tree Protocol (802.1w)을 읽는 것이 좋습니다.
이 표에서는 Catalyst 스위치에서 RSTP(Rapid Spanning Tree Protocol)를 지원하고 해당 지원에 필요한 최소 소프트웨어를 보여 줍니다.
Catalyst 플랫폼 | Rapid-PVST+ |
---|---|
Catalyst 2900 XL / 3500 XL | 사용할 수 없습니다. |
Catalyst 2940 | 12.1(20)EA2 |
Catalyst 2950/2955/3550 | 12.1(13)EA1 |
Catalyst 2970/3750 | 12.1(14)EA1 |
Catalyst 3560 | 12.1(19)EA1 |
Catalyst 3750 Metro | 12.1 (14) AX |
Catalyst 2948G-L3/4908G-L3 | 사용할 수 없습니다. |
Catalyst 4000/2948G/2980G(CatOS) | 7.5 |
Catalyst 4000/4500(IOS) | 12.1(19)EW |
Catalyst 5000/5500 | 사용할 수 없습니다. |
Catalyst 6000/6500 | 7.5 |
Catalyst 6000/6500(IOS) | 12.1(13)E |
Catalyst 8500 | 사용할 수 없습니다. |
이 문서의 정보는 Cisco IOS® Software Release12.2(25) 및 CatOS 8.5(8)를 기반으로 합니다. 그러나 컨피그레이션은 표에 표시된 최소 Cisco IOS 버전에 적용됩니다.
이 문서의 정보는 특정 랩 환경의 디바이스를 토대로 작성되었습니다.이 문서에 사용된 모든 디바이스는 초기화된(기본) 컨피그레이션으로 시작되었습니다.현재 네트워크가 작동 중인 경우, 모든 명령어의 잠재적인 영향을 미리 숙지하시기 바랍니다.
문서 규칙에 대한 자세한 내용은 Cisco 기술 팁 표기 규칙을 참고하십시오.
802.1D STP(Spanning Tree Protocol)는 저속 컨버전스의 단점을 가지고 있습니다.Cisco Catalyst 스위치는 PVST+, rapid-PVST+ 및 MST인 세 가지 유형의 STP를 지원합니다.PVST+는 IEEE802.1D 표준을 기반으로 하며 BackboneFast, UplinkFast, PortFast와 같은 Cisco 독점 확장을 포함합니다.Rapid-PVST+는 IEEE 802.1w 표준을 기반으로 하며 802.1D보다 빠른 컨버전스를 제공합니다.RSTP(IEEE 802.1w)에는 기본적으로 BackboneFast 및 UplinkFast와 같은 802.1D 스패닝 트리에 대한 Cisco 독점 기능 개선 사항이 대부분 포함되어 있습니다.Rapid-PVST+에는 다음과 같은 고유한 기능이 있습니다.
BPDU 버전 0을 사용하는 802.1D STP와 역호환되는 BPDU(Bridge Protocol Data Unit) 버전 2를 사용합니다.
모든 스위치는 2초마다 BPDU를 생성하고 모든 포트에서 전송합니다. 반면 802.1D STP에서는 루트 브리지만 컨피그레이션 BPDU를 전송합니다.
포트 역할 - 루트 포트, 지정된 포트, 대체 포트 및 백업 포트.
Port States(포트 상태) - 삭제, 학습 및 포워딩.
포트 유형 - 에지 포트(PortFast), 포인트-투-포인트 및 공유 포트.
Rapid-PVST는 RSTP를 사용하여 더 빠른 컨버전스를 제공합니다.RSTP 포트가 레거시 802.1D BPDU를 수신하면 레거시 STP로 대체되며, 레거시 브리지와 상호 작용할 때 802.1w의 고유한 고속 컨버전스 이점이 손실됩니다.
이 예에는 두 개의 섹션이 포함되어 있습니다.첫 번째 섹션에서는 현재 PVST+ 컨피그레이션을 보여줍니다.두 번째 섹션에서는 PVST+에서 rapid-PVST+로 마이그레이션할 컨피그레이션을 보여줍니다.
참고: 명령 조회 도구(등록된 고객만 해당)를 사용하여 이 섹션에 사용된 명령에 대한 자세한 내용을 확인하십시오.
이 문서에서는 다음 네트워크 설정을 사용합니다.
이 다이어그램에는 다음과 같은 스위치가 있습니다.
디스트리뷰션 레이어에 있는 Distribution1 및 Distribution2
Access1(IOS) 및 Access2(CatOS)라는 두 개의 액세스 레이어 스위치
Services1 및 Services2라는 서버 어그리게이션 스위치 2개
VLAN 10, 30, 100은 데이터 트래픽을 전달합니다.VLAN 20, 40, 200은 음성 트래픽을 전달합니다.
이 문서에서는 다음 구성을 사용합니다.
스위치는 네트워크 다이어그램에 따라 데이터 및 음성 트래픽을 전달하도록 PVST+에 구성됩니다.다음은 구성에 대한 간단한 요약입니다.
Distribution1 스위치는 Distribution1(config)# spanning-tree vlan 10,30,100 root primary 명령을 사용하여 데이터 VLAN 10, 30,100의 기본 루트 브리지가 되도록 구성되고, 음성 VLAN 20, 40, 200의 보조 루트 브리지는 Distribution1(config) spanning-tree 20,400,00002000020을 사용합니다. root secondary 명령
참고: spanning-tree root primary 명령은 스위치의 브리지 우선순위를 8192로 변경하고 spanning-tree root secondary 명령은 우선순위를 16384로 변경합니다.
Distribution2 스위치는 Distribution2(config)# spanning-tree vlan 20,40,200 root primary 명령을 사용하여 음성 VLAN 20, 40, 200의 기본 루트 브리지가 되도록 구성되며 데이터 VLAN 10, 30, 100의 보조 루트 브리지는 Distribution2(config) spanning-tree 10,30000,3000 root secondary 명령
네트워크에서 간접 링크 장애가 발생할 경우 STP를 더 빠르게 통합하도록 모든 스위치에 spanning-tree backbonefast 명령이 구성됩니다.
spanning-tree uplinkfast 명령은 직접 업링크 장애가 발생할 경우 STP를 더 빠르게 통합하도록 액세스 레이어 스위치에 구성됩니다.
배포1 |
---|
Distribution1#show running-config Building configuration... spanning-tree mode pvst spanning-tree extend system-id spanning-tree backbonefast spanning-tree vlan 10,30,100 priority 8192 spanning-tree vlan 20,40,200 priority 16384 ! vlan 10,20,30,40,100,200 ! interface FastEthernet1/0/1 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 10,20 ! interface FastEthernet1/0/3 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 30,40 ! interface FastEthernet1/0/5 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 100,200 ! interface FastEthernet1/0/23 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 10,20,30,40,100,200 ! interface FastEthernet1/0/24 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 10,20,30,40,100,200 ! ! end |
spanning-tree vlan 20,40,200 port-priority 64 명령으로 포트 Fa1/0/24가 구성되어 있음을 확인할 수 있습니다.Distribution2는 VLAN 20,40,200에 대해 루트로 구성됩니다. Distribution2에는 Distribution1에 대한 두 개의 링크가 있습니다.Fa1/0/23 및 Fa1/0/24. 두 포트 모두 VLAN 20, 40, 200에 대해 지정된 포트입니다. Distribution2가 해당 VLAN의 루트이기 때문입니다.두 포트 모두 동일한 우선순위 128(기본값)을 갖습니다. 또한 이 두 링크는 Distribution1의 비용과 동일합니다.fa1/0/23 및 fa1/0/24. Distribution1은 포트를 전달 상태로 설정하기 위해 두 포트의 가장 낮은 포트 번호를 선택합니다.가장 낮은 포트 번호는 Fa1/0/23입니다. 그러나 네트워크 다이어그램에 따라 음성 VLAN 20, 40, 200은 Fa1/0/24을 통해 플로우되어야 합니다. 다음 방법으로 이 작업을 수행할 수 있습니다.
Distribution1의 포트 비용 감소:1/0/24
Distribution2에서 포트 우선 순위 감소:1/0/24
이 예에서는 포트 우선순위가 VLAN 20, 40, 200~fa1/0/24 포워드로 감소합니다.
배포2 |
---|
Distribution2#show running-config Building configuration... ! spanning-tree mode pvst spanning-tree extend system-id spanning-tree backbonefast spanning-tree vlan 10,30,100 priority 28672 spanning-tree vlan 20,40,200 priority 24576 ! vlan 10,20,30,40,100,200 ! interface FastEthernet1/0/2 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 10,20 ! interface FastEthernet1/0/4 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 30,40 ! interface FastEthernet1/0/6 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 100,200 ! interface FastEthernet1/0/23 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 10,20,30,40,100,200 ! interface FastEthernet1/0/24 switchport trunk encapsulation dot1q switchport mode trunk spanning-tree vlan 20,40,200 port-priority 64 switchport trunk allowed vlan 10,20,30,40,100,200 end |
Services1의 포트 Fa0/5와 Services2의 Fa0/6 및 Fa0/48에 Spanning Tree 포트 비용 및 포트 우선순위 구성이 있는 것을 볼 수 있습니다.여기서 STP는 VLAN 100 및 200 of Services1 및 Services2가 그 사이의 트렁크 링크를 통과할 수 있도록 조정됩니다.이 컨피그레이션이 적용되지 않으면 Services1과 Services2는 이 컨피그레이션 간의 트렁크 링크를 통해 트래픽을 전달하지 않습니다.대신 Distribution1 및 Distribution2를 통해 경로를 선택합니다.
Services2는 VLAN 100 루트(Distribution1)에 대한 두 개의 동일 비용 경로를 확인합니다. Services1을 통해 하나씩, Distribution2를 통해 두 번째 경로를 선택합니다. STP는 다음 순서로 최상의 경로(루트 포트)를 선택합니다.
경로 비용
포워딩 스위치의 브리지 ID
가장 낮은 포트 우선 순위
가장 낮은 내부 포트 번호
이 예에서 두 경로 모두 비용이 동일합니다.그러나 Distribution2(24576)의 우선순위가 VLAN 100의 Services1(32768)보다 낮습니다. 따라서 Services2는 Distribution2를 선택합니다. 이 예에서 Services1의 포트 비용은 다음과 같습니다.fa0/5는 서비스2에서 서비스1을 선택할 수 있도록 낮게 설정됩니다. 경로 비용이 전달 스위치 우선순위 번호를 재정의합니다.
서비스1 |
---|
Services1#show running-config Building configuration... spanning-tree mode pvst spanning-tree portfast bpduguard default spanning-tree extend system-id spanning-tree backbonefast ! vlan 100,200 ! interface FastEthernet0/5 switchport trunk encapsulation dot1q switchport mode trunk spanning-tree vlan 100 cost 18 switchport trunk allowed vlan 100,200 ! interface FastEthernet0/47 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 100,200 ! interface FastEthernet0/48 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 100,200 ! ! end |
서비스1에서 서비스2를 선택하여 VLAN 200을 전달할 수 있도록 동일한 개념이 적용됩니다. 서비스2 - fa0/6에서 VLAN 200에 대한 비용을 줄이면 서비스1은 fa0/47을 선택하여 VLAN 200을 전달합니다. 그러나 여기서 요구 사항은 VLAN 200 -0/48을 전달하는 것입니다. 다음 두 가지 방법으로 수행할 수 있습니다.
서비스1:Fa0/48
서비스2에서 포트 우선 순위 감소:Fa0/48
이 예에서는 Services2의 포트 우선순위가 VLAN 200에서 fa0/48까지 감소합니다.
서비스2 |
---|
Services2#show running-config Building configuration... spanning-tree mode pvst spanning-tree portfast bpduguard default spanning-tree extend system-id spanning-tree backbonefast ! vlan 100,200 ! interface FastEthernet0/6 switchport trunk encapsulation dot1q switchport mode trunk spanning-tree vlan 200 cost 18 switchport trunk allowed vlan 100,200 ! interface FastEthernet0/47 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 100,200 ! interface FastEthernet0/48 switchport trunk encapsulation dot1q switchport mode trunk spanning-tree vlan 200 port-priority 64 switchport trunk allowed vlan 100,200 ! ! end |
액세스1 |
---|
Access1#show running-config Building configuration... ! spanning-tree mode pvst spanning-tree portfast bpduguard default spanning-tree extend system-id spanning-tree uplinkfast spanning-tree backbonefast ! vlan 10,20 ! interface FastEthernet0/1 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 10,20 ! interface FastEthernet0/2 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 10,20 ! end |
액세스2 |
---|
Access2> (enable)show config all #mac address reduction set spantree macreduction enable ! #stp mode set spantree mode pvst+ ! #uplinkfast groups set spantree uplinkfast enable rate 15 all-protocols off ! #backbonefast set spantree backbonefast enable ! #vlan parameters set spantree priority 49152 1 set spantree priority 49152 30 set spantree priority 49152 40 ! #vlan(defaults) set spantree enable 1,30,40 set spantree fwddelay 15 1,30,40 set spantree hello 2 1,30,40 set spantree maxage 20 1,30,40 ! #vtp set vlan 1,30,40 ! #module 3 : 48-port 10/100BaseTX Ethernet set trunk 3/3 on dot1q 30,40 set trunk 3/4 on dot1q 30,40 ! end |
마이그레이션 프로세스를 시작하기 전에 UplinkFast 및 BackboneFast 동작을 아는 것이 좋습니다.네트워크 다이어그램에서 Access1 스위치는 Cisco IOS를 실행합니다.이 출력은 rapid-PVST+ 모드로 마이그레이션하기 전에 수행됩니다.
Access1#show spanning-tree vlan 10 VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 24586 Address 0015.63f6.b700 Cost 3019 Port 107 (FastEthernet3/0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49162 (priority 49152 sys-id-ext 10) Address 000f.f794.3d00 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Uplinkfast enabled Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa3/0/1 Root FWD 3019 128.107 P2p Fa3/0/2 Altn BLK 3019 128.108 P2p Access1#show spanning-tree summary Switch is in pvst mode Root bridge for: none Extended system ID is enabled Portfast Default is disabled PortFast BPDU Guard Default is enabled Portfast BPDU Filter Default is disabled Loopguard Default is disabled EtherChannel misconfig guard is enabled UplinkFast is enabled BackboneFast is enabled Configured Pathcost method used is short Name Blocking Listening Learning Forwarding STP Active ---------------------- -------- --------- -------- ---------- ---------- VLAN0010 1 0 0 1 2 VLAN0020 1 0 0 1 2 ---------------------- -------- --------- -------- ---------- ---------- 2 vlans 2 0 0 2 4
이 출력은 모드가 rapid-PVST+로 변경된 후에 발생합니다.
Access1#show spanning-tree vlan 10 VLAN0010 Spanning tree enabled protocol rstp Root ID Priority 24586 Address 0015.63f6.b700 Cost 3019 Port 107 (FastEthernet3/0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49162 (priority 49152 sys-id-ext 10) Address 000f.f794.3d00 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 UplinkFast enabled but inactive in rapid-pvst mode Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa3/0/1 Root FWD 3019 128.107 P2p Fa3/0/2 Altn BLK 3019 128.108 P2p Access1#show spanning-tree summary Switch is in rapid-pvst mode Root bridge for: none Extended system ID is enabled Portfast Default is disabled PortFast BPDU Guard Default is enabled Portfast BPDU Filter Default is disabled Loopguard Default is disabled EtherChannel misconfig guard is enabled UplinkFast is enabled but inactive in rapid-pvst mode BackboneFast is enabled but inactive in rapid-pvst mode Configured Pathcost method used is short Name Blocking Listening Learning Forwarding STP Active ---------------------- -------- --------- -------- ---------- ---------- VLAN0010 1 0 0 1 2 VLAN0020 1 0 0 1 2 ---------------------- -------- --------- -------- ---------- ---------- 2 vlans 2 0 0 2 4
UplinkFast 및 BackboneFast가 활성화되었지만 빠른 PVST 모드에서 비활성화되어 있는 show spanning-tree summary 명령 출력에서 확인할 수 있습니다.두 명령을 모두 제거하는 것은 선택 사항입니다.명령을 제거하지 않으면 빠른 PVST 작업에는 영향을 주지 않습니다.no spanning-tree uplinkfast configuration mode 명령을 사용하여 UplinkFast를 비활성화하면 브리지 우선 순위 및 포트 비용이 기본값으로 되돌아갑니다.루트가 아닌 스위치의 브리지 우선 순위를 더 높은 수로 지정하는 것이 좋습니다.이 출력은 UplinkFast 기능이 rapid-PVST 모드에서 비활성화된 후 표시됩니다.
Access1#show spanning-tree vlan 10 VLAN0010 Spanning tree enabled protocol rstp Root ID Priority 24586 Address 0015.63f6.b700 Cost 19 Port 107 (FastEthernet3/0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address 000f.f794.3d00 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa3/0/1 Root FWD 19 128.107 P2p Fa3/0/2 Altn BLK 19 128.108 P2p Access1#show spanning-tree summary Switch is in rapid-pvst mode Root bridge for: none Extended system ID is enabled Portfast Default is disabled PortFast BPDU Guard Default is enabled Portfast BPDU Filter Default is disabled Loopguard Default is disabled EtherChannel misconfig guard is enabled UplinkFast is disabled BackboneFast is enabled but inactive in rapid-pvst mode Configured Pathcost method used is short Name Blocking Listening Learning Forwarding STP Active ---------------------- -------- --------- -------- ---------- ---------- VLAN0010 1 0 0 1 2 VLAN0020 1 0 0 1 2 ---------------------- -------- --------- -------- ---------- ---------- 2 vlans 2 0 0 2 4
CatOS에서는 BackboneFast 기능이 활성화된 경우 모드를 rapid-PVST로 변경할 수 없습니다.마이그레이션 전에 BackboneFast를 비활성화해야 합니다.UplinkFast는 IOS에서 동작하는 것과 동일하게 작동합니다.
Access2> (enable) set spantree mode rapid-pvst+ Cannot change the spantree mode to RAPID-PVST+ when backbonefast is enabled.
Rapid-PVST+는 802.1D와 동일한 BPDU 형식을 사용하며 이전 버전과 호환됩니다.엔터프라이즈 네트워크의 모든 스위치를 빠른 PVST+로 변환하는 것은 어렵습니다.이전 버전과의 호환성 때문에 단계별로 변환할 수 있습니다.스패닝 트리 재컨피그레이션이 트래픽 흐름을 중단하므로 예약된 유지 관리 기간에 변경 사항을 구현하는 것이 좋습니다.스패닝 트리 업링크Fast 및 백본Fast 기능은 PVST+ 기능입니다.이러한 기능은 rapid-PVST+ 내에 구축되므로 rapid-PVST+를 활성화할 때 비활성화됩니다.따라서 마이그레이션 중에 이러한 명령을 제거할 수 있습니다.PortFast, BPDUguard, BPDUfilter, root guard, loocoguard 등의 기능 컨피그레이션도 rapid-PVST+ 모드에서도 적용할 수 있습니다.이러한 기능의 사용법은 PVST+ 모드와 동일합니다.PVST+ 모드에서 이러한 기능을 이미 활성화한 경우, 빠른 PVST+ 모드로 마이그레이션한 후에도 기능이 활성 상태로 유지됩니다.이 예에서는 마이그레이션이 다음 순서로 발생합니다.
액세스1
액세스2
서비스1 및 서비스2
배포1 및 배포2
Access1 마이그레이션:
Access1(config)#spanning-tree mode rapid-pvst Access1(config)#no spanning-tree uplinkfast Access1(config)#no spanning-tree backbonefast Access1#show spanning-tree vlan 10 VLAN0010 Spanning tree enabled protocol rstp Root ID Priority 24586 Address 0015.63f6.b700 Cost 19 Port 107 (FastEthernet3/0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address 000f.f794.3d00 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa3/0/1 Root FWD 19 128.107 P2p Peer(STP) Fa3/0/2 Altn BLK 19 128.108 P2p Peer(STP) !--- Type P2p Peer(STP) represents that the neighbor switch runs PVST.
Access2 마이그레이션:
Access2> (enable) set spantree backbonefast disable Backbonefast disabled for all VLANs. Access2> (enable) set spantree mode rapid-pvst+ PVST+ database cleaned up. Spantree mode set to RAPID-PVST+. Access2> (enable) clear spantree uplinkfast This command will cause all portcosts, portvlancosts, and the bridge priority on all vlans to be set to default. Do you want to continue (y/n) [n]? y VLANs 1-4094 bridge priority set to 32768. The port cost of all bridge ports set to default value. The portvlancost of all bridge ports set to default value. uplinkfast all-protocols field set to off. uplinkfast disabled for bridge.
서비스1 및 서비스2 마이그레이션:
Services1(config)#spanning-tree mode rapid-pvst Services1(config)#no spanning-tree backbonefast
Services2(config)#spanning-tree mode rapid-pvst Services2(config)#no spanning-tree backbonefast
Distribution1 및 Distribution2 마이그레이션:
Distribution1(config)#spanning-tree mode rapid-pvst 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan200, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to down 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to down 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up !--- Distribution1 switch has Layer3 VLAN interfaces and it goes !--- down and up during the conversion. Distribution1(config)#no spanning-tree backbonefast
Distribution2(config)#spanning-tree mode rapid-pvst 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to own 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to p 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state t up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan200, changed state t up 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to down 2d02h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up !--- Distribution2 switch has Layer3 VLAN interfaces and it goes !--- down and up during the conversion. Distribution2(config)#no spanning-tree backbonefast
대기업 네트워크에서는 마이그레이션 프로세스가 며칠 걸릴 수 있습니다.마이그레이션 프로세스 중에 PVST+의 스위치 몇 개, 빠른 PVST+ 모드의 스위치 몇 개 등 혼합 모드에서 LAN을 실행할 수 있습니다.혼합 모드에서는 rapid-PVST+의 완전한 이점을 얻을 수 없습니다.전체 컨버전스 시간은 PVST+ 모드의 컨버전스 시간과 동일합니다.rapid-PVST+를 최대한 활용하려면 스패닝 트리 토폴로지의 모든 스위치에서 rapid-PVST+를 실행해야 합니다.스패닝 트리가 혼합 모드에서 동작하는 방법을 보여주기 위해 샘플 debug 명령 출력이 여기에 표시됩니다.Distribution1 및 Distribution2는 PVST+에 있고 Access1은 빠른 PVST+ 모드에 있습니다.
debug spanning-tree 명령 출력은 Access1과 Distribution1 간의 링크가 실패하는 경우 STP 작업을 표시합니다.
Access1 00:55:13: RSTP(10): updt roles, root port Fa0/1 going down 00:55:13: RSTP(10): Fa0/2 is now root port 00:55:13: RSTP(10): Fa0/2 received a tc ack 00:55:15: %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to adminis tratively down 00:55:16: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, cha nged state to down Distribution1 00:55:20: STP: VLAN0010 Topology Change rcvd on Fa1/0/23 00:55:20: STP: VLAN0020 sent Topology Change Notice on Fa1/0/24 00:55:21: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/1, changed state to down 00:55:22: %LINK-3-UPDOWN: Interface FastEthernet1/0/1, changed state to down Distribution2 00:55:06: STP: VLAN0010 Topology Change rcvd on Fa1/0/2 00:55:06: STP: VLAN0010 sent Topology Change Notice on Fa1/0/23
debug spanning-tree 명령 출력은 Access1과 Distribution1 간의 링크가 작동 중일 때 STP 작업을 표시합니다.
Access1 00:55:40: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up 00:55:43: STP: PVST vlan 10 port Fa0/1 created, ext id 2E42430, vp 3389640 00:55:43: RSTP(10): initializing port Fa0/1 00:55:43: RSTP(10): Fa3/0/1 is now designated 00:55:43: STP: PVST vlan 20 port Fa0/1 created, ext id 2E42430, vp 300EC20 00:55:43: RSTP(20): initializing port Fa0/1 00:55:43: RSTP(20): Fa0/1 is now designated 00:55:43: RSTP(10): transmitting a proposal on Fa0/1 00:55:43: RSTP(20): transmitting a proposal on Fa0/1 00:55:43: RSTP(10): transmitting a proposal on Fa0/1 00:55:43: RSTP(20): transmitting a proposal on Fa0/1 00:55:43: RSTP(10): updt roles, received superior bpdu on Fa0/1 00:55:43: RSTP(10): Fa0/1 is now root port 00:55:43: RSTP(10): Fa0/2 blocked by re-root 00:55:43: RSTP(10): Fa0/2 is now alternate 00:55:44: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, cha nged state to up 00:55:44: RSTP(20): updt roles, received superior bpdu on Fa0/1 00:55:44: RSTP(20): Fa0/1 is now alternate Distribution1 00:55:49: %LINK-3-UPDOWN: Interface FastEthernet1/0/1, changed state to up 00:55:50: set portid: VLAN0010 Fa1/0/1: new port id 8001 00:55:50: STP: PVST vlan 10 port Fa1/0/1 created, ext id 2DA13A8, vp 3BDB708 00:55:50: STP: VLAN0010 Fa1/0/1 -> listening 00:55:50: set portid: VLAN0020 Fa1/0/1: new port id 8001 00:55:50: STP: PVST vlan 20 port Fa1/0/1 created, ext id 2DA13A8, vp 3C06F20 00:55:50: STP: VLAN0020 Fa1/0/1 -> listening 00:55:51: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/1, changed state to up 00:56:05: STP: VLAN0010 Fa1/0/1 -> learning 00:56:05: STP: VLAN0020 Fa1/0/1 -> learning 00:56:20: STP: VLAN0010 Fa1/0/1 -> forwarding 00:56:20: STP: VLAN0020 sent Topology Change Notice on Fa1/0/24 00:56:20: STP: VLAN0020 Fa1/0/1 -> forwarding !--- This output is evident that the Access1 switch waits for the !--- standard 802.1D Spanning Tree process of listening, learning and forwarding !--- to complete in Distribution1. Distribution2 00:55:06: STP: VLAN0020 Topology Change rcvd on Fa1/0/24 00:56:06: STP: VLAN0020 Topology Change rcvd on Fa1/0/24 !--- This output shows that Distribution2 is notified !--- about the indirect link outage by TCN BPDUs.
Distribution1, Distribution2 및 Access1 스위치는 빠른 PVST+ 모드입니다.debug spanning-tree 명령 출력은 Access1과 Distribution1 간의 링크가 실패하는 경우 STP 작업을 표시합니다.
Access1 01:31:04: RSTP(10): updt roles, root port Fa0/1 going down 01:31:04: RSTP(10): Fa0/2 is now root port 01:31:06: %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to adminis tratively down 01:31:07: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, cha nged state to down Distribution1 01:31:13: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/1, changed state to down 01:31:14: %LINK-3-UPDOWN: Interface FastEthernet1/0/1, changed state to down
debug spanning-tree 명령 출력은 Access1과 Distribution1 간의 링크가 작동 중일 때 STP 작업을 표시합니다.
Access1 01:35:46: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up 01:35:48: STP: PVST vlan 10 port Fa3/0/1 created, ext id 2E42430, vp 3C8E360 01:35:48: RSTP(10): initializing port Fa3/0/1 01:35:48: RSTP(10): Fa3/0/1 is now designated 01:35:48: STP: PVST vlan 20 port Fa3/0/1 created, ext id 2E42430, vp 3C8E3E0 01:35:48: RSTP(20): initializing port Fa3/0/1 01:35:48: RSTP(20): Fa3/0/1 is now designated 01:35:48: RSTP(10): updt roles, received superior bpdu on Fa3/0/1 01:35:48: RSTP(10): Fa3/0/1 is now root port 01:35:48: RSTP(10): Fa3/0/2 blocked by re-root 01:35:48: RSTP(10): synced Fa3/0/1 01:35:48: RSTP(10): Fa3/0/2 is now alternate 01:35:48: RSTP(20): updt roles, received superior bpdu on Fa3/0/1 01:35:48: RSTP(20): Fa3/0/1 is now alternate 01:35:48: RSTP(10): transmitting an agreement on Fa3/0/1 as a response to a prop osal Distribution1 01:35:55: %LINK-3-UPDOWN: Interface FastEthernet1/0/1, changed state to up 01:35:56: STP: PVST vlan 10 port Fa1/0/1 created, ext id 2DA13A8, vp 3BDCCD8 01:35:56: RSTP(10): initializing port Fa1/0/1 01:35:56: RSTP(10): Fa1/0/1 is now designated 01:35:56: STP: PVST vlan 20 port Fa1/0/1 created, ext id 2DA13A8, vp 2D21C60 01:35:56: RSTP(20): initializing port Fa1/0/1 01:35:56: RSTP(20): Fa1/0/1 is now designated 01:35:56: RSTP(10): transmitting a proposal on Fa1/0/1 01:35:56: RSTP(20): transmitting a proposal on Fa1/0/1 01:35:56: RSTP(10): received an agreement on Fa1/0/1 01:35:57: RSTP(20): transmitting a proposal on Fa1/0/1 01:35:59: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:01: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:03: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:06: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:08: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:10: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:11: RSTP(20): Fa1/0/1 fdwhile Expired 01:36:12: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:14: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:16: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:18: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:20: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:22: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:24: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:26: RSTP(20): transmitting a proposal on Fa1/0/1 01:36:26: RSTP(20): Fa1/0/1 fdwhile Expired !--- Distribution1 puts the port Fa1/0/1 as designated for VLANs 10 and 20. !--- It also proposes that Fa1/0/1 is designated for VLANs 10, 20. Access1 agrees with the !--- proposal for VLAN10. However, it does not agree with the proposal for VLAN20 because it !--- has the superior BPDU for VLAN20 from Distribution2.
이 섹션을 사용하여 컨피그레이션이 제대로 작동하는지 확인합니다.
Output Interpreter 도구(등록된 고객만 해당)(OIT)는 특정 show 명령을 지원합니다.OIT를 사용하여 show 명령 출력의 분석을 봅니다.
컨피그레이션이 변경될 때마다 스패닝 트리 토폴로지를 확인하는 것이 좋습니다.
Distribution1 스위치가 데이터 VLAN 10, 30, 100의 루트 브리지인지 확인합니다. 또한 네트워크 다이어그램의 경로에 따라 스패닝 트리 포워딩 경로가 일치하는지 확인합니다.
Distribution1#show spanning-tree vlan 10 VLAN0010 Spanning tree enabled protocol rstp Root ID Priority 24586 Address 0015.63f6.b700 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 24586 (priority 24576 sys-id-ext 10) Address 0015.63f6.b700 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa1/0/1 Desg FWD 19 128.1 P2p Fa1/0/3 Desg FWD 19 128.3 P2p Fa1/0/5 Desg FWD 19 128.5 P2p Fa1/0/23 Desg FWD 19 128.23 P2p Fa1/0/24 Desg FWD 19 128.24 P2p Access1#show spanning-tree summary Switch is in rapid-pvst mode Root bridge for: none Extended system ID is enabled Portfast Default is disabled PortFast BPDU Guard Default is enabled Portfast BPDU Filter Default is disabled Loopguard Default is disabled EtherChannel misconfig guard is enabled UplinkFast is disabled BackboneFast is disabled Configured Pathcost method used is short Name Blocking Listening Learning Forwarding STP Active ---------------------- -------- --------- -------- ---------- ---------- VLAN0010 1 0 0 1 2 VLAN0020 1 0 0 1 2 ---------------------- -------- --------- -------- ---------- ---------- 2 vlans 2 0 0 2 4 Access2> (enable) show spantree 30 VLAN 30 Spanning tree mode RAPID-PVST+ Spanning tree type ieee Spanning tree enabled Designated Root 00-15-63-f6-b7-00 Designated Root Priority 24606 Designated Root Cost 19 Designated Root Port 3/3 Root Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Bridge ID MAC ADDR 00-d0-00-50-30-1d Bridge ID Priority 32768 Bridge Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Port State Role Cost Prio Type ------------------------ ------------- ---- --------- ---- -------------------- 3/3 forwarding ROOT 19 32 P2P 3/4 blocking ALTR 19 32 P2P Access2> (enable) show spantree 40 VLAN 40 Spanning tree mode RAPID-PVST+ Spanning tree type ieee Spanning tree enabled Designated Root 00-15-c6-c1-30-00 Designated Root Priority 24616 Designated Root Cost 19 Designated Root Port 3/4 Root Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Bridge ID MAC ADDR 00-d0-00-50-30-27 Bridge ID Priority 32768 Bridge Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Port State Role Cost Prio Type ------------------------ ------------- ---- --------- ---- -------------------- 3/3 blocking ALTR 19 32 P2P 3/4 forwarding ROOT 19 32 P2P Services1#show spanning-tree vlan 100 VLAN0100 Spanning tree enabled protocol rstp Root ID Priority 24676 Address 0015.63f6.b700 Cost 18 Port 7 (FastEthernet0/5) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32868 (priority 32768 sys-id-ext 100) Address 0003.fd63.bb80 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/5 Root FWD 18 128.7 P2p Fa0/46 Desg FWD 19 128.50 P2p Fa0/47 Desg FWD 19 128.51 P2p Services1#show spanning-tree vlan 200 VLAN0200 Spanning tree enabled protocol rstp Root ID Priority 24776 Address 0015.c6c1.3000 Cost 37 Port 51 (FastEthernet0/47) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32968 (priority 32768 sys-id-ext 200) Address 0003.fd63.bb80 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/5 Altn BLK 19 128.7 P2p Fa0/46 Altn BLK 19 128.50 P2p Fa0/47 Root FWD 19 128.51 P2p Services2#show spanning-tree vlan 100 VLAN0100 Spanning tree enabled protocol rstp Root ID Priority 24676 Address 0015.63f6.b700 Cost 37 Port 42 (GigabitEthernet0/42) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32868 (priority 32768 sys-id-ext 100) Address 00d0.2bfc.7d80 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/6 Altn BLK 19 128.6 P2p Fa0/42 Root FWD 19 128.42 P2p Fa0/43 Altn BLK 19 128.43 P2p Services2#show spanning-tree vlan 200 VLAN0200 Spanning tree enabled protocol rstp Root ID Priority 24776 Address 0015.c6c1.3000 Cost 18 Port 6 (GigabitEthernet0/6) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32968 (priority 32768 sys-id-ext 200) Address 00d0.2bfc.7d80 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/6 Root FWD 18 128.6 P2p Fa0/42 Desg FWD 19 128.42 P2p Fa0/43 Desg FWD 19 64.43 P2p
현재 이 컨피그레이션에 사용할 수 있는 특정 문제 해결 정보가 없습니다.