Difference between revisions of "Spanning Tree protocol history"

From Teknologisk videncenter
Jump to: navigation, search
m
m (Undo revision 34870 by Heth (talk))
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
Den originale Spanning Tree Protocol [[IEEE 802.1D]] var udviklet til Bridgede eller Switchede netværk uden [[VLAN]]'s. Derfor var det nødvendigt at videreudvikle [[Spanning tree]] protokollen for at tilgode netværk der anvender [[VLAN]].
+
Den originale Spanning Tree Protocol [[IEEE 802.1D]] var udviklet til Bridgede eller Switchede netværk uden [[VLAN]]'s. Derfor var det nødvendigt at videreudvikle [[Spanning tree]] protokollen for at tilgodese netværk der anvender [[VLAN]].
  
 
Cisco anbefaler at man anvender [[PVST+]] i større netværk, men mange andre anbefaler anvendelsen af [[MST]] da det er en [[IEEE]] standard, samt at konfigurationen er mere overskuelig.
 
Cisco anbefaler at man anvender [[PVST+]] i større netværk, men mange andre anbefaler anvendelsen af [[MST]] da det er en [[IEEE]] standard, samt at konfigurationen er mere overskuelig.
Line 12: Line 12:
 
| [[CST]]  || [[IEEE 802.1Q]]-1998 || 1998  || 1        || [[IEEE 802.1Q]] || Kan anvendes || -
 
| [[CST]]  || [[IEEE 802.1Q]]-1998 || 1998  || 1        || [[IEEE 802.1Q]] || Kan anvendes || -
 
|- align="center"
 
|- align="center"
| [[MST]]  || [[IEEE 802.1Q]]-2005 || 2005  || (Cisaco 16) || [[IEEE 802.1Q]] || Kan anvendes || -
+
| [[MST]]  || [[IEEE 802.1Q]]-2005 || 2005  || (Cisco 16) || [[IEEE 802.1Q]] || Kan anvendes || -
 
|- align="center"
 
|- align="center"
 
| [[PVST]] || Cisco proprietær    ||align="center"| -      || Per-VLAN  || [[ISL]]    || Kan anvendes || -
 
| [[PVST]] || Cisco proprietær    ||align="center"| -      || Per-VLAN  || [[ISL]]    || Kan anvendes || -
Line 18: Line 18:
 
| [[PVST+]]|| Cisco proprietær    || -      || Per-VLAN  || [[IEEE 802.1Q]],[[ISL]] || Kan anvendes || [[PVST]],[[PVST+]],[[CST]]
 
| [[PVST+]]|| Cisco proprietær    || -      || Per-VLAN  || [[IEEE 802.1Q]],[[ISL]] || Kan anvendes || [[PVST]],[[PVST+]],[[CST]]
 
|}
 
|}
 +
'''Bemærk:''' Rapid Spanning Tree Protocol (RSTP) er implementeret i RPVST+. Når Cisco dokumentation ofte næver RSTP betyder det at der anvendes RPVST+.
 
= Cisco og Spanning-Tree =
 
= Cisco og Spanning-Tree =
Default Spanning-Tree protokol på Cisco Switche er [[PVST+]] (Per-VLAN Spanning Tree plus)
+
Default Spanning-Tree protokol på Cisco Switche er [[PVST+]] (Per-VLAN Spanning Tree plus) som er vist som '''pvst'''.
 +
== Cisco PVST+ ==
 
<source lang="cli">
 
<source lang="cli">
 
Dist2#<input>conf t</input>
 
Dist2#<input>conf t</input>
Line 30: Line 32:
 
Dist2(config)#<input>spanning-tree mode pvst</input>
 
Dist2(config)#<input>spanning-tree mode pvst</input>
 
Dist2(config)#<input>^Z</input>
 
Dist2(config)#<input>^Z</input>
Dist2#
 
 
*Mar  1 00:16:47.111: %SYS-5-CONFIG_I: Configured from console by console
 
*Mar  1 00:16:47.111: %SYS-5-CONFIG_I: Configured from console by console
Dist2#<input>show spanning-tree</input>
+
Dist2#<input>show spanning-tree summary</input>
 +
Switch is in <notice>pvst mode</notice>
 +
Root bridge for: none
 +
Extended system ID          is enabled
 +
Portfast Default            is disabled
 +
PortFast BPDU Guard Default  is disabled
 +
Portfast BPDU Filter Default is disabled
 +
Loopguard Default            is disabled
 +
EtherChannel misconfig guard is enabled
 +
UplinkFast                  is disabled
 +
BackboneFast                is disabled
 +
Configured Pathcost method used is short
  
VLAN0001
+
Name                  Blocking Listening Learning Forwarding STP Active
  Spanning tree enabled protocol <notice>ieee</notice>
+
---------------------- -------- --------- -------- ---------- ----------
  Root ID    Priority    32769
+
VLAN0001                     0        0        0          3          3
            Address    0018.b989.8400
+
VLAN0100                    0        0        0          3          3
            Cost        19
+
---------------------- -------- --------- -------- ---------- ----------
            Port        5 (FastEthernet0/3)
+
2 vlans                      0        0        0          6          6
            Hello Time  2 sec Max Age 20 sec  Forward Delay 15 sec
+
</source>
 
+
== Cisco RPVST+ ==
  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
+
<source lang="cli">
            Address    001b.0c05.b400
+
Dist2#<input>conf t</input>
            Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
+
Enter configuration commands, one per line. End with CNTL/Z.
            Aging Time  300 sec
+
Dist2(config)#<input>spanning-tree mode rapid-pvst</input>
 +
Dist2(config)#<input>^Z</input>
 +
*Mar 1 00:16:47.111: %SYS-5-CONFIG_I: Configured from console by console
 +
