Re: IP address on physcial interface instead of bridge interface?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joakim Tjernlund/Transmode wrote on 2010/03/28 21:04:11:
> Joakim Tjernlund/Transmode wrote on 2010/03/28 20:27:10:
> >
> > Bart De Schuymer <bdschuym@xxxxxxxxxx> wrote on 2010/03/28 14:48:52:
> > >
> > > Stephen Hemminger schreef:
> > > >
> > > > If you read the network receive code path in the kernel, you
> > > > will see that there is a special hook used. Basically,
> > > >
> > > >   if received_interface_is_part_of_bridge(incoming_interface)
> > > >   then process_bridged_packet(packet)
> > > >
> > > > Then bridge looks at packet and decides whether it is local or forwarded.
> > > > The problem is with your application if it wants to use eth0 directly.
> > > >
> > > >
> > > The ebtables brouting chain was designed to enable you to do this.
> > Can you give me an example?
>
> Found this on the net:
> ebtables -t broute -A BROUTING -p 0800  -i eth1 --ip-dst 192.168.1.16 -j DROP
> ebtables -t broute -A BROUTING -p 0806  -i eth1 -d 00:06:9C:00:B2:FB -j DROP
> ebtables -t broute -A BROUTING -p 0806  -i eth1 --arp-ip-dst 192.168.1.16 -j DROP
>
> 192.168.1.16 and 00:06:9C:00:B2:FB are the IP and MAC addresses of eth1.
>
> Then add eth1 to the bridge and it appears to be working as I want.
> Are there any "gotcha's" with this method?

What about other protocols such as pppoe and OSPF, will these work over eth1 too?
Are outgoing pkgs from the host bridged or just sent out over eth1?

    Jocke

_______________________________________________
Bridge mailing list
Bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/bridge

[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux