STP ve SEP


stp

 

  1. STP konfigürasyonu.
Cihazlarda  Spanning Tree Protocol(STP) defaultta açık değilse açmak için aşagıdaki komutları kullanalım.
STP  yapılandırması:
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname CLIguru-S1
[CLIguru-S1]stp enable
[CLIguru-S1]stp mode stp

 

<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname CLIguru-S2
[CLIguru-S2]stp enable
[CLIguru-S2]stp mode stp

 

Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname CLIguru-S3
[CLIguru-S3]stp enable
[CLIguru-S3]stp mode stp

 

 

<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname CLIguru-S4
[CLIguru-S4]stp enable
[CLIguru-S4]stp mode stp

 

 

STP durum bilgilerini görüntüleyelim.
[CLIguru-S1]display stp
——-[CIST Global Info][Mode STP]——-
CIST Bridge         :32768.4c1f-cc45-aadc
Bridge Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc45-aac1 / 20000
CIST RegRoot/IRPC   :32768.4c1f-cc45-aadc / 0
CIST RootPortId     :128.9
BPDU-Protection     :Disabled
TC or TCN received  :36
TC count per hello  :2
STP Converge Mode   :Normal
Share region-configuration :Enabled
Time since last TC  :0 days 0h:0m:1s
……output omit……

 

 

[CLIguru-S2]display stp
——-[CIST Global Info][Mode STP]——-
CIST Bridge         :32768.4c1f-cc45-aac1
Bridge Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc45-aac1 / 0
CIST RegRoot/IRPC   :32768.4c1f-cc45-aac1 / 0
CIST RootPortId     :0.0
BPDU-Protection     :Disabled
TC or TCN received  :20
TC count per hello  :0
STP Converge Mode   :Normal
Share region-configuration :Enabled
Time since last TC  :0 days 0h:1m:4s
……output omit……

 

[CLIguru-S1]display stp brief
MSTID  Port                        Role  STP State     Protection
0    GigabitEthernet0/0/9        ROOT  FORWARDING      NONE
0    GigabitEthernet0/0/10       ALTE  DISCARDING      NONE
0    GigabitEthernet0/0/13       DESI  FORWARDING      NONE
0    GigabitEthernet0/0/14       DESI  FORWARDING      NONE

 

[CLIguru-S2]display stp brief
MSTID  Port                        Role  STP State     Protection
0    GigabitEthernet0/0/9        DESI  FORWARDING      NONE
0    GigabitEthernet0/0/10       DESI  FORWARDING      NONE
0    GigabitEthernet0/0/23       DESI  FORWARDING      NONE
0    GigabitEthernet0/0/24       DESI  FORWARDING      NONE
CLIguru-S2 root bridge durumdadır , interface durumlarını da bu cihaz belirler.

 

  1. Root bridge kontrol edelim.

 

Primary root bridge  olarak CLIguru-S1 yapılandıralım , secondary  root bridge olarakda CLIguru-S2 cihazını yapılandıralım.
[CLIguru-S1]stp root primary

 

[CLIguru-S2]stp root secondary

 

STP konfigürasyonunu display stp diyerek görebiliriz.
[CLIguru-S1]display stp
——-[CIST Global Info][Mode STP]——-
CIST Bridge         :0    .4c1f-cc45-aadc
Bridge Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :0    .4c1f-cc45-aadc / 0
CIST RegRoot/IRPC   :0    .4c1f-cc45-aadc / 0
CIST RootPortId     :0.0
BPDU-Protection     :Disabled
CIST Root Type      :Primary root
TC or TCN received  :67
TC count per hello  :0
STP Converge Mode   :Normal
Share region-configuration :Enabled
Time since last TC  :0 days 0h:0m:15s
……output omit……

 

[CLIguru-S2]display stp
——-[CIST Global Info][Mode STP]——-
CIST Bridge         :4096 .4c1f-cc45-aac1
Bridge Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :0    .4c1f-cc45-aadc / 20000
CIST RegRoot/IRPC   :4096 .4c1f-cc45-aac1 / 0
CIST RootPortId     :128.9
BPDU-Protection     :Disabled
CIST Root Type      :Secondary root
TC or TCN received  :26
TC count per hello  :0
STP Converge Mode   :Normal
Share region-configuration :Enabled
Time since last TC  :0 days 0h:0m:1s
……output omit……

 

 

  1. root bridge olarak CLIguru-S1 yapılandıralım , 2. root bridge olarakda CLIguru-S2 cihazını yapılandıralım.

 

