HP Procurve 上相机的 STP 关闭端口

网络工程 交换 生成树 hp-procurve
2022-02-19 12:46:16

我有一个专用于相机设备的 VLAN。我们了解到一些摄像头端口一直处于关闭状态,并且日志表明它是由 STP 引起的:

sw404(config)# show logging -r 7
 Keys:   W=Warning   I=Information
         M=Major     D=Debug E=Error
----  Reverse event Log listing: Events Since Boot  ----
I 11/06/19 07:45:02 00076 ports: port 7 is now on-line
I 11/06/19 07:45:02 00435 ports: port 7 is Blocked by STP
I 11/06/19 07:45:00 00077 ports: port 7 is now off-line
I 11/06/19 07:44:47 00076 ports: port 7 is now on-line
I 11/06/19 07:44:47 00435 ports: port 7 is Blocked by STP
I 11/06/19 07:44:44 00077 ports: port 7 is now off-line
I 11/06/19 07:42:54 00076 ports: port 7 is now on-line
I 11/06/19 07:42:54 00435 ports: port 7 is Blocked by STP
I 11/06/19 07:42:54 00077 ports: port 7 is now off-line
I 11/06/19 07:42:53 00076 ports: port 7 is now on-line
I 11/06/19 07:42:53 00435 ports: port 7 is Blocked by STP
I 11/06/19 07:42:51 00077 ports: port 7 is now off-line
I 11/06/19 07:42:38 00076 ports: port 7 is now on-line
I 11/06/19 07:42:38 00435 ports: port 7 is Blocked by STP
I 11/06/19 07:42:35 00077 ports: port 7 is now off-line
I 11/06/19 07:40:49 00076 ports: port 7 is now on-line
I 11/06/19 07:40:49 00435 ports: port 7 is Blocked by STP
I 11/06/19 07:40:47 00077 ports: port 7 is now off-line
I 11/06/19 07:40:33 00076 ports: port 7 is now on-line
I 11/06/19 07:40:33 00435 ports: port 7 is Blocked by STP

端口的配置应该完全防止STP影响端口的状态:

sw404(config)# show run int 7

Running configuration:

interface 7
   untagged vlan 2
   spanning-tree admin-edge-port
   spanning-tree bpdu-filter
   exit

即使添加了 BPDU 过滤器并将其设置为 admin-edge-port,我们仍然会收到错误消息。这些相机不支持 LLDP,我没有得到任何其他信息。如何阻止生成树抖动相机端口?

1个回答

如何阻止生成树抖动相机端口?

你已经做了你能做的,STP 不是问题。

I 11/06/19 07:40:33 00076 ports: port 7 is now on-line
I 11/06/19 07:40:33 00435 ports: port 7 is Blocked by STP

这种状态变化是由 STP 引起的 - 端口没有立即在线,只有当 STP 确定它没有导致循环时(这里它处于admin-edge-port模式,因为它立即在线,就像portfast在 Cisco 上一样)。

I 11/06/19 07:40:47 00077 ports: port 7 is now off-line
I 11/06/19 07:40:33 00076 ports: port 7 is now on-line

这种状态变化是由物理链路本身引起的 - 电缆故障、相机 NIC 或类似的东西。生成树永远不会将端口置于离线模式 -loop-protect如果配置,可能会。

使用 PoE 端口时,电源可能不足(通过分配,电缆太长或太细)。符合 802.3af 的布线(最高 13 W)不得超过 20 ohm 回路电阻,802.3at(PoE+,最高 25 W)要求 12.5 ohm 或更低。

cam 的配置也可能导致它重新启动或使链接进入睡眠状态(谢谢 Ron!)。

使用其他电缆或电源尝试使用凸轮。检查使用的电缆是否与其他设备有故障。