Difference between revisions of "Spanning Tree protocol history"

From Teknologisk videncenter
Jump to: navigation, search
m
m (Cisco og Spanning-Tree)
Line 19: Line 19:
 
|}
 
|}
 
= 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 31:
 
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        2          1          3
Fa0/3              Root FWD 19        128.5    P2p
+
VLAN0100                    0        0        2          1          3
Fa0/12              Desg FWD 19       128.14  P2p
+
---------------------- -------- --------- -------- ---------- ----------
 +
2 vlans                      0        0       4          2          6
 
</source>
 
</source>
  

Revision as of 10:05, 30 July 2009

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.

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 (Cisaco 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

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        2          1          3
VLAN0100                     0         0        2          1          3
---------------------- -------- --------- -------- ---------- ----------
2 vlans                      0         0        4          2          6