Priority değeri küçük  olanın degeri daha iyidir.
CLIguru-S1 cihazının priority degerini 8192 olarak , CLIguru-S2 cihazının priority degerini ise 4096 olarak değiştirelim.
[CLIguru-S1]undo stp root
[CLIguru-S1]stp priority 8192

 

[CLIguru-S2]undo stp root
[CLIguru-S2]stp priority 4096

 

STP bilgilerini görüntüleyelim.
[CLIguru-S1]display stp
——-[CIST Global Info][Mode STP]——-
CIST Bridge         :8192 .4c1f-cc45-aadc
Bridge Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :4096 .4c1f-cc45-aac1 / 20000
CIST RegRoot/IRPC   :8192 .4c1f-cc45-aadc / 0
CIST RootPortId     :128.9
BPDU-Protection     :Disabled
TC or TCN received  :79
TC count per hello  :1
STP Converge Mode   :Normal
Share region-configuration :Enabled
Time since last TC  :0 days 0h:0m:0s
……output omit……

 

[CLIguru-S2]display stp
——-[CIST Global Info][Mode STP]——-
CIST Bridge         :4096 .4c1f-cc45-aac1
Bridge Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :4096 .4c1f-cc45-aac1 / 0
CIST RegRoot/IRPC   :4096 .4c1f-cc45-aac1 / 0
CIST RootPortId     :0.0
BPDU-Protection     :Disabled
TC or TCN received  :88
TC count per hello  :0
STP Converge Mode   :Normal
Share region-configuration :Enabled
Time since last TC  :0 days 0h:0m:9s
……output omit……

 

 

CLIguru-S2 cihazının root bridge değeri daha yüksek olsaydı  CLIguru-S1  root bridge olarak seçilecekti.
  1. ROOT interface seçimi.
CLIguru-S1 cihazının  STP bilgilerine bakalım.
[CLIguru-S1]display stp  brief
MSTID  Port                        Role  STP State     Protection
0    GigabitEthernet0/0/9        ROOT  FORWARDING      NONE
0    GigabitEthernet0/0/10       ALTE  DISCARDING      NONE
0    GigabitEthernet0/0/13       DESI  FORWARDING      NONE
0    GigabitEthernet0/0/14       DESI  FORWARDING      NONE

 

 

