From owner-freebsd-mobile@FreeBSD.ORG Sat Nov 26 19:19:32 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 56C1C16A420 for ; Sat, 26 Nov 2005 19:19:32 +0000 (GMT) (envelope-from hans@nieser.net) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4879E43D68 for ; Sat, 26 Nov 2005 19:19:25 +0000 (GMT) (envelope-from hans@nieser.net) Received: from [192.168.1.10] (nieser.net [194.109.160.131]) by smtp-vbr1.xs4all.nl (8.13.3/8.13.3) with ESMTP id jAQJJOL6071935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 26 Nov 2005 20:19:25 +0100 (CET) (envelope-from hans@nieser.net) Message-ID: <4388B53F.9020905@nieser.net> Date: Sat, 26 Nov 2005 20:19:27 +0100 From: Hans Nieser User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Subject: 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: Sat, 26 Nov 2005 19:19:32 -0000 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 interface. 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 traffic 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 this?