From owner-freebsd-questions@FreeBSD.ORG Fri Apr 16 10:31:48 2004 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 0136816A4CE for ; Fri, 16 Apr 2004 10:31:48 -0700 (PDT) Received: from mail.elvandar.org (cust.94.120.adsl.cistron.nl [195.64.94.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 597A943D4C for ; Fri, 16 Apr 2004 10:31:47 -0700 (PDT) (envelope-from remko@elvandar.org) Message-ID: <40801883.9040804@elvandar.org> Date: Fri, 16 Apr 2004 19:31:47 +0200 From: Remko Lodder X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org References: <20040416133326.GA80435@mail.hitmedia.com> <407FE506.3090405@elvandar.org> <20040416172354.GA751@mail.hitmedia.com> In-Reply-To: <20040416172354.GA751@mail.hitmedia.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at elvandar.org Subject: Re: how do you switch between wireless networks? 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: Fri, 16 Apr 2004 17:31:48 -0000 BSD baby wrote: >>>I just got my wireless connection working with a new PCMCIA card. >>>But I'm still naming the wireless network in my rc.conf file. (DHCP >>>connection) >>>But as I go to join other wireless DHCP networks around the world, >>>what's the best way to switch to that network without rebooting to do it >> >>>from rc.conf? >> >>ifconfig ssid netmask >>should do that trick without rebooting. > > > > What I couldn't find in the handbook was how to do this for DHCP? > > If I don't know the IP or netmask, and want to let the DHCP server decide, > how to I tell that to ifconfig? > dhclient $ifname ? (only i am not sure whether the sid gets caught, it might do it when the ssid is not hidden, but mostly the ssid is hidden (as it should), if you know that you can first ifconfig wi0 ssid and then run dhcp or something.) Hope this helps a bit... -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl A Dutch community for helping newcomers on the hackerscene