From owner-freebsd-mobile@FreeBSD.ORG Sun Nov 27 02:24:10 2005 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33D6916A41F for ; Sun, 27 Nov 2005 02:24:10 +0000 (GMT) (envelope-from jamesd.earl@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB67443D53 for ; Sun, 27 Nov 2005 02:24:09 +0000 (GMT) (envelope-from jamesd.earl@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so745297nzd for ; Sat, 26 Nov 2005 18:24:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=psNcZqKWJBkgi/HPGFAo3XC1FNuOkAOvFrTaJBGNWfDylBWY1ni0+bU3HqbNBC9gWzwUADtfi0kLqK5pr5RYGi9NuniKzHhSxIcnCxKDlzZ6rIh6HZi/GzNY1xAvK+m68+/dSATO3UOoQ64+PmME517aKF7Df7dPCvSuAurYz6g= Received: by 10.65.214.4 with SMTP id r4mr75577qbq; Sat, 26 Nov 2005 18:24:08 -0800 (PST) Received: by 10.64.10.6 with HTTP; Sat, 26 Nov 2005 18:24:08 -0800 (PST) Message-ID: Date: Sat, 26 Nov 2005 19:24:08 -0700 From: James Earl Sender: jamesd.earl@gmail.com To: Hans Nieser In-Reply-To: <4388B53F.9020905@nieser.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4388B53F.9020905@nieser.net> Cc: freebsd-mobile@freebsd.org Subject: Re: Switching wired <-> wireless in a user-friendly manner, possible? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 02:24:10 -0000 On 11/26/05, Hans Nieser wrote: > Hello, > > I have a laptop that I mainly use at home. It's got both a wired and > wireless interface, both work fine. I used to run Windows XP on it which > allowed me to easily switch from the wired interface to the wireless > interface and vice versa. I found this convenient because I could plugin > the cable when I have my laptop on my desk for better performance. When I > wanted to work with the laptop somewhere else, like downstairs or perhaps > for some reading before I go to sleep, I could just unplug the cable and > could continue reading websites and access my LAN over the wireless inter= face. > > I have now installed FreeBSD 6.0 on my laptop and am trying to get it to > behave the same as Windows XP. Right now when I boot the laptop with the > cable plugged in it will access the LAN over the wired interface (fxp0), > as soon as I unplug the cable, I lose connectivity and won't route traffi= c > over the wireless interface (ipw0). > > I am guessing that what needs to happen is, as soon as fxp0 becomes > inactive, the default route needs to be updated so it will route over the > ipw0 interface. What is the best way to accomplish this? Do I have to > write a shellscript that continiously checks for fxp0's status and then > somehow update the default route, or are there facilities available for t= his? You could also try out the nicmond port. James