端口频繁updown 用的是华三原厂的光口转电口模块,未插网线也是一直翻动[H3C-6520]%Aug 18 23:03:53:555 2021 H3C-6520 IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet1/0/11 changed to up. %Aug 18 23:03:53:555 2021 H3C-6520 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/11 changed to up. %Aug 18 23:03:53:556 2021 H3C-6520 IFNET/3/PHY_UPDOWN: Physical state on the interface Vlan-interface1 changed to up. %Aug 18 23:03:53:559 2021 H3C-6520 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Vlan-interface1 changed to up. %Aug 18 23:03:54:772 2021 H3C-6520 IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet1/0/11 changed to down. %Aug 18 23:03:54:772 2021 H3C-6520 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/11 changed to down. %Aug 18 23:03:54:773 2021 H3C-6520 IFNET/3/PHY_UPDOWN: Physical state on the interface Vlan-interface1 changed to down. %Aug 18 23:03:54:773 2021 H3C-6520 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Vlan-interface1 changed to down.
[H3C-6520]%Aug 18 23:03:53:555 2021 H3C-6520 IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet1/0/11 changed to up. %Aug 18 23:03:53:555 2021 H3C-6520 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/11 changed to up. %Aug 18 23:03:53:556 2021 H3C-6520 IFNET/3/PHY_UPDOWN: Physical state on the interface Vlan-interface1 changed to up. %Aug 18 23:03:53:559 2021 H3C-6520 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Vlan-interface1 changed to up. %Aug 18 23:03:54:772 2021 H3C-6520 IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet1/0/11 changed to down. %Aug 18 23:03:54:772 2021 H3C-6520 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/11 changed to down. %Aug 18 23:03:54:773 2021 H3C-6520 IFNET/3/PHY_UPDOWN: Physical state on the interface Vlan-interface1 changed to down. %Aug 18 23:03:54:773 2021 H3C-6520 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Vlan-interface1 changed to down.
原因
10G 光转电模块(SFP+ → RJ45)本身带 PHY 芯片。未插网线时,模块内部 PHY 反复做自协商/信号检测,LOS(信号丢失)判定边缘抖动,向交换机上报 Tx/Rx 状态忽上忽下,约 1~2 秒一个周期(日志里 53→54 秒正是这个节奏)。
排查与处理(按优先级)
display transceiver interface Ten-GigabitEthernet 1/0/11display transceiver alarm interface Ten-GigabitEthernet 1/0/11 interface Ten-GigabitEthernet1/0/11
speed 1000 # 或按模块实际能力设置
undo shutdownshutdown,最干净,日志也不再刷。 interface Ten-GigabitEthernet1/0/11
link-delay up 2
link-delay down 2 # 抑制 up/down 抖动上报也可用 shutdown 之外的 link-flap protect enable(视版本支持情况)。
判断结论
另外,日志里还有 Vlan-interface1 跟着一起 up/down,是因为 VLAN1 里只有这一个口在 up,属于联动现象,口稳定后会自然消失。
暂无评论
> 光转电模块属于 SFP + 电口模块,模块内部 PHY 芯片在**空口(不插 RJ45 网线)时自协商电路异常,会间歇性误检测载波,造成物理层反复抖动**;这是 10G‑T 光转电模块特有现象,不是交换机光口硬件损坏。
> 插上网线接设备后一般就恢复稳定;**空口状态下就会疯狂 flapping**。Vlan‑interface 跟着 up/down,是因为该 VLAN 下只有这一个物理成员口,物理口震荡,Vlan‑IF 协议状态跟着联动变化。
## 第一步,收集诊断信息
```
#查看模块告警
display transceiver alarm interface Ten‑GigabitEthernet 1/0/11
#读取模块DDM诊断(温度、电压)
display transceiver diagnosis interface Ten‑GigabitEthernet 1/0/11
#看端口简要状态
display interface brief Ten‑GigabitEthernet 1/0/11
```
## 解决方案(按优先级)
### 方案 1:闲置不用时,直接 shutdown 该端口(最推荐生产现网)
模块插在槽位、暂时不用,直接管理性关闭端口,彻底消除震荡日志,不消耗 CPU:
```
interface Ten‑GigabitEthernet 1/0/11
shutdown
```
>
> ⚠️不要使用`port up-mode`,该命令用于纯光口;**对 SFP‑10G‑T 光转电模块无效,不能解决电口空口自协商抖动**H3C。
### 方案 2:端口震荡抑制 dampening(端口保持 undo shutdown,抑制日志 / 上层路由震荡)
如果模块后续要随时使用,不能 shutdown,开启接口 dampening 震荡抑制。
>
> 作用:端口还是物理震荡,但**不再频繁上送 CPU 日志、不触发 Vlan‑IF、路由表项反复刷新**;日志仍然会少量记录,但不会每秒刷屏,不影响协议层面。
```
interface Ten‑GigabitEthernet 1/0/11
dampening 5 1000 2000 60
```
参数说明:
- 5:半衰期 5 秒;1000:每次 down 增加惩罚值;2000 抑制门限;60 最大抑制时间。
>
> 注意:dampening 只是**抑制上层协议反应,不能消除模块硬件层面本身的 PHY 抖动**。
### 方案 3:交叉验证确认模块硬件
1)把该光转电模块挪到 S6520 其他空闲 SFP + 口,不插网线;观察是否同样 up‑down。
- 如果换端口依旧抖动:确认是 SFP‑10G‑T 模块本身空口 PHY 特性 / 模块硬件故障;插合格 CAT6A 网线接终端,若插上网线之后完全稳定,属于该类模块固有空口现象。
- 如果换端口不再抖动,则原交换机 SFP + 插槽异常。
>
> ⚠️重要:10GBASE‑T 光转电模块必须使用**CAT6A 超六类网线**,普通六类网线跑 10G 会协商异常、丢包、链路抖动。
### 方案 4:版本与固件
1. 升级交换机 S6520 的 Comware 系统版本到最新正式版本;部分老版本对 SFP‑10G‑T 电模块 PHY 信号处理存在优化补丁。
2. 部分批次 SFP‑10G‑T 模块本身固件存在空口检测缺陷,可以申请更换新批次模块。
## 现象解释:为什么 Vlan‑interface1 跟着一起 up‑down?
```
%Aug 18 23:03:53:555 H3C‑6520 IFNET/3/PHY_UPDOWN: Ten‑GigabitEthernet1/0/11 changed to up.
%Aug 18 23:03:53:555 IFNET/5/LINK_UPDOWN: Vlan‑interface1 changed to up.
%Aug 18 23:03:54:772 H3C‑6520 IFNET/3/PHY_UPDOWN: Ten‑GigabitEthernet1/0/11 changed to down.
%Aug 18 23:03:54:773 IFNET/5/LINK_UPDOWN: Vlan‑interface1 changed to down.
```
>
> Ten‑GigabitEthernet1/0/11 划入 VLAN 1,且**VLAN1 下当前只有这一个 UP 的物理成员端口**。
> Vlan‑interface 协议 UP 条件:VLAN 内至少存在一个 UP 的二层物理成员口;物理口反复震荡,Vlan‑IF 协议状态就同步跟着震荡。
>
> 规避:不要把业务三层网关放在只有这一个光转电端口的 VLAN,或者不用就 shutdown 物理口。
## 生产现场建议总结
1. **该端口暂时不用 → 直接 shutdown,最优,彻底消除日志震荡**。
2. 该端口后续随时要用不能 shutdown →配置`dampening`震荡抑制,避免影响上层 OSPF/STP 等协议。
3. 业务使用必须插合格 CAT6A 网线;不允许光转电模块长期空口带电运行。
4. 交叉验证模块,确认是否模块硬件损坏;必要时更换模块。
暂无评论
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论