[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Automating wifi setup



On Wed, 13 Oct 2004 11:18:58 +0200, Chris <debian@chrissearle.org> wrote:
> 
> iwconfig shows no ESSID, or key.
> 
> In /etc/network/interfaces I have:
> 
> iface wlan0 inet dhcp
>     wireless_essid MyESSID
>     wireless_mode Managed
>     wireless_key MyWEPKey
> 
> NB: No line "auto wlan0"
> 
> ifconfig wlan0 up brings the i/face up with these settings - no essid
> - no key - and no IPv4.
> 
> Follow that with:
> 
> iwconfig wlan0 essid MyESSID
> iwconfig wlan0 mode Managed
> iwconfig wlan0 key MyWEPKey
> dhclient wlan0
> 
> Then all is great - lan is up and running - all keys are correctly in
> use etc.
> 
> >From reading the README.Debian in the wireless tools package I thought
> that this would be the effect of the wireless_ lines in interfaces?
> That in ifconfig wlan0 up it would call iwconfig wlan0 ... for each of
> them?
> 
> I've read around some - but as always - FAQs/URLs welcome :-)
> 
> Regards
> 
> --
> Chris
> 

What I did was put all the iwconfig commands in a script, and then ran
the script via a pre-up entry for the interface. Works like a charm.

On the other hand, I don't think ifconfig reads the interfaces file
unless it's run by way of ifup or ifdown. Maybe I'm wrong, but that
could be the problem.

--
Kev



Reply to: