«

How I Turned my Linksys WRT54G Router into a Client

35179_f260.jpg
The other day I was putting together a computer for my 2.75 year old son (he loves video games, and I desperately wanted sole ownership of my computer again). I decided to put it in our bedroom, hooked up to our 42″ Sony Trinitron for all of his Super Mario extravaganzas. While putting it together, I realized that I didn’t have any extra wireless network cards lying around – but I figured it wouldn’t matter, its just for Jonas’s games and he won’t need to be surfin the web, etc. Just in case, I put in a regular old wired network card.

After the install, I decided I should figure out a way to get his computer online, for updates and such… but I still didn’t have any wireless network cards lying around… but I did have an old WRT54G Wireless Router that had been collecting dust for a few months.. surely I could use this, somehow!

So after a little Googling, I stumbled upon project called DD-WRT (http://www.dd-wrt.com). Originally intended as “just a modification of the original Linksys Firmware for supporting simple Radius Authentication”, the project took on a new life and it’s author “decided to add some more small tools and fancy things, just for fun”. WW-DRT is a firmware replacement for many common routers, adding a plethora tools and features that make life (and networking) easier.

After searching on their site through their hardware compatibility list, I find my router (WRT54G v2.0) and following their recommendations (and after reading other peoples’ experiences and success stories on google), I decided to install the “Vintage Mini” version of their firmware. After downloading, installation was a snap!

First I hooked up the router, plugged it in, and ran an ethernet cable from the computer to an empty port on the back of the router. Then I opened up firefox, and pointed it to the router’s default IP address (192.168.1.1). Once there, I navigated my way to the “Upgrade Firmware” screen, selected my newly downloaded firmware, and off it went. After about a minute, I was running my new firmware. Awesome. After a little more googling, I was able to log in to the administrative screen (login: root, pw: admin – assuming the router was using its default login/pw on my particular router).

Now, setting it up as a client. I followed a quick 4 step process I found online, and it worked like a charm. I’ll paraphrase the important parts here – but just in case, here’s a direct link to the instructions: (http://www.dd-wrt.com/wiki/index.php/Client_Mode_Wireless).

Note: In case it’s not obvious – When ROUTER is referenced, it refers to the router you are trying to connect to, and when CLIENT is referenced, it refers to the router you are trying to use as a client.

  1.  
  2.  
  3. Step 1
  4.  
  5.    1. Select Wireless > Basic Settings tab
  6.    2. Set Wireless Network.Wireless Mode = Client
  7.    3. Set Wireless Network.Wireless Network Mode = Mixed
  8.    4. Set Wireless Network.Wireless Network Name (SSID) = ROUTER’ S SSID
  9.    5. Click Save Setting button
  10.  
  11. Step 2
  12.  
  13.   The settings in this tab will vary depending on what security settings are
  14.   configured on the ROUTER. Basically it is the same as you enter when
  15.   connecting a laptop or any other wireless device with the ROUTER. I will
  16.   use the example of WEP based encryption with a 64 bit hex key. If your
  17.   ROUTER doesn’t have any security settings, then this step can be skipped.
  18.  
  19.    1. Select Wireless > Security tab
  20.    2. Set Wireless Security.Security Mode = WEP
  21.    3. Set Wireless Security.Default Transmit Key = 1
  22.       (or which ever your ROUTER is configured to use)
  23.    4. Set Wireless Security.WEP Encryption = 64 bits 10 hex digits
  24.    5. Set Wireless Security.Passphrase = Leave blank if you manually
  25.       entered your key when setting up router otherwise enter the
  26.       passphrase and click generate
  27.    6. Set Wireless Security.Key 1 = ROUTER’S WEP KEY
  28.       assuming you didnt enter a passphrase and hit generate in the
  29.  
  30.  
  31.       previous step.
  32.    7. Repeat #6 for the rest of the keys to set them to what ever was
  33.       configured on the ROUTER.
  34.    8. Click Save Setting button
  35.  
  36. Step 3
  37.  
  38.    1. Select Setup > Basic Setup tab
  39.    2. Set Wireless Setup.Internet Connection Type = Static IP
  40.    3. Set Wireless Setup.Internet IP Address = 192.168.1.2 (or
  41.        whatever ip address you identified in step 2 of preperation)
  42.    4. Set Wireless Setup.Subnet Mask = 255.255.255.0
  43.    5. Set Wireless Setup.Gateway = 192.168.1.1
  44.    6. Set Wireless Setup.Static DNS 1 = 192.168.1.1
  45.    7. Set Wireless Setup.Static DNS 2 = aaa.bbb.ccc.ddd
  46.    8. Set Wireless Setup.Static DNS 3 = aaa.bbb.ccc.eee
  47.    9. Set Wireless Setup.Router Name = BRIDGE (doesn’t matter)
  48.   10. Set Wireless Setup.Host Name = BRIDGE (doesn’t matter)
  49.   11. Set Wireless Setup.Domain Name = Blank
  50.       (unless you have a reason to enter it)
  51.   12. Set Wireless Setup.MTU = Auto
  52.   13. Set Network Setup.Local IP Address = 192.168.2.2
  53.       (increment the 3rd octet of the Wireless Setup.Internet IP
  54.       Address field by 1, e.g 192.168.1+1.2. So now 192.168.1.2
  55.       is your ROUTER facing IP and 192.168.2.2 is your CLIENT
  56.       network facing IP.
  57.   14. Set Network Setup.Subnet Mask = 255.255.255.0
  58.   15. Set Network Setup.Gateway = 192.168.2.2
  59.        (see Troubleshooting note "Resolving DNS lookup Problems")
  60.   16. Set Network Setup.Local DNS = 192.168.1.1
  61.        (see Troubleshooting note "Resolving DNS lookup Problems")
  62.   17. Set Network Setup.DHCP Server = Enabled (To let the CLIENT
  63.        issue dynamic IPs to the devices hooked up to it)
  64.   18. Set Network Setup.Starting IP Address = 192.168.2.100 (You may
  65.        have to click on Save Settings button before you see 192.168.2
  66.        written in this field. If you do, make sure you connect back to the
  67.        CLIENT using the ip address is #13 above)
  68.   19. Set Network Setup.WINS = 0.0.0.0
  69.   20. Click on Save Settings button. Notice that after this configuration,
  70.        your CLIENT bridge/router has a different IP address for
  71.        administration.  So if you are not automatically redirected to the
  72.        new IP, you may have to connect to the administration web page
  73.        by typing 192.168.2.2 yourself. Also note that at this stage, you
  74.        may not be able to connect to the new IP unless you are using a
  75.        computer hooked up to one of the LAN ports of the CLIENT itself.
  76.        And you may need to temporarily setup your computer’s TCP/IP
  77.        config to use a static IP in the 192.168.2.* subnet.
  78.  
  79. Step 4
  80.  
  81.   These steps are temporary so that you don’t run into any issues during
  82.   setup. Once you have everything working, you can undo these settings
  83.   one by one as long as your setup keeps working. Theoretically speaking,
  84.   you shouldn’t need to because your internal network is protected by the
  85.   firewall of your ROUTER from the internet anyway. But if you are security
  86.   conscious then you may want to undo these.
  87.  
  88.    1. Select Security > Firewall
  89.    2. Set Firewall.Firewall Protection = Disabled
  90.    3. Set Firewall.Block Anonymous Internet Requests = unchecked
  91.    4. Click Save Settings button
  92.  
  93.   At this point, you should be able to Click on Status > Wireless tab
  94.   and see that you are connected to the ROUTER. You should also be
  95.   able to hook up a device or computer to one of the four LAN ports of
  96.   the CLIENT and notice that it obtains a dynamic IP like 192.168.2.100
  97.   or some number greater than 100. You should also be able to ping
  98.   your ROUTER, i.e. ping 192.168.1.1. You should also be able to ping
  99.   the internet, e.g. ping www.yahoo.com. If you are not successful,
  100.   then retry after restarting the device/computer connected to the
  101.   CLIENT. You may want to reboot the CLIENT and ROUTER as well.
  102.  
  103.  

That’s it! I was actually able to skip step 4, because everything worked beautifully for me, but I threw it in there just in case. After that, my computer was instantly connected to the network, and I was online. The entire process took all of 5 minutes, was extremely painless, and had me surfing the web in no time.

If something went wrong, see the aforementioned link:

Good luck!

~ digifuzz.

  • Share/Bookmark

Posted on Wednesday, July 2nd, 2008 at 9:42 am and is filed under Hacks, Internet, Linux, Networking. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

8 Responses to “How I Turned my Linksys WRT54G Router into a Client”

  1. 1

    Sounds like you are having more fun with this than Jonas!! C’mon, dad, let him have a turn!! :)

  2. 2

    Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru

  3. 3

    Long Distance Wireless Router…

    Linksys really needs to come home to reality!! Our last two encounters with the customer service department has been quite unsatisfactory. When talking to the reps, it feels like you are talking to a rock or some being that is totally unable to think, …

  4. 4

    Tech Question:
    Q

  5. 5

    This is definitely a great weblog post, I’ve learned a good deal.

  6. 6

    Thanks for that setup guide – it worked fist time… amazing!
    Cheers.

  7. 7

    Valarie Ogwin

  8. 8

    Karoline Shortridge

Leave a Reply