生成树将所有端口作为“阻塞”开始,直到它可以确认没有循环。该过程最多可能需要 30 秒。在我的 2810 上,没有任何其他显式配置,只需要几秒钟。
I 01/01/90 00:00:42 ports: port 1 is Blocked by STP
I 01/01/90 00:00:45 ports: port 1 is now on-line
(配置)
hp-2810-1# show spanning-tree 1 config
Multiple Spanning Tree (MST) Configuration Information
STP Enabled [No] : Yes
Force Version [MSTP-operation] : MSTP-operation
Default Path Costs [802.1t] : 802.1t
MST Configuration Name : [...]
MST Configuration Revision : ... Switch Priority : 0
Forward Delay [15] : 15 Hello Time [2] : 2
Max Age [20] : 20 Max Hops [20] : 20
| Path Prio Admin Auto Admin Hello Root TCN BPDU
Port Type | Cost rity Edge Edge PtP Time Guard Guard Flt
----- --------- + --------- ----- ----- ----- ----- ------ ------ ------ ----
1 100/1000T | Auto 128 No Yes True Global No No No
hp-2810-1# show spanning-tree 1 detail
Status and Counters - CST Port(s) Detailed Information
Port : 1
Status : Up
BPDU Protection : No
BPDU Filtering : No
Errant BPDU Count : 0
Root Guard : No
TCN Guard : No
MST Region Boundary : Yes
External Path Cost : 20000
External Root Path Cost : 0
Administrative Hello Time : Global
Operational Hello Time : 2
AdminEdgePort : No
Auto Edge Port : Yes
OperEdgePort : Yes
AdminPointToPointMAC : True
OperPointToPointMAC : Yes
Aged BPDUs Count : 0
Loop-back BPDUs Count : 0
TC ACK Flag Transmitted : 0
TC ACK Flag Received : 0
MST MST CFG CFG TCN TCN
BPDUs Tx BPDUs Rx BPDUs Tx BPDUs Rx BPDUs Tx BPDUs Rx
---------- ---------- ---------- ---------- ---------- ----------
159598 0 0 0 0 0
如您所见,交换机自动将端口分类为“边缘”。Trk2
(LACP group to another switch)的状态显示OperEdgePort: No,因为它转到启用 STP 的交换机。请注意,端口启动速度更快,因为 LACP 在 100 毫秒内完成......
I 01/01/90 00:00:42 ports: port 41 is Blocked by LACP
I 01/01/90 00:00:42 ports: port 41 is Blocked by STP
I 01/01/90 00:00:42 ports: port 41 in Trk2 is now on-line
(忽略 1990,它没有 RTC,所有这些消息都发生在 NTP 设置时钟之前。)