WEP to WPA-TKIP repeater with a Fonera and DD-WRT

João Almeida 27 March 2009 13:03

Hi there!

So this weekend I needed to repeat a WEP network into a WPA-TKIP network, with different SSIDs, obviously. So, once again, DD-WRT to the rescue.

Some of the configurations may be redundant, but hey, it was easy and it is working. Further improvements are left as an exercise to the reader =)

I assume you have a working Fonera with DD-WRT v24.

So, in my case I am connecting to a network 192.168.2.0/24 and the gateway is at 192.168.2.1. The network I am repeating to is 192.168.1.0/24, and my Fonera is at 192.168.1.1.

On the Setup tab, on WAN connection type, I’ve left it as “Automatic Configuration - DHCP” (we will override this later on). The remaining options in this tab are as follows:

Setup tab

Then head to the Wireless tab. Select your “Regulatory Domain” and set “Wireless Mode” to “Client”. In the “Wireless Network Name (SSID)”, insert the SSID of the network you want to repeat.

Then create a Virtual Interface with the SSID of the new network. A bit like in the following picture:

Wireless tab

Then head to the “Wireless Security” tab and configure it accordingly. Here is an example, in this case, the first network is the WEP one, and the second is the brand new WPA-TKIP network I want to create.

Wireless Security tab

I don’t think the password of the WEP network is needed here because we will overwrite it later on, but hey, it wont harm you…

Last step! Head to “Administration” > “Commands” and past the following in the box:

iwconfig ath0 key WEP_NETWORK_KEY

sleep 10

ifconfig ath0 up

sleep 10

ifconfig ath0 192.168.2.1

echo “nameserver 192.168.2.1″ > /etc/resolv.conf

Click on the button “Save Startup”.

And thats it! Reboot your Fonera and enjoy!

Be advised that the all process may take a while to startup. In my case it usually takes around 3~4 minutes since I start the Fonera, and even though the WPA network is available I still have to wait another minute before I can connect. Oh, and be sure the WEP network is available! =)