Subject: Re: Reconfiguration of wireless card
To: Ajai Khattri <ajai@bway.net>
From: Bryan Vyhmeister <bsd@hub3.net>
List: port-hpcmips
Date: 05/14/2003 12:11:16
On Wednesday, May 14, 2003, at 12:05 PM, Ajai Khattri wrote:
> On Wed, May 14, 2003 at 12:15:08PM -0400, Jimi Malcolm wrote:
>
>> Sometimes when I do this, the routing gateways don't get flushed so
>> that
>> it doesn't know how to route packets on the new network. How do I fix
>> this? To shut down the old network, I simply
>>
>> $ pkill dhclient
>> $ ifconfig wi0 down
>>
>> Is there a better way? Should I be using '/etc/rc.d/dhclient restart'
>> instead?
>
> What I did was edit /etc/rc.conf and switched on dhcp and also added a
> line
> like ifconfig_wi0="media DS11". Secondly, I created a file
> /etc/dhclient.conf
> with a basic setup (see DHCP howto on netbsd site).
>
> Upon reboot, you will see dhclient run and your card get configured
> automatically. Now you can do "/etc/rc.d/dhclient restart" at anytime
> when
> you change location to reconfigure the card - works well for me. A nice
> feature, when faced with several access points, is that it will pick
> one
> with the strongest signal.
Sounds good. I think you have the best solution so far.
Bryan