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.

Ethernet Bridging



I am working on phyCORE-AM335x board.

I followed http://processors.wiki.ti.com/index.php/Linux_Core_CPSW_User%27s_Guide link and found that bridging is required when both eth interfaces are in same subnet.

As a result, i enable bridging options in kernel and ptxdist options for filesystem as explained below:

At kernel menuconfig side,

[*] Networking support --->
Networking options --->
<*> 802.1d Ethernet Bridging
[*] Network packet filtering framework (Netfilter) --->
--- Network packet filtering framework (Netfilter)
[ ] Network packet filtering debugging
[*] Advanced netfilter configuration
[*] Bridged IP/ARP packets filtering
Core Netfilter Configuration --->
< > IP virtual server support --->
IP: Netfilter Configuration --->
<*> Ethernet Bridge tables (ebtables) support --->

At Ptxdist filesystem,

Networking Tools
--->
<*> bridge utils
-> Shell & Console Tools
-> busybox
-> Networking Utilities
[*] brctl

Then, i booted board with compiled images and enable bridging by giving following commands on command line of console.

brctl addbr mybridge

brctl addif mybridge eth0

brctl addif mybridge eth1

ifconfig mybridge up

ifconfig mybridge 192.168.1.151 netmask 255.255.255.0 up

echo 1 > /proc/sys/net/ipv4/ip_forward

and restarted both ethernet interfaces.

The ip addresses for both the eth0 and eth1 interfaces are given at "/etc/network/interfaces"

When both eth interfaces are configured in same subnet with bridging, both eth0 and eth1 are not working independently.

If I remove ethernet wire from  eth1 interface still i can ping for eth1.

If I remove ethernet wire from eth0 interface then i am unable to ping the both eth0 and eth1 interfaces.

My target is to ping to eth0 interface when etherent wire is removed from eth1 and vice versa.