我有 2 个运行 802.1w 的代工厂设备,它们都连接到一个也运行 802.1w 的接入交换机。
两个代工厂也相互连接。
我在每个设备上都配置了 vlan 以参与生成树,但是当我将标签/中继端口添加到 vlan 时,接入交换机上配置的终端设备会失去连接。一旦我从交换机 A 或交换机 B 上的 vlan 中删除标记端口,连接就会恢复。
当标记的端口添加到 vlan 时,为什么它不起作用对我来说没有多大意义。
SwitchA VLAN 配置:
vlan 16 by port
tagged ethe 2/1 ethe 8/21 to 8/22
router-interface ve 16
spanning-tree 802-1w
spanning-tree 802-1w priority 4096
SwitchB VLAN 配置:
vlan 16 by port
tagged ethe 2/2 ethe 5/1 to 5/2
router-interface ve 16
spanning-tree 802-1w
spanning-tree 802-1w priority 8192
这是 SwitchA 的输出:
端口 IEEE 802.1W 参数:
<--- Config Params --><-------------- Current state ----------------->
Port Pri PortPath P2P Edge Role State Designa- Designated
Num Cost Mac Port ted cost bridge
2/1 128 200000 F F DESIGNATED FORWARDING 0 10000012f21e880f
8/21 128 20000 T F DESIGNATED FORWARDING 0 10000012f21e880f
8/22 128 20000 T F DESIGNATED FORWARDING 0 10000012f21e880f
这是 SwitchB 的输出:
<--- Config Params -->|<------------- Current state ------------------->
Port Pri PortPath P2P Edge Role State Designa- Designated
Num Cost Mac Port ted cost bridge
2/2 128 200000 F F ALTERNATE DISCARDING 19 f010001380fa0480
5/1 128 20000 T F DESIGNATED FORWARDING 0 f010001380fa0480
5/2 128 20000 T F DESIGNATED FORWARDING 0 f010001380fa0480
现在有了这样的配置,连接丢失了。当我从任一交换机上卸下 5/1-5/2 或 8/21-8/22 时,连接会恢复。
下面的接入交换机有以下内容:
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/18 Desg FWD 19 128.18 P2p
Fa0/46 Desg FWD 19 128.46 P2p
Fa0/47 Root FWD 19 128.47 P2p
Fa0/48 Desg FWD 19 128.48 P2p
端口 47+48 是去往代工厂的上行链路端口,而 18+46 是去往终端用户设备。
这对我来说没有意义,为什么会发生这种情况。
任何人都对此有解释或解决方法?
谢谢
更多信息
来自 SwitchA:
--- VLAN 16 [ STP Instance owned by VLAN 16 ] ----------------------------
Bridge IEEE 802.1W Parameters:
Bridge Bridge Bridge Bridge Force tx
Identifier MaxAge Hello FwdDly Version Hold
hex sec sec sec cnt
10000012f21e880f 20 2 15 Default 3
RootBridge RootPath DesignatedBri- Root Max Fwd Hel
Identifier Cost dge Identifier Port Age Dly lo
hex hex sec sec sec
10000012f21e880f 0 10000012f21e880f Root 20 15 2
Port IEEE 802.1W Parameters:
<--- Config Params --><-------------- Current state ----------------->
Port Pri PortPath P2P Edge Role State Designa- Designated
Num Cost Mac Port ted cost bridge
2/1 128 200000 F F DESIGNATED FORWARDING 0 10000012f21e880f
8/21 128 20000 F F DESIGNATED FORWARDING 0 10000012f21e880f
8/22 128 20000 F F DESIGNATED FORWARDING 0 10000012f21e880f
从交换机B:
--- VLAN 16 [ STP Instance owned by VLAN 16 ] ----------------------------
Bridge IEEE 802.1W Parameters:
Bridge Bridge Bridge Bridge Force tx
Identifier MaxAge Hello FwdDly Version Hold
hex sec sec sec cnt
2000000cdba0d20f 20 2 15 Default 3
RootBridge RootPath DesignatedBri- Root Max Fwd Hel
Identifier Cost dge Identifier Port Age Dly lo
hex hex sec sec sec
10000012f21e880f 200019 f010001380fa0480 2/2 20 15 2
<--- Config Params -->|<------------- Current state ------------------->
Port Pri PortPath P2P Edge Role State Designa- Designated
Num Cost Mac Port ted cost bridge
2/2 128 200000 F F ALTERNATE DISCARDING 19 f010001380fa0480
5/1 128 20000 T F DESIGNATED FORWARDING 0 f010001380fa0480
5/2 128 20000 T F DESIGNATED FORWARDING 0 f010001380fa0480
REDID 配置,现在获得以下内容
开关A:
--- VLAN 16 [ STP Instance owned by VLAN 16 ] ----------------------------
Bridge IEEE 802.1W Parameters:
Bridge Bridge Bridge Bridge Force tx
Identifier MaxAge Hello FwdDly Version Hold
hex sec sec sec cnt
10000012f21e880f 20 2 15 Default 3
RootBridge RootPath DesignatedBri- Root Max Fwd Hel
Identifier Cost dge Identifier Port Age Dly lo
hex hex sec sec sec
10000012f21e880f 0 10000012f21e880f Root 20 15 2
Port IEEE 802.1W Parameters:
<--- Config Params --><-------------- Current state ----------------->
Port Pri PortPath P2P Edge Role State Designa- Designated
Num Cost Mac Port ted cost bridge
2/1 0 200000 F F DESIGNATED FORWARDING 0 10000012f21e880f
8/21 128 20000 F F DESIGNATED FORWARDING 0 10000012f21e880f
8/22 128 20000 F F DESIGNATED FORWARDING 0 10000012f21e880f
开关B:
--- VLAN 16 [ STP Instance owned by VLAN 16 ] ----------------------------
Bridge IEEE 802.1W Parameters:
Bridge Bridge Bridge Bridge Force tx
Identifier MaxAge Hello FwdDly Version Hold
hex sec sec sec cnt
2000000cdba0d20f 20 2 15 Default 3
RootBridge RootPath DesignatedBri- Root Max Fwd Hel
Identifier Cost dge Identifier Port Age Dly lo
hex hex sec sec sec
10000012f21e880f 20000 10000012f21e880f 5/1 20 15 2
Port IEEE 802.1W Parameters:
<--- Config Params -->|<------------- Current state ------------------->
Port Pri PortPath P2P Edge Role State Designa- Designated
Num Cost Mac Port ted cost bridge
2/2 128 200000 F F ALTERNATE DISCARDING 19 f010001380fa0480
5/1 128 20000 F F ROOT FORWARDING 0 10000012f21e880f
5/2 128 20000 F F ROOT FORWARDING 0 10000012f21e880f