From owner-freebsd-questions@FreeBSD.ORG Tue Mar 29 23:02:08 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE06016A4CF for ; Tue, 29 Mar 2005 23:02:08 +0000 (GMT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B1EB43D3F for ; Tue, 29 Mar 2005 23:02:08 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) id j2TN27ek020045; Tue, 29 Mar 2005 15:02:07 -0800 (PST) Received: from [10.1.1.245] (nfw2.codefab.com [199.103.21.225] (may be forged)) (authenticated bits=0)j2TN26AU029332; Tue, 29 Mar 2005 15:02:07 -0800 (PST) In-Reply-To: <20050329225603.GA9322@turing.cs.hmc.edu> References: <20050329225603.GA9322@turing.cs.hmc.edu> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Tue, 29 Mar 2005 18:02:05 -0500 To: Mac Mason X-Mailer: Apple Mail (2.619.2) cc: freebsd-questions@freebsd.org Subject: Re: Best way to handle network interfaces on a laptop? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2005 23:02:08 -0000 On Mar 29, 2005, at 5:56 PM, Mac Mason wrote: > Specifically, much of the use of this machine is in unwired sorts of > places, where I want to use the wi0 interface and not the xl0 > interface. > > If I don't have xl0 in /etc/rc.conf, and then dhclient wi0, it works > fine. > > If I do have xl0 in rc.conf, I can't figure out how to make wi0 route > things if it isn't plugged into a wire. Try: route delete default route add default IP_of_wireless_NIC It may be that deleting the default route first, before you grab a lease via "dhclient wi0" would also set up a new default route for you... -- -Chuck