Note to self: Wireless configuration

The biggest stumbling block I ever had with Arch was configuring the wireless network. Wired network cards never gave me an ounce of trouble, but there was a three- or four-month period where I really wanted to use Arch, but was befuddled by the wireless configuration, and walked away as a result.

It’s a shame really, but there’s nothing to be blamed but my own inexperience at the time. Since then I have more or less figured it out … with emphasis on the more or less.

Two files make wireless work: /etc/rc.conf and /etc/conf.d/wireless. In addition, your wireless card has to be set up and responding to iwconfig. If you haven’t gotten that far, or you need special drivers or kernel modules to get your wireless working, I can’t do much to help you.

For my WPC11 with the Orinoco chipset, I get two entries with iwconfig: wifi0 and wlan0. Here’s what my /etc/conf.d/wireless entry looks like:

wlan_wlan0="wifi0 mode managed essid NETGEAR key 1234567890"

The actual interface name is wlan0. The “wifi0 …” is what’s passed to iwconfig when the machine boots. So that line should look exactly like what iwconfig can parse. Your line is going to look different because your network settings will be different. Don’t just cut and paste this time.

Here’s the inside of my /etc/rc.conf file, trimmed to the relevant stuff.

INTERFACES=(lo wlan0)

No wifi0 in there. It’s only the interface name again, and no need to bother with wifi0. The only thing that wants wifi0 is iwconfig, and that’s only when it is passed the configuration line in /etc/conf.d/wireless.

So it’s

wlan_XXXX="YYYY mode managed essid NETGEAR key 1234567890"



where XXXX is the interface name, and YYYY is the hardware assignment (or whatever it is … :roll: )

I’ve worked with Arch builds where only eth0 was assigned to the same card, and in that case, both wlan0 and wifi0 were replaced with eth0. That made it a bit simpler, really. I don’t know how or why the same card in a different laptop sometimes gets eth0; there are some mysteries that cannot be fathomed by the mortal mind.

Hopefully, if you’re struggling to put together a wireless connection, that might help a little. Of course, this is really just a note to myself, so I can throw away the scrap of paper with these notes scribbled on it … the one that’s been on my desk since August.

About these ads

2 Responses to “Note to self: Wireless configuration”

  1. 1 xabbott 2007/01/30 at 4:45 AM

    Just curious, how helpful was the arch wiki with this problem? If it’s missing something we could add it.

  2. 2 K.Mandla 2007/01/30 at 9:04 AM

    I think the wiki (I’m thinking of this page in particular) does an adequate job explaining it, and if you’re fairly well versed in Linux on the whole, it’s not hard to decipher.

    The first time I tried this I had been working with Linux for about two months and only used Ubuntu, so I was still pretty green (and I still am, I sometimes think). So it’s not a shortcoming of the wiki really, it was more my inexperience. :roll:

    Having said that, it might be helpful to approach it in a step-by-step fashion, saying “First, enter an iwconfig command, and see what interfaces have been assigned to your card. Now enter them in these lines where you see XXXX and YYYY. …”

    It’s a noob issue … but to be honest, sometimes I still have to run back to my little scrap of paper to make sure I get the wifi0 and wlan0 in the right places.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Visit the Wiki!

Some recent desktops

May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF

May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games

Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers


This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,963,663 hits



Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: