This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x 双网卡 bridge问题

我这边有一个特殊的应用:工控机1 网口(IP:192.168.1.4)通过直连网线连接到am335x的eth0;工控机2 网口(IP:192.168.1.5)通过直连网线连接到am335x的eth1; 工控机1可以访问到工控机2。

为了实现上面的功能,我把am335x的两个网口做成桥接模式(am335x两个网口都验证是正常工作的):

brctl addbr br0
brctl stp br0 off
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
ifconfig br0 192.168.1.3 up

结果:工控机1 ping不通 工控机2。  但是使用上面的语句,给另外一块双网口的linux系统的板子做成桥接模式时,工控机1可以 ping通 工控机2,这个可以证明上面建立bridge的语句是没问题的。      am335x板子上建立桥接模式失败,是内核版本的问题吗?我这边使用的linux内核是:linux-3.2.0-psp04.06.00.08.sdk