软路由 WAN 口非常频繁掉线,已排查多种问题,均无果,求帮助。

2023-08-08 08:26:22 +08:00
 PqZS58MLPBHFpEqm

问题描述

家里配置了一套软路由,使用有 1~2 年都非常稳定,速度和稳定性都很好。

但是,上周末家里的软路由出现问题,WAN 口频繁掉线,掉线后在 2 分钟之后又自动重连,过 30 分钟~2 个小时之间又再次掉线重连,该现象一直持续。

查看日志后关键信息显示是 Interface 'wan' has link connectivity loss 紧接着就 Interface 'wan' is now down (具体日志在后文)

配置信息

  1. 上海电信宽带 + 光猫 DHCP 自动拨号
  2. 软路由是 R2S/R5S + github 主流固件
  3. 路由器是 Redmi AX5 + AX 5400
  4. 网络链路是 光猫(千兆口)-> 软路由 Wan -> 软路由 Lan -> 无线路由器 Wan (所有设备都是连接 Redmi 无线路由器)

排查思路及结果

  1. 分别是 R2S/R5S + 两套 openwrt 固件(都重刷 DHDAXCW+stupidloud )总共四次尝试,均是相同报错。备注:只换了机器,网线和电源还是一套
  2. 无线路由器有线插了 NAS+树莓派,把它们都拔下来后,依旧是相同报错。
  3. 无线路由器从 AX5 换成 AX5400 ,网络配置不变,依旧是相同报错。
  4. 把软路由从家庭网络中去除,变成 光猫 -> 无线路由器,因为没有 openwrt 了,获取不到日志,但使用过程是「正常」的,玩了几把游戏都没有掉线体验。

相关日志

全量日志: https://gist.github.com/Wei-Xia/58e206ec7cb6e11b3c7f1c14f6bb3c0b 报错部分:

