Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2005 18:02:05 -0500
From:      Charles Swiger <cswiger@mac.com>
To:        Mac Mason <mac@cs.hmc.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Best way to handle network interfaces on a laptop?
Message-ID:  <c3daf69fc77a17c690645a974830149f@mac.com>
In-Reply-To: <20050329225603.GA9322@turing.cs.hmc.edu>
References:  <20050329225603.GA9322@turing.cs.hmc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c3daf69fc77a17c690645a974830149f>