tirsdag den 26. februar 2013

Flashing Linksys WRT54GS v6.0 with DD-WRT

Somehow my father found a way to consume all the bandwidth at home, leaving me with the poor 20kbit, i finally decided to flash my old router with alternative firmware to get more features to control my LAN network.

The downloaded files needed:
http://www.dd-wrt.com/site/support/router-database

I followed this flashing guide [below text copied from http://bitsum.com/openwiking/owbase/WRT54G5_CFE/], and i set the ethernet connection settings for my computer as following, because i had problems connecting to my router after the first part of the flashing:

  • Go to the properties of your network connection, select 'Internet Protocol (TCP/IP)', hit 'Properties', then enter this:
    1. IP = 192.168.1.99
    2. Subnet mask = 255.255.255.0
    3. Gateway = 192.168.1.1
    4. (optional) set first DNS server to 192.168.1.1


For the WRT54GS v5, v5.1 and v6 ONLY

SERIOUS WARNING -- NO REVERSION TO VXWORKS ON THESE UNITS: At the moment for WRT54GS units this is a one way operation. No reversion back to VxWorks is available. I never got around to creating the GS reversion firmware. It could EASILY be created by someone using the tools I've written and the documentation here. A person once sent me a GS router hoping I might, but I didn't get to it and now no longer have that router. If someone would like to send me another GS unit, I will maybe get around to creating the reversion firmware. Also, if you'd like to donate other routers, feel free. Note that I make absolutely no guarantees that I'll complete anything though.
  1. Download [vxworks_prep_gs_v03.zip] and extract.
  2. Download and extract [vxworks_killer_gs_v08.zip], OR create a custom firmware image with your MAC address embedded in it. See the 'Changing your MAC address' section below for more information.
  3. Download [DD-WRT micro generic]. You may want to check [DD-WRT] to make sure there isn't a newer version than v23 SP1. Do not use the one labelled 'WRT54G' or 'WRT54GS', use the 'generic' version.
  4. If you don't know how to use (or don't have) a console mode TFTP tool (i.e. tftp.exe), download the [Linksys TFTP transfer tool].
  5. You will want to assign your network adaptor a manual IP address, since you may loose your automatically configured one and have trouble TFTP'ing the firmware. To do this see the troubleshooting section or google it. It's done at the properties dialog of your network connection, in the 'Internet Protocol (TCP/IP)' properties.
  6. Go to your router's web based interface and enter the 'Administration' tab. Then select 'Firmware Upgrade' and choose the vxworks_prep_gs_v03.bin file. Hit apply. After a minute, your browser window will go blank. At this point, power cycle your router.
  7. Again point your web browser to http://192.168.1.1. You'll see a different sort of firmware upgrade screen. This is the Management Mode. Select and apply the vxworks_killer_gs_v08.bin firmware upgrade. WAIT for your browser window to turn to report 'Success'. Have troubles? Try a different web browser, the http daemon in management mode is very finicky.
  8. Now unplug the power cord of your router, then plug it back in. The power LED should now be blinking.
  9. Now you need to do a binary mode TFTP transfer of DD-WRT micro generic to your router. To do this you can use the Windows TFTP console mode utility, the Linksys TFTP Windows GUI utility, or some other TFTP client. You may have to disable your firewall if by some chance it is blocking outgoing connections on port 69. Many TFTP clients don't default to binary mode, so be sure to specify it (i.e. the -i switch with the Windows console mode TFTP utility).
      • For Windows TFTP console mode utility (example, adjust accordingly):
        • tftp -i 192.168.1.1 put dd-wrt.v23_micro_generic.bin
      • For the GUI utility [the Linksys TFTP transfer tool]
        • simply enter your router's IP (192.168.1.1), select dd-wrt.v23_micro_generic.bin, leave the password field blank, and initiate the transfer.
Do NOT reboot your router after TFTP'ing, this will happen automatically. It takes a couple minutes after the TFTP transfer finishes for the firmware to actually be flashed.

And it's working again :) 

For sharing the our internet connection more fairly i followed this guide, section 

Prioritizing by MAC Address

:http://www.dd-wrt.com/wiki/index.php/Quality_of_Service

Now the connection should be more "fairly" distributed next time my father is using the internet :)