How to use if_bridge

Fabian Keil freebsd-listen at fabiankeil.de
Tue Apr 18 15:16:23 UTC 2006


Erik Trulsson <ertr1013 at student.uu.se> wrote:

> On Tue, Apr 18, 2006 at 04:41:42PM +0200, Fabian Keil wrote:

> > I tried if_bridge to let QEMU on my laptop talk to the wireless
> > network. It worked if the Laptop's NIC was in ad-hoc or hostap mode,
> > but failed if the NIC was connected to an access point.
> > 
> > NAT solved the problem, but I still don't understand why if_bridge
> > didn't work. If it was expected to fail I think it should be mentioned
> > in the man page.
> 
> Because when a station sends a packet to an AP the source ethernet address
> must be that of the station.  
> A bridge should not modify the packets passed through it so then the source
> address should be that of the originating computer instead of that of the
> station and then things will not work correctly.

Thanks for the explanation.

Fabian
-- 
http://www.fabiankeil.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20060418/46f3abea/signature.pgp


More information about the freebsd-net mailing list