D-H,appy

관리자 글쓰기
블로그 »
블로그 »

STP (802.1D) PVST

 1. RSTP
    root port
    designated port
    alternative port (root port) - 원래 blocking 이지만 alternative로 만들어둠
    backup port (designated port)

    edge port (listen , learn) 생략

    config)#spanning-tree mode rapid-pvst

 2. MSTP
   
    MST (name, revision, group)
    D1
      spanning-tree mode mst ==> (RSTP 자동 enable)
      spanning-tree mst configuration  
        name BCMSN
        revision 1
        instance 1 vlan 1-500
        instance 2 vlan 500-1000
     
      show spanning-tree mst 1
      show spanning-tree mst 2

      spannign-tree mst 1 root primary
      spanning-tree mst 2 root secondary
     
    STP 1000 ===> STP 2개

      show spanning-tree mst configuration
     



-----------------

IOS & Catos 차이

IOS

config)#vlan 10
config-vlan)#name 10f
show vlan

interface fa0/1
  switchport trunk encapsulation dot1q     -- 802.1Q, isl 둘다 지원
  switchport trunk encapsulation isl
  switchport mode trunk

vtp domain BCMSN
vtp mode server

show spanning-tree vlan 1

Catos

#vlan database
-vlan)#vlan 10 name 10F

show vlan-switch

interface fa0/1             -- 802.1Q만 지원
  switchport mode trunk
  no shut

vlan database
  vtp domain BCMSN
  vtp server

  show spanning-tree vlan 1 brief

-----------------

실습 LAB _ 05


sw13(config)#interface fa0/23
sw13(config-if)#switchport trunk encapsulation isl
sw13(config-if)#switchport mode trunk
sw13(config-if)#no shut
sw13(config-if)#exit
sw13(config)#interface fa0/24
sw13(config-if)#switchport trunk encapsulation isl
sw13(config-if)#switchport mode trunk
sw13(config-if)#no shut

sw13#show interface trunk

sw13(config)#vtp domain BCMSN
Domain name already set to BCMSN.
sw13(config)#vtp mode server
Device mode already VTP SERVER.

sw13(config)#vlan 10
sw13(config-vlan)#name VLAN_10
sw13(config-vlan)#exit
sw13(config)#vlan 20
sw13(config-vlan)#name VLAN_20
sw13(config-vlan)#exit
sw13(config)#vlan 30
sw13(config-vlan)#name VLAN_30
sw13(config-vlan)#exit
sw13(config)#vlan 40
sw13(config-vlan)#name VLAN_40
sw13(config-vlan)#exit
sw13(config)#vlan 50
sw13(config-vlan)#name VLAN_50
sw13(config-vlan)#exit
sw13(config)#vlan 60
sw13(config-vlan)#name VLAN_60
sw13(config-vlan)#exit

sw13(config)#spanning-tree mode rapid-pvst

sw13(config)#spanning-tree mode mst
sw13(config)#spanning-tree mst configuration
sw13(config-mst)#name BCMSN
sw13(config-mst)#revision 1
sw13(config-mst)#instance 1 vlan 10, 20, 30
sw13(config-mst)#instance 2 vlan 40, 50, 60
sw13(config-mst)#exit
sw13(config)#spanning-tree mst 1 root primary
sw13(config)#exit

sw13#show spanning-tree mst 1
sw13#show spanning-tree mst configuration
   
sw13(config)#interface fa0/24
sw13(config-if)#spanning-tree mst 2 cost 20000   (default 200000)
(mst 2 FA0/24 Blocking -> FA0/23 Blocking)



================
교재
EhterChannel

trunk
  802.1Q (IEEE)
  ISL (CISCO)

etherchannel
  LACP (IEEE) 802.3ad
  PAGP (CISCO)

interface range fa0/23-24
  channel-protocol lacp
  channel-group 1 mode (active, passive)
 
interface range fa0/23-24
  channel-protocol pagp
  channel-group 1 mode (desirable, auto)

interface range fa0/23-24
  channel-group 1 mode on



sw13(config)#interface range fa0/23-24
sw13(config-if-range)#channel-protocol lacp
sw13(config-if-range)#channel-group 1 mode active
Creating a port-channel interface Port-channel 1

sw13#show spanning-tree mst 2
Po1              Root FWD 100000    128.56   P2p

cost도 100000으로 줄어들었음

확인
show etherchannel 1 summary
interface port-channel 1

삭제
default interface range fa0/23-24
(configuration 삭제)
no interface port-channel 1
(논리적 인터페이스 삭제)



-------------
Multilayer Switch(L3, L2)
  switchport mode access
  switchport mode trunk
  routed port (no switchport) => switchport


  sw13(config)#interface fa0/23
  sw13(config-if)#no switchport   (*)
  sw13(config-if)#ip address 10.1.12.1 255.255.255.0
  sw13(config-if)#exit

  ip routing  (*)
  router eigrp 109


확인
show interface status

실습 LAB 6-2

sw13(config)#interface lo 0
sw13(config-if)#ip address 1.1.1.1 255.255.255.0
sw13(config-if)#exit

sw13(config)#interface fa0/23
sw13(config-if)#no switchport
sw13(config-if)#ip address 10.1.12.1 255.255.255.0
sw13(config-if)#exit

sw13(config)#ip routing
sw13(config)#router eigrp 109
sw13(config-router)#network 1.1.1.0 0.0.0.255
sw13(config-router)#network 10.1.12.0 0.0.0.255
sw13(config-router)#exit

확인
show ip route
ping 2.2.2.2

실습 LAB 6-3

L2 etherchannel
Interface range fa0/23-24
  channel-group 1 mode active
  switchport trunk encapsulation dot1q
  switchport mode trunk

L3 etherchannel
Interface range fa0/23-24
  no swithport
  channel-group 1 mode active
Interface port-channel 1
  ip add 10.1.12.1 255.255.255.0

ip routing
router eigrp 109
  network 10.1.12.0 0.0.0.255

2008/06/12 19:50 2008/06/12 19:50

(go to top)

블로그 »

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)


2008/06/11 21:51 2008/06/11 21:51

(go to top)