| « PowerDVD black screen resolved | SNORT mail 'from' change » |
The elusive -
OK - here is one of those situations that make administering a system so frustrating. I've been moving (too slowly for my taste) my wireless network from a MAC filtered based system (way too easy to spoof) to a WPA2 encrypted network (currently the most secure publicly available wireless security). This is a breeze in windows - just get a card that has WPA2 drivers. Under Linux, however, it isn't quite so straightforward. I chose to go with wpasupplicant as it seemed to be the easiest to set up. I've replaced the internal mini-pci cards in my laptops with an intel 2200bg which supports wpa2 via the ipw2200 module. I initially began setting this up with one of my omnibook 6100's and was patently unsuccessful. So, I decided it might be easier for something a little more standard and settled on a Cisco AIR-CB21AG pcmcia card. This is supported by the madwifi drivers and didn't take too long to set up. Once I had a working WPA2 config with the pcmcia setup, I was able to leverage on that to set up one of my 6100's. The real fun began when I tried to set up the second 6100. I could not get the driver to automatically load at boot. If I checked with iwconfig, the card was always defaulting to the unsecured SSID. Wpasupplicant worked, and I could manually switch it to the WPA2 network, but something obviously wasn't quite right. In any case, after a couple of weeks of changing config files, searching for differences between the two 6100's and lots of package management (comparing between the two systems), I finally found the problem. There is a line in /etc/network/interfaces that allows for hot plugging (fairly important for pcmcia, somewhat less so for the internal network). The wireless stanza I had on the troublesome system was:
allow hotplug wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
test-missing-cable please
but what it should have been is:
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
test-missing-cable please
Note the - in the allow-hotplug line. This was the little bugger that had me stopped in my tracks for weeks. Grrrrr.....
Now that the system is finally bringing up the wireless automatically, it's time to get cracking on the ifplugd scripts....