Well, this was driving me crazy for several days. My wlan0 interface was not getting ip address from my router, which was pretty bad considering that machine it supposed to be a server. After all I’ve started getting dreadful
WPA: EAPOL-Key Replay Counter did not increase - dropping packet
messages, which I couldn’t get at all.
- Ubuntu 8.04 (server)
- Linksys WMP54G PCI wireless network card (almost stopped trusting Linksys since this one); driver WinXP 64 bit via ndiswrapper
- Linksys WRT54GL w/Tomato firmware (yeah, finally got to it and it is so much better than the original;
- No IP address after restart on the host; the IP address is provided when doing manual
sudo ifdown wlan0
sudo ifup wlan0
Damn… that’s not how I want to run a headless server that I have planned to put somewhere in the house to get rid of the noise (therefore the wireless to make freely movable).
Tips & Tricks
- Check if you’re running multiple wpa_supplicant instances by running
ps ax | grep wpa_supplicant
If so, stop them by issuing
- The following wpa_supplicant.conf worked for me
And here is the reference to it in the /etc/network/interfaces:
auto lo wlan0
iface wlan0 inet dhcp
Finally, there was no luck in obtaining DHCP consistently, I have used the same hack as described in the Ubuntu WIFIDocs, and added the
to the /etc/rc.local :(. This works properly since it will be executed when the rest is properly started.
p.s. This seem to be a known bug #53387, so I am not the only one spending my time for nothing. Welcome to the wonderful world of Linux (you have to set it up and you will be setting it up… forever…).