Re: brouting on br0
"Marcin W." <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.user |
|---|---|
| Message-ID | <[email protected]> |
> > __ __ __ __ __ __ _BRIDGE_ > | | | | > | | 10 (!) Mbit/s | | > | ROUTER : - - - - - - --:-- eth0 | > | | | | > | (ip:A.B.C.1) | (ip:0.0.0.0, mac:xx:xx:xx:xx:xx:xx) > | (ip:A.B.D.1) | | | > (mac:gg:gg:gg:gg:gg:gg) | | 100 Mbit/s > | | | eth1 --:-- - - - - - - - - - . > |__ __ __ __ __ __| | | > (ip:0.0.0.0, mac:yy:yy:yy:yy:yy:yy) | > | | > | | | > | | 100 Mbit/s > | eth2 --:-- - - - - - - - | > | | | > (ip:0.0.0.0, mac:zz:zz:zz:zz:zz:zz) | > | | | > | ___ __ _ | | > | | > br0 | > (ip:A.B.C.2, mac:xx:xx:xx:xx:xx:xx) | > | > | > _BUILDING B__ __ __ __ __ __ __ _ _ | > | | | > | subnet A.B.D.0/24 with gw A.B.D.1 :- - | > | __ __ __ __ __ __ __ __ __ __ __ _ _| > | > _BUILDING A__ __ __ __ __ __ __ _ _ > | | | > | subnet A.B.C.0/24 with gw A.B.C.1 :- - - - > | __ __ __ __ __ __ __ __ __ __ __ _ _| > > > But. There is a problem in communication between two subnets. If host [..] In answer to my previous post.. As being a person who don't gives up too soon.. I've figured solution out yesterday. After submitting ebtables -t broute -F ebtables -t broute -A BROUTING -p ipv4 -d gg:gg:gg:gg:gg:gg --ip-dst A.B.C.0/24 --ip-src A.B.D.0/24 -j redirect --redirect-target ACCEPT I've noticed that it actually works, because ping dropped by half, from 100 ms to 50 ms.. so the solution Was simple: ebtables -t broute -F ebtables -t broute -A BROUTING -p ipv4 -d gg:gg:gg:gg:gg:gg --ip-dst A.B.C.0/24 --ip-src A.B.D.0/24 -j redirect --redirect-target ACCEPT ebtables -t broute -A BROUTING -p ipv4 -d gg:gg:gg:gg:gg:gg --ip-dst A.B.D.0/24 --ip-src A.B.C.0/24 -j redirect --redirect-target ACCEPT that moment ping dropped to <1 ms.. -- Best regards, Marcin W. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642