Professional Documents
Culture Documents
X00030003 第13章 生成树协议
X00030003 第13章 生成树协议
STP
STP
RSTPMSTP
STP
RSTP
MSTP
PCA
1
A
1 1 1
PCB
www.h3c.com
STP
B
ROOT
A C
D
www.h3c.com
STP
RSTP
MSTP
BPDU BPDU
BPDU
SWB SWC
www.h3c.com
BPDU
BPDU
IDRootID
RootPathCost
IDDesignatedBridgeID
ID DesignatedPortID
Root Bridge
BPDU
BPDU
www.h3c.com
SWA
BridgeID: 0.0000-0000-0000
SWB SWC
IDBridgePriorityMAC
BridgeMacAddress
ID
www.h3c.com
SWA
Root
DP DP
Cost=10 Cost=20
RP RP
Cost=30
DP AP
SWB SWC
Designated Port
RootPathCost
Root Port
Designated
Bridge
STP
www.h3c.com
SWA
Root
1000M 100M
Cost=10 Cost=20
1000M 100M
Cost=30
10M 10M
SWB SWC
RootPathCost
Cost
www.h3c.com
ID
SWA
Root
DP DP
Cost=10 Cost=10
RP RP
DP AP
SWB SWC
BridgeID: 0.0000-0000-0001 BridgeID: 0.0000-0000-0002
DP DP
Cost=10 Cost=10
RP AP
SWD
ID
ID
www.h3c.com
ID
SWA
BridgeID: 0.0000-0000-0001
Root
G0/1 G0/2
Cost=10 Cost=10
RP AP
SWB
IDID
www.h3c.com
STP BPDU
Disabled
BPDU
Blocking
BPDU
-- Listening
BPDU
-- Learning
BPDU
Forwarding
www.h3c.com
Blocking
ListeningLearningForwarding
Forwarding Delay15
Blocking
Listening
Forwarding Delay
Learning
Forwarding Delay
Forwarding
www.h3c.com
Forwarding Delay
SWA Server
DP DP
30
RP RP
DP
SWB SWC
www.h3c.com
STP
RSTP
MSTP
RSTP
www.h3c.com
RSTP
STP RSTP
2
Forwarding Delay
2
Forwarding Delay
www.h3c.com
STP
RSTP
MSTP
STPRSTP
TrunkVLAN
VLAN
VLANTrunk
SWA Server
VLAN
VLAN 10 VLAN 20
www.h3c.com
MSTP
MSTPMultiple Spanning Tree Protocol
VLAN
TrunkVLAN
SWA Server
A: VLAN1~10
B: VLAN11~20
N Y Y
N N Y
MSTPRSTP
MSTPSTPRSTP
www.h3c.com
Blocking Discarding
Forwarding Delay
Learning Learning
Forwarding Forwarding
STP RSTP/MSTP
www.h3c.com
STP
RSTP
MSTP
STP
STP
[Switch] stp enable
STP
[Switch-Ethernet1/0/1] stp disable
STP
www.h3c.com
STP
[Switch] stp [ instance instance-id ] priority priority
[Switch-Ethernet1/0/1] stp edged-port enable
www.h3c.com
STP
SWA SWB
[SWA]stp enable [SWB]stp enable
[SWA]stp priority 0 [SWB]stp priority 4096
www.h3c.com
STP
[SWA]display stp
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge :32768.000f-e23e-f9b0 ID
Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :32768.000f-e23e-f9b0 / 0
CIST RegRoot/IRPC :32768.000f-e23e-f9b0 / 0
CIST RootPortId :0.0
BPDU-Protection :disabled
Bridge Config-
Digest-Snooping :disabled
TC or TCN received :0
......
ID
www.h3c.com
STP
STP
RSTPMSTP
www.h3c.com