From owner-freebsd-current@FreeBSD.ORG Wed Sep 7 23:16:00 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB8B216A41F for ; Wed, 7 Sep 2005 23:16:00 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8372A43D48 for ; Wed, 7 Sep 2005 23:16:00 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by gate.bitblocks.com (8.13.4/8.13.1) with ESMTP id j87NFvGC061608; Wed, 7 Sep 2005 16:15:59 -0700 (PDT) (envelope-from bakul@bitblocks.com) Message-Id: <200509072315.j87NFvGC061608@gate.bitblocks.com> To: Brooks Davis In-reply-to: Your message of "Wed, 07 Sep 2005 15:30:57 PDT." <20050907223057.GA563@odin.ac.hmc.edu> Date: Wed, 07 Sep 2005 16:15:57 -0700 From: Bakul Shah Cc: Jochen Gensch , freebsd-current@freebsd.org Subject: Re: Default route doesn't change to wireless device (ath0) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2005 23:16:01 -0000 What works for me is not automatic but pretty simple. When I want to switch my laptop from to , I do: /etc/rc.d/netstart stop /etc/rc.d/netstart start One interface is wired, the other wifi. This works in either direction and at home and at work. I can also suspend my laptop at home, resume at work and do the above switch to whichever interface I want at work. At the end of the day I suspend the laptop at work and do the same thing at home. Since the purpose is to be always `connected', and mobile needs are different enough from stationary machines that I am writing a simple daemon that will do all this + more. It will basically watch interfaces of interest and invoke the right script(s).