dwa switche jako STP root Temat rozwiązany

Problemy związane ze switchingiem
Wiadomość
Autor
rysic
wannabe
wannabe
Posty: 297
Rejestracja: 31 lip 2012, 09:16
Kontakt:

dwa switche jako STP root

#1

#1 Post autor: rysic »

W zasadzie to nie wiem od czego zacząć diagnozę i co jeszce wkleić, ale mam w sieci dwa switche jako bridge root:

Kod: Zaznacz cały

PLNETSW030#sh span

VLAN0002
  Spanning tree enabled protocol ieee
  Root ID    Priority    32770
             Address     f078.169d.9980
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32770  (priority 32768 sys-id-ext 2)
             Address     f078.169d.9980
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  300 sec

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/1               Desg FWD 19        128.1    P2p Edge
Fa0/2               Desg FWD 19        128.2    P2p Edge
Fa0/4               Desg FWD 19        128.4    P2p Edge
Fa0/5               Desg FWD 19        128.5    P2p Edge

Kod: Zaznacz cały

PLNETSW004#sh span

VLAN0001
  Spanning tree enabled protocol rstp
  Root ID    Priority    8193
             Address     64ae.0c0e.5580
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    8193   (priority 8192 sys-id-ext 1)
             Address     64ae.0c0e.5580
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  300 sec

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/1               Desg FWD 19        128.1    Shr
Fa0/2               Desg FWD 19        128.2    P2p
Fa0/4               Desg FWD 19        128.4    P2p
Fa0/8               Desg FWD 19        128.8    P2p Edge
Fa0/9               Desg FWD 19        128.9    P2p Edge
Fa0/10              Desg FWD 19        128.10   P2p Edge
Fa0/31              Desg FWD 19        128.31   P2p
Fa0/42              Desg FWD 19        128.42   P2p Edge

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------

Fa0/45              Desg FWD 19        128.45   P2p
Fa0/46              Desg FWD 19        128.46   P2p Edge
Fa0/47              Desg FWD 19        128.47   P2p Edge
Fa0/48              Desg FWD 19        128.48   P2p Edge
Gi0/1               Desg FWD 4         128.49   P2p
Gi0/4               Desg FWD 4         128.52   P2p



PLNETSW004#sh span vlan 2

VLAN0002
  Spanning tree enabled protocol rstp
  Root ID    Priority    8194
             Address     64ae.0c0e.5580
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    8194   (priority 8192 sys-id-ext 2)
             Address     64ae.0c0e.5580
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  300 sec

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/1               Desg FWD 19        128.1    Shr
Fa0/4               Desg FWD 19        128.4    P2p
Fa0/9               Desg FWD 19        128.9    P2p Edge
Fa0/10              Desg FWD 19        128.10   P2p Edge
Fa0/17              Desg FWD 19        128.17   P2p Edge
Fa0/19              Desg FWD 19        128.19   P2p Edge
Fa0/20              Desg FWD 19        128.20   P2p Edge
Fa0/21              Desg FWD 19        128.21   P2p Edge
Połączone są bezpośrednio trunkiem.
Wprawdzie są inne protokoły STP, ale powinny się dogadać, prawda? Tylko MSTP jak mu coś nie pasi to tworzy sobie mniejsze instancje STP.
Protokołu na SW30 nie mogę zmienić na RSTP, bo mi AccessPointy Aruby łapią kernel panic :-)

freel4ncer
wannabe
wannabe
Posty: 581
Rejestracja: 27 wrz 2007, 01:13

Re: dwa switche jako STP root

#2

#2 Post autor: freel4ncer »

poka topologie
Czy te switche wogole ze soba gadaja ? BPDU filter gdzies nie masz ?

rysic
wannabe
wannabe
Posty: 297
Rejestracja: 31 lip 2012, 09:16
Kontakt:

Re: dwa switche jako STP root

#3

#3 Post autor: rysic »

Konfiguracja portów:

Kod: Zaznacz cały

PLNETSW004#sh run int fa0/31
Building configuration...

