A summary about setting up a 802.11n wireless network at home, also for future self-reference.

I moved to a new apartment and thought it would be a good idea to avoid network cables and switch to a fast 802.11n wireless network. I bought an Asus RT-N56U wifi router and a Linksys WMP600N PCI card for my desktop PC. Unfortunately there were some problems on the way, so I document the solutions here. All computers involved run Ubuntu 10.10.

Firmware update

The general setup with the Asus router was straight forward and easy, I did it with my notebook and an Ethernet cable. The first mistake was to upgrade the firmware (which is also very easy with this router), because the new firmware version did not work for me (the router could not connect to the modem anymore). Switching back to solved the problem.

DNS problems

Internet was working now, but web pages were somehow delayed and it took several seconds before they loaded. I had a look at speedtest.net to examine the ping and bandwidth statistics, but they were totally ok (ping 15ms, bandwidth 20Mbps as promised by my provider). So I started to suspect the DNS settings and fired up wireshark to capture the network traffic. As expected: the DNS responses took several seconds. After some googeling I found the very useful page DNS problems (German) at ubuntuusers.de that indicated that my router does not handle DNS requests correctly. I search the DHCP configuration of the router to manually specify DNS servers, but could not find anything.

In this case we can configure the Ubuntu network manager to ignore the offered name server(s) from the router and use others. You need to edit your network connection, got to "IPv4 settings" and select "Automatic (DHCP) addresses only". Then you can enter custom DNS server(s), I used the ones provided by my ISP. And voila: web pages load much faster now.

Wifi card problems

Installing the Linksys WMP600N PCI WiFi card in my desktop PC was not a problem and Ubuntu also detected it correctly. At least I thought so, because there were no WiFi networks showing up in the network manager. After a lot of research about the card's chipset (Ralink RT2800) I found some errors in the log ("dmesg | grep rt") while using the rt2800pci linux driver. So I blacklisted that driver (sudo echo "blacklist rt2800pci" >> /etc/modprobe.d/blacklist.conf) and tried the rt2860sta driver that also comes with Ubuntu 10.10. No luck, the WiFi was still dead. The next step was to compile the newest Ralink rt2860sta driver myself (howto on ubuntuusers.de, German). Although everything went through smoothly, still no WiFi.

I revisited all hardware components and played around with the card's antennas - suddenly I was able to receive WiFi signals while scanning (sudo iwlist scan)! Obviously the problem was that the antennas can only pick up a signal when they are aligned in parallel, either strictly vertical or strictly horizontal. I adjusted them to be horizontal because there was no vertical space (cables to the graphics card). Finally everything works now!