家里配置了一套软路由,使用有 1~2 年都非常稳定,速度和稳定性都很好。
但是,上周末家里的软路由出现问题,WAN 口频繁掉线,掉线后在 2 分钟之后又自动重连,过 30 分钟~2 个小时之间又再次掉线重连,该现象一直持续。
查看日志后关键信息显示是 Interface 'wan' has link connectivity loss 紧接着就 Interface 'wan' is now down (具体日志在后文)
全量日志: 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
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.