Re: Question on manual bridging.

Ben Greear <greearb-my8/[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.user
Organization Candela Technologies
Message-ID <[email protected]>
Bart De Schuymer wrote:
> Op di, 22-11-2005 te 14:50 -0800, schreef Ben Greear:
> 
>>Suppose I have a wifi interface 'ms1' and an ethernet interface eth0.
>>
>>Connected to eth0 is a PC with MAC address AA, which is exactly the
>>same MAC address as ms1 has.
>>
>>Is there a way to make ebtables forward all packets from ms1 to
>>eth0 (un-changed), and have all packets from eth0 with source-MAC of AA
>>be forwarded to ms1?
> 
> 
> I haven't used wireless with Linux yet, but you can get the bridge to
> act like a hub by using these commands:
> #brctl stp br0 off
> #brctl setageing br0 0
> #brctl setfd br0 0

This assumes that the bridge contains eth0 and ms1?

> That should make all packets from ms1 be forwarded to eth0. Letting all
> packets with source-mac AA go from eth0 to ms1:
> ebtables -A FORWARD -i eth0 -o ms1 -s $AA -j ACCEPT
> ebtables -A FORWARD -i eth0 -o ms1 -j DROP

Can I make all packets with source-mac of BB go from eth0 to ms2?


Thanks,
Ben

> 
> 
>>I want this setup to be as transparent as possible, so if I don't have
>>to have any IP addresses on the ms1 and eth0 interface, that is best.
> 
> 
> You won't need an IP address.
> 
> cheers,
> Bart
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Ebtables-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ebtables-user
> 


-- 
Ben Greear <greearb-my8/[email protected]>
Candela Technologies Inc  http://www.candelatech.com



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.