[Bridge] bridge and ip addresses on enslaved interfaces

Bart De Schuymer bdschuym at pandora.be
Tue Mar 23 00:54:31 PDT 2010


Shawn Delaney schreef:
> In the documentation I've seen so far a bridge is created with no IP address for its enslaved interfaces and optionally with an IP address on the bridge interface. For example, I create a bridge like so:
>
> brctl addbr br0
> brctl addif br0 eth0
> brctl addif br0 eth1
>
> ifconfig eth0 0.0.0.0
> ifconfig eth1 0.0.0.0
> ifconfig br0 10.0.0.10 netmask 255.255.0.0
>
>
> This works fine. However if I do the following:
>
> ifconfig eth0 10.0.0.10 netmask 255.255.0.0
> ifconfig eth1 10.1.0.10 netmask 255.255.0.0
> ifconfig br0 0.0.0.0
>
>   
Sounds like you want to make a brouter. You can use the ebtables broute
table for that. See:
http://ebtables.sourceforge.net/examples/basic.html#ex_brouter

cheers,
Bart


-- 
Bart De Schuymer
www.artinalgorithms.be



More information about the Bridge mailing list