CLIguru-S1 cihazı G0/0/9   root interfacedir.Varsayılan priority değeri 128 dir.Düşük priority değeri  olan cihaz iyidir.
CLIguru-S2 cihazının G0/0/9 interfacesinin priority değerini 32 , G0/0/10 interfacesinin ise priority değerini 16 olarak  ayarlayalım.
[CLIguru-S2]interface GigabitEthernet 0/0/9
[CLIguru-S2-GigabitEthernet0/0/9]stp port priority 32
[CLIguru-S2-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10
[CLIguru-S2-GigabitEthernet0/0/10]stp port priority 16

 

 

CLIguru-S1 cihazının port durumlarına bakalım.
[CLIguru-S1]display stp brief
MSTID  Port                        Role  STP State     Protection
0    GigabitEthernet0/0/9        ALTE  DISCARDING      NONE
0    GigabitEthernet0/0/10       ROOT  FORWARDING      NONE
0    GigabitEthernet0/0/13       DESI  FORWARDING      NONE
0    GigabitEthernet0/0/14       DESI  FORWARDING      NONE

 

 

Cihazın G0/0/10 interfacesi  root interface olarak  seçilmiştir.
  1. Designated portları kontrol
CLIguru-S3 ve CLIguru-S4 cihazlarının direk interfacelerine bakalım.
[CLIguru-S3]display stp interface Ethernet 0/0/1
—-[CIST][Port1(Ethernet0/0/1)][DISCARDING]—-
Port Protocol       :Enabled
Port Role           :Alternate Port
Port Priority       :128
Port Cost(Dot1T )   :Config=auto / Active=199999
Designated Bridge/Port   :32768.5489-98ec-f00a / 128.1
Port Edged          :Config=default / Active=disabled
Point-to-point      :Config=auto / Active=true
Transit Limit       :147 packets/hello-time
Protection Type     :None
Port STP Mode       :STP
Port Protocol Type  :Config=auto / Active=dot1s
PortTimes           :Hello 2s MaxAge 20s FwDly 15s RemHop 0
TC or TCN send      :17
TC or TCN received  :52
BPDU Sent           :172
TCN: 0, Config: 172, RST: 0, MST: 0
BPDU Received       :206
TCN: 0, Config: 206, RST: 0, MST: 0

 

[CLIguru-S4]display stp interface Ethernet 0/0/1
—-[CIST][Port1(Ethernet0/0/1)][FORWARDING]—-
Port Protocol       :Enabled
Port Role           :Designated Port
Port Priority       :128
Port Cost(Dot1T )   :Config=auto / Active=199999
Designated Bridge/Port   :32768.5489-98ec-f00a / 128.1
Port Edged          :Config=default / Active=disabled
Point-to-point      :Config=auto / Active=true
Transit Limit       :147 packets/hello-time
Protection Type     :None
Port STP Mode       :STP
Port Protocol Type  :Config=auto / Active=dot1s
PortTimes           :Hello 2s MaxAge 20s FwDly 15s RemHop 20
TC or TCN send      :37
TC or TCN received  :17
BPDU Sent           :181
TCN: 0, Config: 181, RST: 0, MST: 0
BPDU Received       :172
TCN: 0, Config: 172, RST: 0, MST: 0

 

 

 

CLIguru-S3 E0/0/1 interfacesini alternate interface olarak ayarlayalım ve CLIguru-S4 cihazını da  designated interface olarak  ayarlayalım.
CLIguru-S4 E0/0/24 interfacenin cost değerini 2000000 yapalım.
[CLIguru-S4-Ethernet0/0/24]stp cost 2000000

 

Interface bilgilerine bakalım
[CLIguru-S3]display stp interface Ethernet 0/0/1
—-[CIST][Port1(Ethernet0/0/1)][FORWARDING]—-
Port Protocol       :Enabled
Port Role           :Designated Port
Port Priority       :128
Port Cost(Dot1T )   :Config=auto / Active=199999
Designated Bridge/Port   :32768.5489-98ec-f022 / 128.1
Port Edged          :Config=default / Active=disabled
Point-to-point      :Config=auto / Active=true
Transit Limit       :147 packets/hello-time
Protection Type     :None
Port STP Mode       :STP
Port Protocol Type  :Config=auto / Active=dot1s
PortTimes           :Hello 2s MaxAge 20s FwDly 15s RemHop 20
TC or TCN send      :52
TC or TCN received  :52
BPDU Sent           :284
TCN: 0, Config: 284, RST: 0, MST: 0
BPDU Received       :380
TCN: 0, Config: 380, RST: 0, MST: 0

 

 

[CLIguru-S4]display stp interface Ethernet 0/0/1
—-[CIST][Port1(Ethernet0/0/1)][DISCARDING]—-
Port Protocol       :Enabled
Port Role           :Alternate Port
Port Priority       :128
Port Cost(Dot1T )   :Config=auto / Active=199999
Designated Bridge/Port   :4096.4c1f-cc45-aac1 / 128.30
Port Edged          :Config=default / Active=disabled
Point-to-point      :Config=auto / Active=true
Transit Limit       :147 packets/hello-time
Protection Type     :None
Port STP Mode       :STP
Port Protocol Type  :Config=auto / Active=dot1s
PortTimes           :Hello 2s MaxAge 20s FwDly 15s RemHop 0
TC or TCN send      :7
TC or TCN received  :162
BPDU Sent           :8
TCN: 7, Config: 1, RST: 0, MST: 0
BPDU Received       :1891
TCN: 0, Config: 1891, RST: 0, MST: 0

 

CLIguru-S3 Ethernet 0/0/1 interfacesi designated  interface olmuştur  ve  CLIguru-S4 ise alternate  interfacesi olmuştur.
  1. RSTP konfigürasyonunu yapılandıralım ve kontrol edelim.
CLIguru-S1 ve CLIguru-S2 cihazların da VLANIF interfacelerine IP address verelim ve kontrol edelim.
[CLIguru-S1]interface Vlanif 1
[CLIguru-S1-Vlanif1]ip address 10.0.1.1 24

 

[CLIguru-S2]interface Vlanif 1

[CLIguru-S2-Vlanif1]ip address 10.0.1.2 24

 

[CLIguru-S1]ping 10.0.1.2
PING 10.0.1.2: 56  data bytes, press CTRL_C to break
Reply from 10.0.1.2: bytes=56 Sequence=1 ttl=255 time=9 ms
Reply from 10.0.1.2: bytes=56 Sequence=2 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=3 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=4 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=5 ttl=254 time=1 ms
— 10.0.1.2 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/9 ms

 

 

CLIguru-S1 cihazının  interface bilgilerine bakalım.
[CLIguru-S1]display stp brief
MSTID  Port                        Role  STP State     Protection
0    GigabitEthernet0/0/9        ALTE  DISCARDING      NONE
0    GigabitEthernet0/0/10       ROOT  FORWARDING      NONE
0    GigabitEthernet0/0/13       DESI  FORWARDING      NONE
0    GigabitEthernet0/0/14       DESI  FORWARDING      NONE

 

 

CLIguru-S1 cihazının  G 0/0/10 interfacesi  root interface dir.
CLIguru-S1 cihazından CLIguru-S2 cihazına ping atarak   haberleşip haberleşmediklerini kontrol edelim.
Not : CLIguru-S1 cihazında  ping komutu çalıştırdıktan sonra CLIguru-S2 GigabitEthernet 0/0/10 interfacesini devre dışı bırakın.
[CLIguru-S1]ping -c 20 10.0.1.2
PING 10.0.1.2: 56  data bytes, press CTRL_C to break
Reply from 10.0.1.2: bytes=56 Sequence=1 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=2 ttl=254 time=1 ms
Dec 21 2011 16:20:44-05:13 CLIguru-S1 %%01IFNET/4/IF_STATE(l)[5]:Interface GigabitEthernet0/0/10 has turned into DOWN state.
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Reply from 10.0.1.2: bytes=56 Sequence=18 ttl=255 time=15 ms
Reply from 10.0.1.2: bytes=56 Sequence=19 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=20 ttl=254 time=1 ms
— 10.0.1.2 ping statistics —
20 packet(s) transmitted
5 packet(s) received
75.00% packet loss
round-trip min/avg/max = 1/3/15 ms

 

[CLIguru-S2]interface GigabitEthernet 0/0/10
[CLIguru-S2-GigabitEthernet0/0/10]shutdown
CLIguru-S1 cihazının interface  durumlarına bakalım.

 

[CLIguru-S1]display stp brief
MSTID  Port                        Role  STP State     Protection
0    GigabitEthernet0/0/9        ROOT  FORWARDING      NONE
0    GigabitEthernet0/0/13       DESI  FORWARDING      NONE
0    GigabitEthernet0/0/14       DESI  FORWARDING      NONE

 

 

CLIguru-S1 cihazının GigabitEthernet 0/0/9 interfacesi  root interface  olur ve FORWARDING durumuna girer.

 

CLIguru-S2 cihazının G 0/0/10 interfacesini etkinleştirelim

 

[CLIguru-S2]interface GigabitEthernet 0/0/10
[CLIguru-S2-GigabitEthernet0/0/10]undo shutdown

 

 

 

RSTP konfigürasyonu.
[CLIguru-S1]stp mode rstp
[CLIguru-S2]stp mode rstp
[CLIguru-S3]stp mode rstp

 

[CLIguru-S4]stp mode rstp

 

 

 

CLIguru-S1 cihazının  interface durumlarına bakalım.
[CLIguru-S1]display stp brief
MSTID      Port                      Role  STP State     Protection
0    GigabitEthernet0/0/9        ALTE  DISCARDING      NONE
0    GigabitEthernet0/0/10       ROOT  FORWARDING      NONE
0    GigabitEthernet0/0/13       DESI  FORWARDING      NONE
0    GigabitEthernet0/0/14       DESI  FORWARDING      NONE

 

 

 

CLIguru-S1 cihazının  G 0/0/10 interfacesi  root interface dir.
CLIguru-S1 cihazından CLIguru-S2 cihazına ping atarak   haberleşip haberleşmediklerini kontrol edelim.
Not : CLIguru-S1 cihazında  ping komutu çalıştırdıktan sonra CLIguru-S2 GigabitEthernet 0/0/10 interfacesini devre dışı bırakın.
[CLIguru-S1]ping -c 20 10.0.1.2
PING 10.0.1.2: 56  data bytes, press CTRL_C to break
Reply from 10.0.1.2: bytes=56 Sequence=1 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=2 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=3 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=4 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=5 ttl=254 time=1 ms
Dec 21 2011 16:37:10-05:13 CLIguru-S1 %%01IFNET/4/IF_STATE(l)[7]:Interface GigabitEthernet0/0/10 has turned into DOWN state.
Request time out
Reply from 10.0.1.2: bytes=56 Sequence=7 ttl=255 time=10 ms
Reply from 10.0.1.2: bytes=56 Sequence=8 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=9 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=10 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=11 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=12 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=13 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=14 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=15 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=16 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=17 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=18 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=19 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=20 ttl=254 time=1 ms
— 10.0.1.2 ping statistics —
20 packet(s) transmitted
19 packet(s) received
5.00% packet loss
round-trip min/avg/max = 1/1/10 ms
[CLIguru-S2]interface GigabitEthernet 0/0/10
[CLIguru-S2-GigabitEthernet0/0/10]shutdown

 

 

 

CLIguru-S1 cihazının interface durumlarına tekrar bakalım.
[CLIguru-S1]display stp brief
MSTID  Port                        Role  STP State     Protection
0    GigabitEthernet0/0/9        ROOT  FORWARDING      NONE
0    GigabitEthernet0/0/13       DESI  FORWARDING      NONE
0    GigabitEthernet0/0/14       DESI  FORWARDING      NONE

 

 

CLIguru-S1 cihazının GigabitEthernet 0/0/9 interfacesi  root interface  olur ve FORWARDING durumuna girer.
CLIguru-S2 cihazının G0/0/10 interfacesini enable edelim.
[CLIguru-S2]interface GigabitEthernet 0/0/10
[CLIguru-S2-GigabitEthernet0/0/10]undo shutdown
  • RSTP ve STP arasındaki compatibiliy yapılandırmasını gerçekleştirelim
    CLIguru-S1 cihazonda STPyi etkinleştirelim.
    [CLIguru-S1]stp mode stp

     

     

    CLIguru-S1 cihazının interface durumlarını inceleyelim.

     

    [CLIguru-S1]display stp brief
    MSTID  Port                        Role  STP State     Protection
    0    GigabitEthernet0/0/9        ALTE  DISCARDING      NONE
    0    GigabitEthernet0/0/10       ROOT  FORWARDING      NONE
    0    GigabitEthernet0/0/13       DESI  FORWARDING      NONE
    0    GigabitEthernet0/0/14       DESI  FORWARDING      NONE

     

    CLIguru-S1 cihazının  G 0/0/10 interfacesi  root interface dir.
    CLIguru-S1 cihazından CLIguru-S2 cihazına ping atarak   haberleşip haberleşmediklerini kontrol edelim.
    Not : CLIguru-S1 cihazında  ping komutu çalıştırdıktan sonra CLIguru-S2 GigabitEthernet 0/0/10 interfacesini devre dışı bırakın.
    [CLIguru-S1]ping -c 20 10.0.1.2
    PING 10.0.1.2: 56  data bytes, press CTRL_C to break
    Reply from 10.0.1.2: bytes=56 Sequence=1 ttl=254 time=1 ms
    Reply from 10.0.1.2: bytes=56 Sequence=2 ttl=254 time=1 ms
    Dec 21 2011 16:20:44-05:13 CLIguru-S1 %%01IFNET/4/IF_STATE(l)[5]:Interface GigabitEthernet0/0/10 has turned into DOWN state.
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out
    Reply from 10.0.1.2: bytes=56 Sequence=18 ttl=255 time=15 ms
    Reply from 10.0.1.2: bytes=56 Sequence=19 ttl=254 time=1 ms
    Reply from 10.0.1.2: bytes=56 Sequence=20 ttl=254 time=1 ms
    — 10.0.1.2 ping statistics —
    20 packet(s) transmitted
    5 packet(s) received
    75.00% packet loss
    round-trip min/avg/max = 1/3/15 ms

     

     

    [CLIguru-S2]interface GigabitEthernet 0/0/10
    [CLIguru-S2-GigabitEthernet0/0/10]shutdown

     

     

     

    CLIguru-S1 cihazının interface durumlaırna bakalım.

     

    [CLIguru-S1]display stp brief
    MSTID  Port                        Role  STP State     Protection
    0    GigabitEthernet0/0/9        ROOT  FORWARDING      NONE
    0    GigabitEthernet0/0/13       DESI  FORWARDING      NONE
    0    GigabitEthernet0/0/14       DESI  FORWARDING      NONE

     

    CLIguru-S1 cihazının GigabitEthernet 0/0/9 interfacesi  root interface  olur ve FORWARDING durumdadır.
    STP ,RSTP ile uyumlu ama hala STP mekanizmasını kullanılır .
    CLIguru-S2 cihazının G0/0/10 interfacesini enable edelim.
    [CLIguru-S2]interface GigabitEthernet 0/0/10
    [CLIguru-S2-GigabitEthernet0/0/10]undo shutdown

     

     

     

     

    1. MSTP’yi yapılandıralım ve kontrol edelim.
    VLAN 2 ve VLAN 20 oluşturalım ve ilgili interfacelere ekleyelim.
    [CLIguru-S1]vlan batch 2 to 20
    Info: This operation may take a few seconds. Please wait for a moment…done.
    [CLIguru-S1]interface GigabitEthernet 0/0/9
    [CLIguru-S1-GigabitEthernet0/0/9]port link-type trunk
    [CLIguru-S1-GigabitEthernet0/0/9]port trunk allow-pass vlan 1 TO 20
    [CLIguru-S1-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10
    [CLIguru-S1-GigabitEthernet0/0/10]port link-type trunk
    [CLIguru-S1-GigabitEthernet0/0/10]port trunk allow-pass vlan 1 TO 20
    [CLIguru-S1-GigabitEthernet0/0/10]interface GigabitEthernet 0/0/13
    [CLIguru-S1-GigabitEthernet0/0/13]port link-type trunk
    [CLIguru-S1-GigabitEthernet0/0/13]port trunk allow-pass vlan 1 TO 20
    [CLIguru-S1-GigabitEthernet0/0/13]interface GigabitEthernet 0/0/14
    [CLIguru-S1-GigabitEthernet0/0/14]port link-type trunk
    [CLIguru-S1-GigabitEthernet0/0/14]port trunk allow-pass vlan 1 TO 20

     

     

    [CLIguru-S2]vlan batch 1 to 20
    Info: This operation may take a few seconds. Please wait for a moment…done.
    [CLIguru-S2]interface GigabitEthernet 0/0/9
    [CLIguru-S2-GigabitEthernet0/0/9]port link-type trunk
    [CLIguru-S2-GigabitEthernet0/0/9]port trunk allow-pass vlan 1 TO 20
    [CLIguru-S2-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10
    [CLIguru-S2-GigabitEthernet0/0/10]port link-type trunk
    [CLIguru-S2-GigabitEthernet0/0/10]port trunk allow-pass vlan 1 TO 20
    [CLIguru-S2-GigabitEthernet0/0/10]interface GigabitEthernet 0/0/23
    [CLIguru-S2-GigabitEthernet0/0/23]port link-type trunk
    [CLIguru-S2-GigabitEthernet0/0/23]port trunk allow-pass vlan 1 TO 20
    [CLIguru-S2-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24
    [CLIguru-S2-GigabitEthernet0/0/24]port link-type trunk
    [CLIguru-S2-GigabitEthernet0/0/24]port trunk allow-pass vlan 1 TO 20

     

    [CLIguru-S3]vlan batch 1 to 20
    Info: This operation may take a few seconds. Please wait for a moment…done.
    [CLIguru-S3]interface Ethernet0/0/1
    [CLIguru-S3-Ethernet0/0/1]port link-type trunk
    [CLIguru-S3-Ethernet0/0/1]port trunk allow-pass vlan 1 TO 20
    [CLIguru-S3-Ethernet0/0/1]interface Ethernet0/0/13
    [CLIguru-S3-Ethernet0/0/13]port link-type trunk
    [CLIguru-S3-Ethernet0/0/13]port trunk allow-pass vlan 1 TO 20
    [CLIguru-S3-Ethernet0/0/13]interface Ethernet0/0/23
    [CLIguru-S3-Ethernet0/0/23]port link-type trunk
    [CLIguru-S3-Ethernet0/0/23]port trunk allow-pass vlan 1 TO 20

     

    [CLIguru-S4]vlan batch 1 to 20
    Info: This operation may take a few seconds. Please wait for a moment…done.
    [CLIguru-S4]interface Ethernet0/0/1
    [CLIguru-S4-Ethernet0/0/1]port link-type trunk
    [CLIguru-S4-Ethernet0/0/1]port trunk allow-pass vlan 1 TO 20
    [CLIguru-S4-Ethernet0/0/1]interface Ethernet0/0/14
    [CLIguru-S4-Ethernet0/0/14]port link-type trunk
    [CLIguru-S4-Ethernet0/0/14]port trunk allow-pass vlan 1 TO 20
    [CLIguru-S4-Ethernet0/0/14]interface Ethernet0/0/24
    [CLIguru-S4-Ethernet0/0/24]port link-type trunk
    [CLIguru-S4-Ethernet0/0/24]port trunk allow-pass vlan 1 TO 20

     

     

    MSTP konfigürasyonu.
    VLAN 1 ve 10 arasını instance  1’e  , VLAN  11 ve 20 arasını  instance 2  olarak ayarlayalım.
    [CLIguru-S1]stp mode mstp
    [CLIguru-S1]stp region-configuration
    [CLIguru-S1-mst-region]region-name RG1
    [CLIguru-S1-mst-region]instance 1 vlan 1 TO 10
    [CLIguru-S1-mst-region]instance 2 vlan 11 to 20
    [CLIguru-S1-mst-region]active region-configuration
    Info: This operation may take a few seconds. Please wait for a moment….done.

     

    [CLIguru-S2]stp mode mstp
    [CLIguru-S2]stp region-configuration
    [CLIguru-S2-mst-region]region-name RG1
    [CLIguru-S2-mst-region]instance 1 vlan 1 TO 10
    [CLIguru-S2-mst-region]instance 2 vlan 11 to 20
    [CLIguru-S2-mst-region]active region-configuration
    Info: This operation may take a few seconds. Please wait for a moment….done.
    [CLIguru-S3]STP mode mstp
    Info: This operation may take a few seconds. Please wait for a moment…..done.
    [CLIguru-S3]stp region-configuration
    [CLIguru-S3-mst-region]region-name RG1
    [CLIguru-S3-mst-region]instance 1 vlan 1 to 10
    [CLIguru-S3-mst-region]instance 2 vlan 11 to 20

     

     

    [CLIguru-S4]STP mode mstp
    Info: This operation may take a few seconds. Please wait for a moment…..done.
    [CLIguru-S4]stp region-configuration
    [CLIguru-S4-mst-region]region-name RG1
    [CLIguru-S4-mst-region]instance 1 vlan 1 to 10
    [CLIguru-S4-mst-region]instance 2 vlan 11 to 20

     

     

    VLAN ve MSTP bağlantısını görüntüleyelim.
    [CLIguru-S1]display stp region-configuration
    Oper configuration
    Format selector    :0
    Region name        :RG1
    Revision level     :0
    Instance   VLANs Mapped
    0       21 to 4094
    1       1 to 10
    2       11 to 20

     

    CLIguru-S1 cihazının instance 1 ‘i priority değerini 4096 , instance 2 nin priority değerini de 8192 olarak ayarlayalım.
    CLIguru-S2 cihazının instance 2 nin priority değerini 4096 , instance  1in priority değerini de 8192 olarak ayarlayalım.

     

    [CLIguru-S1]stp instance 1 priority 4096
    [CLIguru-S1]stp instance 2 priority 8192

     

    [CLIguru-S2]stp instance 2 priority 4096
    [CLIguru-S2]stp instance 1 priority 8192

     

     

    Yaptığımız değişiklikleri kontrol edelim.
    [CLIguru-S1]display stp instance 1
    ——-[MSTI 1 Global Info]——-
    MSTI Bridge ID      :4096.4c1f-cc45-aadc
    MSTI RegRoot/IRPC   :4096.4c1f-cc45-aadc / 0
    MSTI RootPortId     :0.0
    Master Bridge       :4096.4c1f-cc45-aac1
    Cost to Master      :20000
    TC received         :20
    TC count per hello  :0
    ……output omit……

     

    [CLIguru-S2]display stp instance 2
    ——-[MSTI 2 Global Info]——-
    MSTI Bridge ID      :4096.4c1f-cc45-aac1
    MSTI RegRoot/IRPC   :4096.4c1f-cc45-aac1 / 0
    MSTI RootPortId     :0.0
    Master Bridge       :4096.4c1f-cc45-aac1
    Cost to Master      :0
    TC received         :16
    TC count per hello  :0
    ……output omit……

     

     

    CLIguru-S1 cihazının instance1 root bridge , CLIguru-S2 cihazının da instance 2 root bridge olmuştur.
    Cihazların interface durumlarına bakalım.
    [CLIguru-S1]display stp instance 1 brief
    MSTID  Port                        Role  STP State     Protection
    1    GigabitEthernet0/0/9        DESI  FORWARDING      NONE
    1    GigabitEthernet0/0/10       DESI  FORWARDING      NONE
    1    GigabitEthernet0/0/13       DESI  FORWARDING      NONE
    1    GigabitEthernet0/0/14       DESI  FORWARDING      NONE

     

    [CLIguru-S2]display stp instance 1 brief
    MSTID  Port                        Role  STP State     Protection
    1    GigabitEthernet0/0/9        ROOT  FORWARDING      NONE
    1    GigabitEthernet0/0/10       ALTE  DISCARDING      NONE
    1    GigabitEthernet0/0/23       DESI  FORWARDING      NONE
    1    GigabitEthernet0/0/24       DESI  FORWARDING      NONE

     

    [CLIguru-S3]display stp instance 1 brief
    MSTID  Port                        Role  STP State     Protection
    1    Ethernet0/0/1               ALTE  DISCARDING      NONE
    1    Ethernet0/0/13              ROOT  FORWARDING      NONE
    1    Ethernet0/0/23              ALTE  DISCARDING      NONE

     

    [CLIguru-S4]display stp instance 1 brief
    MSTID  Port                        Role  STP State     Protection
    1    Ethernet0/0/1               DESI  FORWARDING      NONE
    1    Ethernet0/0/14              ROOT  FORWARDING      NONE
    1    Ethernet0/0/24              ALTE  DISCARDING      NONE

     

     

    CLIguru-S1 cihazının instance 1 root bridgedir.
    İnstance 2 için interface durumlarına bakalım.
    [CLIguru-S1]display stp instance 2 brief
    MSTID  Port                        Role  STP State     Protection
    2    GigabitEthernet0/0/9        ROOT  FORWARDING      NONE
    2    GigabitEthernet0/0/10       ALTE  DISCARDING      NONE
    2    GigabitEthernet0/0/13       DESI  FORWARDING      NONE

     

    [CLIguru-S2]display stp instance 2 brief
    MSTID  Port                        Role  STP State     Protection
    2    GigabitEthernet0/0/9        DESI  FORWARDING      NONE
    2    GigabitEthernet0/0/10       DESI  FORWARDING      NONE
    2    GigabitEthernet0/0/23       DESI  FORWARDING      NONE
    2    GigabitEthernet0/0/24       DESI  FORWARDING      NONE
    [CLIguru-S3]display stp instance 2 brief
    MSTID  Port                        Role  STP State     Protection
    2    Ethernet0/0/1               ALTE  DISCARDING      NONE
    2    Ethernet0/0/13              ALTE  DISCARDING      NONE
    2    Ethernet0/0/23              ROOT  FORWARDING      NONE
    [CLIguru-S4]display stp instance 2 brief
    MSTID  Port                        Role  STP State     Protection
    2    Ethernet0/0/1               DESI  FORWARDING      NONE
    2    Ethernet0/0/14              DESI  FORWARDING      NONE
    2    Ethernet0/0/24              ROOT  FORWARDING      NONE

     

     

    CLIguru-S2 cihazının instance 2 degeri root bridgedir.

    Final Configurations

     

    [CLIguru-S1]display current-configuration
    #
    !Software Version V100R006C00SPC800
    sysname CLIguru-S1
    #
    vlan batch 2 to 20
    #
    stp instance 0 priority 8192
    stp instance 1 priority 4096
    stp instance 2 priority 8192
    #
    stp region-configuration
    region-name RG1
    instance 1 vlan 1 to 10
    instance 2 vlan 11 to 20
    active region-configuration
    #
    interface Vlanif1
    ip address 10.0.1.1 255.255.255.0
    #
    interface GigabitEthernet0/0/9
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    #
    interface GigabitEthernet0/0/10
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    #
    interface GigabitEthernet0/0/13
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    #
    Return

     

    [CLIguru-S2]display current-configuration
    #
    !Software Version V100R006C00SPC800
    sysname CLIguru-S2
    #
    vlan batch 2 to 20
    #
    stp instance 1 priority 8192
    stp instance 2 priority 4096
    stp instance 0 root secondary
    #
    stp region-configuration
    region-name RG1
    instance 1 vlan 1 to 10
    instance 2 vlan 11 to 20
    active region-configuration
    #
    interface Vlanif1
    ip address 10.0.1.2 255.255.255.0
    #
    interface GigabitEthernet0/0/9
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    stp instance 0 port priority 32
    #
    interface GigabitEthernet0/0/10
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    stp instance 0 port priority 16
    #
    interface GigabitEthernet0/0/23
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    #
    interface GigabitEthernet0/0/24
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    #
    Return
    [CLIguru-S3]display current-configuration
    #
    !Software Version V100R006C00SPC800
    sysname CLIguru-S3
    #
    vlan batch 2 to 20
    #
    stp region-configuration
    region-name RG1
    instance 1 vlan 1 to 10
    instance 2 vlan 11 to 20
    active region-configuration
    #
    interface Ethernet0/0/1
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    #
    interface Ethernet0/0/13
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    #
    interface Ethernet0/0/23
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    #
    Return
    [CLIguru-S4]display current-configuration
    #
    !Software Version V100R006C00SPC800
    sysname CLIguru-S4
    #
    vlan batch 2 to 20
    #
    stp region-configuration
    region-name RG1
    instance 1 vlan 1 to 10
    instance 2 vlan 11 to 20
    active region-configuration
    #
    interface Ethernet0/0/1
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    #
    interface Ethernet0/0/14
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    #
    interface Ethernet0/0/23
    #
    interface Ethernet0/0/24
    port link-type trunk
    port trunk allow-pass vlan 2 to 20
    stp instance 0 cost 2000000
    #
    Return