Sun Aug  6 21:36:56 2023 daemon.notice netifd: Network device 'eth0' link is up
Sun Aug  6 21:36:56 2023 daemon.notice netifd: Interface 'wan' has link connectivity
Sun Aug  6 21:36:56 2023 daemon.notice netifd: Interface 'wan' is setting up now
Sun Aug  6 21:36:56 2023 kern.info kernel: [21954.520425] rk_gmac-dwmac fe2a0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
Sun Aug  6 21:36:56 2023 daemon.notice netifd: Interface 'wan6' has link connectivity
Sun Aug  6 21:36:56 2023 daemon.notice netifd: Interface 'wan6' is setting up now
Sun Aug  6 21:36:56 2023 daemon.notice netifd: wan (26341): udhcpc: started, v1.36.0
Sun Aug  6 21:36:56 2023 daemon.notice netifd: wan (26341): udhcpc: broadcasting discover
Sun Aug  6 21:36:57 2023 kern.info kernel: [21955.468674] rk_gmac-dwmac fe2a0000.ethernet eth0: Link is Down
Sun Aug  6 21:36:57 2023 daemon.notice netifd: Network device 'eth0' link is down
Sun Aug  6 21:36:57 2023 daemon.notice netifd: Interface 'wan' has link connectivity loss
Sun Aug  6 21:36:57 2023 daemon.notice netifd: Interface 'wan6' has link connectivity loss
Sun Aug  6 21:36:57 2023 daemon.notice netifd: wan (26341): udhcpc: received SIGTERM
Sun Aug  6 21:36:57 2023 daemon.notice netifd: wan (26341): udhcpc: entering released state
Sun Aug  6 21:36:57 2023 daemon.notice netifd: wan (26341): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wan" } (Permission denied)
Sun Aug  6 21:36:57 2023 daemon.notice netifd: Interface 'wan' is now down
Sun Aug  6 21:36:57 2023 daemon.notice netifd: Interface 'wan6' is now down
Sun Aug  6 21:37:18 2023 daemon.notice netifd: Network device 'eth0' link is up
Sun Aug  6 21:37:18 2023 daemon.notice netifd: Interface 'wan' has link connectivity
Sun Aug  6 21:37:18 2023 daemon.notice netifd: Interface 'wan' is setting up now
Sun Aug  6 21:37:18 2023 daemon.notice netifd: Interface 'wan6' has link connectivity
Sun Aug  6 21:37:18 2023 daemon.notice netifd: Interface 'wan6' is setting up now
Sun Aug  6 21:37:18 2023 kern.info kernel: [21976.870422] rk_gmac-dwmac fe2a0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
Sun Aug  6 21:37:18 2023 daemon.notice netifd: wan (27250): udhcpc: started, v1.36.0
Sun Aug  6 21:37:18 2023 daemon.notice netifd: wan (27250): udhcpc: broadcasting discover
Sun Aug  6 21:37:21 2023 kern.info kernel: [21979.893842] rk_gmac-dwmac fe2a0000.ethernet eth0: Link is Down
Sun Aug  6 21:37:21 2023 daemon.notice netifd: Network device 'eth0' link is down
Sun Aug  6 21:37:21 2023 daemon.notice netifd: Interface 'wan' has link connectivity loss
Sun Aug  6 21:37:21 2023 daemon.notice netifd: Interface 'wan6' has link connectivity loss
Sun Aug  6 21:37:21 2023 daemon.notice netifd: wan (27250): udhcpc: broadcasting discover
Sun Aug  6 21:37:21 2023 daemon.notice netifd: wan (27250): udhcpc: received SIGTERM
Sun Aug  6 21:37:21 2023 daemon.notice netifd: wan (27250): udhcpc: entering released state
Sun Aug  6 21:37:21 2023 daemon.notice netifd: wan (27250): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wan" } (Permission denied)
Sun Aug  6 21:37:21 2023 daemon.notice netifd: Interface 'wan' is now down
Sun Aug  6 21:37:21 2023 daemon.notice netifd: Interface 'wan6' is now down
Sun Aug  6 21:37:31 2023 daemon.notice netifd: Network device 'eth0' link is up
Sun Aug  6 21:37:31 2023 daemon.notice netifd: Interface 'wan' has link connectivity
Sun Aug  6 21:37:31 2023 daemon.notice netifd: Interface 'wan' is setting up now
Sun Aug  6 21:37:31 2023 daemon.notice netifd: Interface 'wan6' has link connectivity
Sun Aug  6 21:37:31 2023 daemon.notice netifd: Interface 'wan6' is setting up now
Sun Aug  6 21:37:31 2023 kern.info kernel: [21989.381455] rk_gmac-dwmac fe2a0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
Sun Aug  6 21:37:31 2023 daemon.notice netifd: wan (27967): udhcpc: started, v1.36.0
3520 次点击
所在节点    路由器
27 条回复
paullee
2023-08-08 15:45:50 +08:00
目测网线问题,另外 openwrt 强推 https://github.com/immortalwrt/immortalwrt 超级稳定,需要的所有软件都可直接在 opkg 在线安装。
Senorsen
2023-08-08 15:49:44 +08:00
参考 ls 说法,有时过热会引起网卡问题,掉线等。然后建议单纯一个 openwrt 放物理机里,不建议虚拟机+all in one ,发热太大不稳定。
bjfane
2023-08-08 16:59:54 +08:00
之前遇到过一次是光纤问题,也就是进户之前有问题,老是自动换 ip (也就是掉线),后来运营商整了一次,好了。
Suzutan
2023-08-08 17:11:35 +08:00
前几天遇到一样的问题,到后来发现是水晶头没打好😂
ysn2233
2023-08-08 17:14:47 +08:00
我遇到过,重刷了固件好了,也不知道啥原因
PqZS58MLPBHFpEqm
2023-08-08 18:21:11 +08:00
谢谢各位的热心帮助!

今天把网线都换了,问题解决了。。。

软硬件折腾半天,没想到最后是 网线 的问题,大家排查网络的时候千万别忘记它啊。。

对了,坏的网线品牌是绿联的,下次要买个质量过关的网线!
wentijianihao
2023-08-08 22:00:08 +08:00
遇到过,换成屏蔽网线就好了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://tanronggui.xyz/t/963235

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX