通知 爱刷机 路由器教程 →→《省钱助手

br-lan: received packet on eth0.1 with own address as source address错误PandoraBox报错

2019-06-07
0评论
/
阅读
爱搜啊

PandoraBox报错

Tue Jan  3 20:11:06 2017 kern.warn kernel: [ 5827.040000] br-lan: received packet on eth0.1 with own address as source address
Tue Jan  3 20:14:43 2017 kern.warn kernel: [ 6044.004000] br-lan: received packet on eth0.1 with own address as source address
Tue Jan  3 20:15:17 2017 kern.warn kernel: [ 6077.920000] br-lan: received packet on eth0.1 with own address as source address
Tue Jan  3 20:17:23 2017 kern.warn kernel: [ 6203.360000] br-lan: received packet on eth0.1 with own address as source address
Tue Jan  3 20:17:41 2017 kern.warn kernel: [ 6222.004000] br-lan: received packet on eth0.1 with own address as source address
Tue Jan  3 20:23:39 2017 kern.warn kernel: [ 6579.680000] br-lan: received packet on eth0.1 with own address as source address
Tue Jan  3 20:26:21 2017 kern.warn kernel: [ 6742.004000] br-lan: received packet on eth0.1 with own address as source address
Tue Jan  3 20:27:01 2017 kern.warn kernel: [ 6782.004000] br-lan: received packet on eth0.1 with own address as source address

如果路由器日志里面大量提示这个错误,这是因为MAC重复导致的错误

原来这个告警的address也就是地址的意思,也就是MAC address

路由器是OpenWRT系统的,接上网络后,一直出现这句告警,

但是不影响连通性。

首先看到这个是内核打印的,查了其他人的解释,

1. brctl stp intf on

2. 关闭ipv6

都试过了,无效!

进入了一个误区,因为是br-lan一直打印这个,导致认为lan配置有问题。

偶然把wan口连接断开,告警消失了?

这才想到,我的路由器lan wan实际上同一个eth物理网卡,只是虚拟出来的vlan,MAC地址也就是相同的。为了方便,我把lan wan都通过同一个交换机接到PC,wan口寻找自己的gateway和DNS,向外狂发广播包,到了交换机,包就又回到了路由器的lan口。这样收到的报文srcmac和br-lan口自己mac相同了,故而有这个告警!!!!!

原来这个告警的address是MAC address。

愚蠢的错误

查看内核源码,这个告警只在bridge模块(net/bridge/br_fdb.c)才会检查,不在lan上创建bridge则没有问题。

把lan/wan的hwaddr用ifconfig修改成不一样的,就可以彻底解决。


点击链接加入群聊三群:751529538

点击链接加入群聊二群:376877156

点击链接加入群聊【路由器交流群:622891808已满】

本站附件分享,如果附件失效,可以去找找看

诚通网盘附件百度网盘附件


饿了么红包

饿了么红包

标签: pandorabox
于2019-06-07发布