Switching from wired to wireless getting "network down"

Mel Flynn fbsd.mobile at rachie.is-a-geek.net
Tue Mar 31 23:39:33 PDT 2009


On Tuesday 31 March 2009 21:44:20 Sam Leffler wrote:
> Mel Flynn wrote:
> > On Tuesday 31 March 2009 18:24:08 Sam Leffler wrote:
> >> Mel Flynn wrote:
> >>> Great! Does this also work for hostap mode now? I'd like to unify my
> >>> internal network, currently using rum as hostap.
> >>> If the answer is no, I pledge to file a PR. ;)
> >>
> >> I don't understand what you're looking for but it's unlikely this will
> >> do what you want.  lagg's failover protocol acts like a single-position
> >> switch funneling packets to one of several devices (all of which are
> >> assigned the same mac address).
> >
> > What I'd like is my wireless and wired network to be on the same /24 and
> > my hostap/gateway to nat between lagg0 and tun0. As you've now described
> > lagg, this doesn't seem viable and I'll have to look for a different
> > solution.
> >
> > The reason I want it, is that it greatly simplifies my rdr rules and I
> > can seemlessly plug in/out my laptop without having to change default
> > route or getting arp errors if I use lagg on it.
> >
> > Wireless routers (at least my retired Linksys) seem to be able to handle
> > a unified wired/wireless network just fine, is there anything comparable
> > in FreeBSD?
>
> It sounds like you just want wired+wireless bridged with single dhcp
> server.  So long as your machines aren't simultaneously connected to
> both it should not be an issue.  NAT is irrelevant unless you want to
> connect the outside world and want only 1 IP address to be exposed.

So I can't have this:

                lagg0 via wpi <-> lagg0 via rum-hostap
              /                       \
+-----------+                          +--------------+
+ laptop    +        192.168.1.0/24    +   gateway    +-- tun0-inet
+-----------+                          +--------------+
192.168.1.2  \                        /  192.168.1.1
               lagg0 via em0 <->  lagg0 via fxp0


And have both connected/disconnected at will.

-- 
Mel


More information about the freebsd-mobile mailing list