[Bridge] bridge problem

kevin at ouraynet.com kevin at ouraynet.com
Thu Feb 15 09:27:30 PST 2007


> On the target board
>
> ifconfig eth0 0.0.0.0
> ifconfig eth1 0.0.0.0
> brctl addbr br0
> brctl addif br0 eth0
> brctl addif br0 eth1
> ifconfig br0 10.1.111.1 netmask 255.255.255.0 up
> echo 1 > /proc/sys/net/ipv4/ip_forward

Bridging works transparently and is not routing.

You will not need ip_forwarding set, nor and ip in the same subnet.

forget setting the ip_forward, just bring up your bridge with:

ifconfig br0 0.0.0.0 up

If you have everything plugged in properly, and two ips in the same
subnet on either side, they will start pinging.

As mentioned on this list many times prior it does take 30 seconds for
the forwarding to take place unless you set it to 0 with:

brctl setfd br0 0

Hope that helps,
Kevin Karsh
Ouraynet




More information about the Bridge mailing list