# IEEE 802.1d STP 포트 상태
1) Blocking (BLK)
- 브릿징 루프를 해결하기 위해서 프레임 송수신이 불가능한 포트 차단 상태
- BPDU만 수신 가능
- BPDU 송신 불가능
- 프레임 송수신 불가능
- Max Age Time : 20초
2) Listening (LIS)
- Blocking 다음 단계에 시작하거나, 사용하지 않는 포트에 노드가 연결될 경우 시작
- 루프 체크 단계
- BPDU만 수신 가능
- BPDU 송신 불가능
- 프레임 송수신 불가능
- Forward Delay Time : 15초
3) Learning (LRN)
- Mac 주소 학습 단계
- BPDU 송수신 가능
- 프레임 송수신 불가능
- Forward Delay Time : 15초
4) Forwarding (FWD)
- 프레임 송수신 가능 상태
- BPDU 송수신 가능
[참고] Portfast
- 스위치 포트에 PC/라우터(플러딩이 실시되지 않는 장비)를 연결할 경우
Listening 단계가 불필요하기 때문에 Portfast 기능을 사용하면 바로 Forwarding으로
이전하게 된다.
- Portfast 설정된 스위치 포트에 스위치/허브(플러딩 장비)가 연결될 경우
Listening 단계가 삭제되었기 때문에 브릿징 루프가 발생될 수 있다.
Ex) Portfast 이전 디버깅
SW1[Fa1/9] <----------- [Fa0/0]R3
SW1#debug spanning-tree events
Spanning Tree event debugging is on
SW1(config)#int fa1/9
SW1(config-if)#no shutdown
SW1(config-if)#
*Mar 1 00:07:50.039: STP: VLAN1 Fa1/9 -> listening
*Mar 1 00:08:05.039: STP: VLAN1 Fa1/9 -> learning
*Mar 1 00:08:20.039: STP: VLAN1 Fa1/9 -> forwarding
Ex) Portfast 설정 이후 디버깅
SW1(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single host.
Connecting hubs, concentrators, switches, bridges, etc.to this interface
when portfast is enabled, can cause temporary spanning tree loops.
Use with CAUTION
%Portfast has been configured on FastEthernet1/9 but will only
have effect when the interface is in a non-trunking mode.
SW1(config-if)#switchport mode access
SW1(config-if)#no shut
*Mar 1 00:09:17.639: STP: VLAN1 Fa1/9 ->jump to forwarding from blocking
# PVST (Per VLAN Spanning-Tree)
- VLAN 당 STP를 제공하는 서비스
vlan 11 <- STP
vlan 12 <- STP
vlan 13 <- STP
vlan 14 <- STP
- 스위치에서 PVST 서비스를 이용하여 VLAN 로드 분산이 가능하다.
SW2(config)# spanning-tree vlan 11 priority 4096
SW3(config)# spanning-tree vlan 11 priority 16384
SW3(config)# spanning-tree vlan 12 priority 4096
SW2(config)# spanning-tree vlan 12 priority 16384
SW1# show spanning-tree vlan 11 brief <- SW1 Fa1/15 BLK
SW1# show spanning-tree vlan 12 brief <- SW1 Fa1/10 BLK
SW1#show spanning-tree vlan 11 brief
VLAN11
Spanning tree enabled protocol ieee
Root ID Priority 4096
Address c401.01e0.0001
Cost 19
Port 51 (FastEthernet1/10)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768
Address c400.01e0.0001
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 0
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/10 128.51 128 19 FWD 0 4096 c401.01e0.0001 128.52
FastEthernet1/15 128.56 128 19 BLK 19 16384 c402.01e0.0001 128.55
SW1#show spanning-tree vlan 12 brief
VLAN12
Spanning tree enabled protocol ieee
Root ID Priority 4096
Address c402.01e0.0002
Cost 19
Port 56 (FastEthernet1/15)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768
Address c400.01e0.0002
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 0
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/10 128.51 128 19 BLK 19 16384 c401.01e0.0002 128.52
FastEthernet1/15 128.56 128 19 FWD 0 4096 c402.01e0.0002 128.55
Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다
Trackback RSS : http://dhappy.net/rss/trackback/69
Trackback ATOM : http://dhappy.net/atom/trackback/69