Current configuration : 196 bytes
!
interface FastEthernet0/31
 description PLNETSW030
 switchport mode trunk
 switchport nonegotiate
 no logging event link-status
 no snmp trap link-status
 storm-control action shutdown
end

Kod: Zaznacz cały

PLNETSW030#sh run int g0/1
Building configuration...

Current configuration : 277 bytes
!
interface GigabitEthernet0/1
 description Uplink
 switchport mode trunk
 switchport nonegotiate
 switchport backup interface Fa0/8
 switchport backup interface Fa0/8 preemption mode forced
 switchport backup interface Fa0/8 preemption delay 5
 logging event link-status
end
Dla pewności interfejs fa0/8 wyłączyłem.

Kod: Zaznacz cały

PLNETSW030#sh cdp nei
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
                  D - Remote, C - CVTA, M - Two-port Mac Relay

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
PLNETSW004.pl.int.kaufland
                 Gig 0/1           138              S I   WS-C2960- Fas 0/31

Kod: Zaznacz cały

PLNETSW004#sh cdp nei
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
                  D - Remote, C - CVTA, M - Two-port Mac Relay

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
PLNETRIV01   Fas 0/3           178               R    250       inpath0_0
PLNETSW006.pl.int.kaufland
                 Gig 0/4           155              S I   WS-C2960- Gig 0/3
PLNETSW005.pl.int.kaufland
                 Gig 0/1           150              S I   WS-C2960- Gig 0/1
PLNETSW030.pl.int.kaufland
                 Fas 0/31          159              S I   WS-C2960C Gig 0/1
Topologia pierścienia: SW4<->SW5<->SW7<->SW8<->SW6<->SW4
I: SW4<->SW30
Dodatkowo po WiFi SW30 do któregoś switcha (jak tam złapie zasięg), ale tak jak pisałem, ten port tymczasowo wyłączyłem na SW30.

rysic
wannabe
wannabe
Posty: 297
Rejestracja: 31 lip 2012, 09:16
Kontakt:

Re: dwa switche jako STP root

#4

#4 Post autor: rysic »

Odkryłem coś!!!

Jak tylko na interfejsie g0/1 na sw30 zrobię

Kod: Zaznacz cały

no  switchport backup interface Fa0/8
(i nie ważne, że interfejs Fa0/8 jest wyłączony) to nagle STP się naprawia!!!!!!

Kod: Zaznacz cały

PL3361NETSW030#sh span

VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    8193
             Address     64ae.0c0e.5580
             Cost        19
             Port        9 (GigabitEthernet0/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
             Address     f078.169d.9980
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  300 sec

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1               Root FWD 19        128.9    P2p
i co ciekawe, widoczne jest też dla V-LANu 1 (trochę mnie dziwiło, że nie ma, ale uznałem, że nie pokazuje, bo nie mam na żadnym interfejsie ustawionego, poza trunk).
Co jest grane??? :-( Już tak się cieszyłem, że mogę używać "switchport backup interface", bo rozwiązywało mi to sporo problemów.

martino76
CCIE
CCIE
Posty: 883
Rejestracja: 17 gru 2010, 15:23
Lokalizacja: Barczewo

Re: dwa switche jako STP root

#5

#5 Post autor: martino76 »

Wszystko działa jak należy masz skonfigurowany Flex Link na interface GigabitEthernet0/1 za pomocą komendy backup. Jeśli stosujesz Flex Link to STP jest w stanie disable.


Zerknij na http://www.cisco.com/c/en/us/td/docs/sw ... html#16140

Pozdro,

rysic
wannabe
wannabe
Posty: 297
Rejestracja: 31 lip 2012, 09:16
Kontakt:

Re: dwa switche jako STP root

#6

#6 Post autor: rysic »

Bingo!!! :-)
Właśnie też już doczytałem, ale na początku zaskoczenie było niesamowite, bo podważało to czego tyle razy się uczyłem -> protokoły STP powinny się dogadać :-)
Dzięki za pomoc!!! :-)

ODPOWIEDZ