STP (listen) 802.1D PVST
1. Root bridge 선출 (VLAN 마다)
(Priority(32768) ==> MAC)
2. Root port 선출 (Non root bridge 마다)
(cost ==> port id(sender))
(cost : 100M ==> 19 10M ==> 100)
3. Designated port 선출 (segment 마다)
(cost ==> priority ==> MAC)
Root port (BPDU 수신)
Designated port (BPDU 송신)
Blocking port (BPDU 수신) traffic 차단
=============================================
(listen) MAC 학습 (broadast 감소)
1. Root bridge (priority, mac)
spanning-tree vlan 3 priority 32767
or
spanning-tree vlan 3 root primary
spanning-tree vlan 3 root secondary
2. Root port (cost, port-priority)
==cost==
-if)#spanning-tree vlan 10 cost 19
==port-priority==(sender)
-if)#spanning-tree vlan 10 port priority 128
3. Designated (cost, priority)
=============================================
실습 3
sw1(config)#interface fa1/1
sw1(config-if)#switchport mode trunk
sw1(config-if)#no shut
sw1(config-if)#exit
sw1(config)#interface fa1/2
sw1(config-if)#switchport mode trunk
sw1(config-if)#no shut
sw1(config-if)#exit
sw1#vlan database
sw1(vlan)#vtp domain BCMSN
Changing VTP domain name from NULL to BCMSN
sw1(vlan)#exit
sw2(config)#interface fa1/1
sw2(config-if)#swit
sw2(config-if)#switchport mode trunk
sw2(config-if)#no shut
sw2(config-if)#exit
sw2(config)#interface fa1/2
sw2(config-if)#switch
sw2(config-if)#switchport mode trunk
sw2(config-if)#no shut
sw2(config-if)#exit
sw2#vlan database
sw2(vlan)#vtp domain BCMSN
Changing VTP domain name from NULL to BCMSN
sw2(vlan)#
SW1에서 VLAN 생성
sw1#vlan database
sw1(vlan)#vlan 10
VLAN 10 added:
Name: VLAN0010
sw1(vlan)#vlan 20
VLAN 20 added:
Name: VLAN0020
sw1(vlan)#vlan 30
VLAN 30 added:
Name: VLAN0030
sw1(vlan)#vlan 40
VLAN 40 added:
Name: VLAN0040
sw1(vlan)#vlan 50
VLAN 50 added:
Name: VLAN0050
sw1(vlan)#vlan 60
VLAN 60 added:
Name: VLAN0060
확인
show interface trunk
show vtp status
show vlan-switch
show spanning-tree vlan X brief
show spanning-tree root brief
-----------------------------
vlan 10,30,50 ==> SW1 ROOT Bridge
vlan 20,40,60 ==> SW2 ROOT Bridge
로 만들라
sw2(config)#spanning-tree vlan 20 priority 32767
sw2(config)#spanning-tree vlan 40 priority 32767
sw2(config)#spanning-tree vlan 60 priority 32767
sw2(config)#
sw1(config)#spanning-tree vlan 10 priority 32767
sw1(config)#spanning-tree vlan 30 priority 32767
sw1(config)#spanning-tree vlan 50 priority 32767
확인
show spanning-tree vlan X brief
show spanning-tree root brief
----------------------------
3번문제
Root 포트 변경
1. COST ==> -if)#spanning-tree vlan 10 cost 19
2. Port priority ==> -if)#spanning-tree vlan 10 port-priority 128 (sender)
3-1
sw1
show spanning-tree vlan 20 brief (F1/2 Blocking) ==> (F1/1 Blocknig)
--> cost를 변경
sw1(config)#interface fa1/1
sw1(config-if)#spanning-tree vlan 20 cost 20 (기본19에서 20으로 변경)
아래의 방법도 똑같은 결과
sw2(config)#interface fa1/1
sw2(config-if)#spanning-tree vlan 20 port-priority 132 (기본 128에서 132로 변경)
확인
sw1#show spanning-tree vlan 20 brief
FastEthernet1/1 128.42 128 20 BLK 0 32767 c801.0128.0002 128.42
FastEthernet1/2 128.43 128 19 FWD 0 32767 c801.0128.0002 128.43
3-2
sw2(config)#interface fa1/1
sw2(config-if)#spanning-tree vlan 60 port-priority 132
3-3
sw2(config)#interface fa1/1
sw2(config-if)#spanning-tree vlan 10 cost 20
확인
FastEthernet1/1 128.42 128 20 BLK 0 32767 c800.0128.0001 128.42
FastEthernet1/2 128.43 128 19 LRN 0 32767 c800.0128.0001 128.43
3-4
sw1(config)#interface fa1/1
sw1(config-if)#spanning-tree vlan 50 port-priority 132
확인
FastEthernet1/1 128.42 128 19 BLK 0 32767 c800.0128.0005 132.42
FastEthernet1/2 128.43 128 19 LRN 0 32767 c800.0128.0005 128.43
====================================================
실습 4
4-1,2
SW3 SW4 f1/1 trunk
SW3 f1/3 vlan 10
SW4 f1/5 vlan 10
SW1 f1/3 f1/5 vlan 10
sw3(config)#interface fa1/1
sw3(config-if)#switchport mode trunk
sw3(config-if)#no shut
sw4(config)#interface fa1/1
sw4(config-if)#switchport mode trunk
sw4(config-if)#no shut
sw3(config)#interface fa1/3
sw3(config-if)#switchport access vlan 10
sw3(config-if)#no shut
sw3#vlan database
sw3(vlan)#vlan 10
VLAN 10 added:
Name: VLAN0010
sw4(config)#interface fa1/5
sw4(config-if)#switchport access vlan 10
sw4(config-if)#no shut
sw4#vlan database
sw4(vlan)#vlan 10
VLAN 10 added:
Name: VLAN0010
sw1(config)#interface fa1/3
sw1(config-if)#switchport access vlan 10
sw1(config-if)#no shut
sw1(config-if)#exit
sw1(config)#interface fa1/5
sw1(config-if)#switchport access vlan 10
sw1(config-if)#no shut
sw1#vlan data
sw1#vlan database
sw1(vlan)#vlan 10
VLAN 10 added:
Name: VLAN0010
SW4의 fa1/1포트가 block되어있다.
FastEthernet1/1 128.42 128 19 BLK 19 32768 c802.0ab0.0001 128.42
sw3(config)#spanning-tree vlan 10 priority 32766 -> sw4쪽에 block
sw4(config)#spanning-tree vlan 10 priority 32767
하면 완료
----------------
4-3,4
sw2(config)#interface fa1/3
sw2(config-if)#switchport access vlan 20
sw2(config-if)#no shut
sw2(config-if)#exit
sw2(config)#interface fa1/5
sw2(config-if)#switchport access vlan 20
sw2(config-if)#no shut
sw3(config)#interface fa1/5
sw3(config-if)#switchport access vlan 20
sw3(config-if)#no shut
sw4(config)#interface fa1/3
sw4(config-if)#switchport access vlan 20
sw4(config-if)#no shut
sw4 의 fa1/1포트가 block되어 있다.
sw4(config)#spanning-tree vlan 20 root primary
sw3(config)#spanning-tree vlan 20 root secondary
하면 sw2의 fa1/5가 block된다.
=====================================
교재
BCMSN30S03L01.ppt ----- (STP) 9페이지
priority + mac add = bridge ID
(listen, learn 생략)
interface fa0/1
no shut
spanning-tree portfast
===================================
STP(802.1D) PVST
IEEE
1. RSTP(802.1W)
2. MST (802.1S)
CISCO
1. portfast, uplinkfast, backbonfast == RSTP
config)#spanning-tree rapid-pvst (RSTP enable)
Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다
Trackback RSS : http://dhappy.net/rss/trackback/78
Trackback ATOM : http://dhappy.net/atom/trackback/78