Dist2#<input>show spanning-tree summary</input>
 +
Switch is in <notice>rapid-pvst mode</notice>
 +
Root bridge for: none
 +
Extended system ID           is enabled
 +
Portfast Default            is disabled
 +
PortFast BPDU Guard Default is disabled
 +
Portfast BPDU Filter Default is disabled
 +
Loopguard Default            is disabled
 +
EtherChannel misconfig guard is enabled
 +
UplinkFast                  is disabled
 +
BackboneFast                is disabled
 +
Configured Pathcost method used is short
  
Interface          Role Sts Cost      Prio.Nbr Type
+
Name                  Blocking Listening Learning Forwarding STP Active
------------------- ---- --- --------- -------- --------------------------------
+
---------------------- -------- --------- -------- ---------- ----------
Fa0/1              Desg FWD 19        128.3    P2p
+
VLAN0001                    0        0        0          3          3
Fa0/3              Root FWD 19        128.5    P2p
+
VLAN0100                    0        0        0          3          3
Fa0/12              Desg FWD 19       128.14  P2p
+
---------------------- -------- --------- -------- ---------- ----------
 +
2 vlans                      0        0       0          6          6
 
</source>
 
</source>
  
{{#css: 
+
{{Source cli}}
    pre {  font-family: Lucida Console; font-weight: bold; font-size: 14px; color: #00FF00; background: black; margin: 10px 50px; width: 800px; line-height: 200%; overflow: auto;}
 
}}
 
 
[[Category:Cisco]][[Category:CCDP]][[Category:CCNP]][[Category:IOS]][[Category:Network]][[Category:Spanning Tree]]
 
[[Category:Cisco]][[Category:CCDP]][[Category:CCNP]][[Category:IOS]][[Category:Network]][[Category:Spanning Tree]]

Latest revision as of 08:11, 29 August 2016

Den originale Spanning Tree Protocol IEEE 802.1D var udviklet til Bridgede eller Switchede netværk uden VLAN's. Derfor var det nødvendigt at videreudvikle Spanning tree protokollen for at tilgodese netværk der anvender VLAN.

Cisco anbefaler at man anvender PVST+ i større netværk, men mange andre anbefaler anvendelsen af MST da det er en IEEE standard, samt at konfigurationen er mere overskuelig.

Spanning tree protokoller
Protokol Standard/Proprietær Årstal Instanser Trunk typer Rapid Virker sammen med
STP IEEE 802.1D-1990 1990 1 ingen Nej -
CST IEEE 802.1Q-1998 1998 1 IEEE 802.1Q Kan anvendes -
MST IEEE 802.1Q-2005 2005 (Cisco 16) IEEE 802.1Q Kan anvendes -
PVST Cisco proprietær - Per-VLAN ISL Kan anvendes -
PVST+ Cisco proprietær - Per-VLAN IEEE 802.1Q,ISL Kan anvendes PVST,PVST+,CST

Bemærk: Rapid Spanning Tree Protocol (RSTP) er implementeret i RPVST+. Når Cisco dokumentation ofte næver RSTP betyder det at der anvendes RPVST+.

Cisco og Spanning-Tree

Default Spanning-Tree protokol på Cisco Switche er PVST+ (Per-VLAN Spanning Tree plus) som er vist som pvst.

Cisco PVST+

Dist2#<input>conf t</input>
Enter configuration commands, one per line.  End with CNTL/Z.
Dist2(config)#<input>spanning-tree mode ?</input>
  mst         Multiple spanning tree mode
  <notice>pvst        Per-Vlan spanning tree mode</notice>
  rapid-pvst  Per-Vlan rapid spanning tree mode

Dist2(config)#<input>spanning-tree mode pvst</input>
Dist2(config)#<input>^Z</input>
*Mar  1 00:16:47.111: %SYS-5-CONFIG_I: Configured from console by console
Dist2#<input>show spanning-tree summary</input>
Switch is in <notice>pvst mode</notice>
Root bridge for: none
Extended system ID           is enabled
Portfast Default             is disabled
PortFast BPDU Guard Default  is disabled
Portfast BPDU Filter Default is disabled
Loopguard Default            is disabled
EtherChannel misconfig guard is enabled
UplinkFast                   is disabled
BackboneFast                 is disabled
Configured Pathcost method used is short

Name                   Blocking Listening Learning Forwarding STP Active
---------------------- -------- --------- -------- ---------- ----------
VLAN0001                     0         0        0          3          3
VLAN0100                     0         0        0          3          3
---------------------- -------- --------- -------- ---------- ----------
2 vlans                      0         0        0          6          6

Cisco RPVST+

Dist2#<input>conf t</input>
Enter configuration commands, one per line.  End with CNTL/Z.
Dist2(config)#<input>spanning-tree mode rapid-pvst</input>
Dist2(config)#<input>^Z</input>
*Mar  1 00:16:47.111: %SYS-5-CONFIG_I: Configured from console by console
Dist2#<input>show spanning-tree summary</input>
Switch is in <notice>rapid-pvst mode</notice>
Root bridge for: none
Extended system ID           is enabled
Portfast Default             is disabled
PortFast BPDU Guard Default  is disabled
Portfast BPDU Filter Default is disabled
Loopguard Default            is disabled
EtherChannel misconfig guard is enabled
UplinkFast                   is disabled
BackboneFast                 is disabled
Configured Pathcost method used is short

Name                   Blocking Listening Learning Forwarding STP Active
---------------------- -------- --------- -------- ---------- ----------
VLAN0001                     0         0        0          3          3
VLAN0100                     0         0        0          3          3
---------------------- -------- --------- -------- ---------- ----------
2 vlans                      0         0        0          6          6