Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418
Rep:
Configure wireless settings on boot
Hi All,
Wireless is pretty new to me, so maybe a stupid question. I have googled and searched, but did not find a satisfying, or working answer...
I have an IBM A31 with a wireless card (PRISM2chip) as eth1 (and a disconnected lanport as eth0)
When I type in:
Code:
ifconfig eth1 down
iwconfig eth1 essid MYESSID
iwconfig eth1 key [3] s:my13chars....
ifconfig eth1 up
dhclient eth1
Then I am connected to my network and everything is working fine.
However, this must be possible to configure at boottime (and not through a script in rc.local or so)
As you might have understaood from these settings:
I am using an accesspoint with WEP Encryption on key 3, Authorization is open. (Well, mac filtered)
The card is an 801.11b card with no WPA support i guess.
I am using Kubuntu 6.10 this time....
Some background info would help alot, and an answer would be great!
You don't tell which distribution you are using, but with Debian and it's derivates (Ubuntu for example) you can specify wireless network settings by editing /etc/network/interfaces. This might be true on other distros also.
Just edit the file and add your wireless interface to the line "auto", for example:
auto lo eth0
The create / modify your wireless interface's entry like this:
iface eth0 inet dhcp
wireless-essid Home
wireless-mode ad-hoc
This way your interface should be activated at boot, and you can also bring it up and down with "ifup eth0" and "ifdown eth0".
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418
Original Poster
Rep:
basileus, thanks a million for your reply. This solved it!
(I did mention the distro, though, Kubuntu 6.10 )
Also, if you (or anyone) might give me a hint on my next step, it would be great:
I work at two locations, both with wireless. Is there an easy way to automatically use the correct setting for each location? (Kinda like two profiles: for each location a different profile)
Currently I have kwifimanager installed, this will probably do the trick, but you never know if anyone has better ideas to automate this?
Ubuntu/Kubuntu 6.10 should come with a program called "network-manager". It should at least be installable via Synaptic. It's a GUI program which should handle different profiles quite nicely. I have not used it myself, but I've heard it praised a lot. Try google Linux at http://www.google.com/linux with keywords "ubuntu network-manager" if you run into trouble.
I myself use wpa_supplicant, which is a great piece of software. Actually "network-manager" uses it too, but in more user-friendly way. Plain wpa_supplicant is not too easy to configure "the Debian way", which is the way I did it. The basic configuration file is in /etc/wpa_supplicant/wpa_supplicant.conf, and you can define different profiles for different networks. It will automatically switch between these networks whenever necessary.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.