Buffalo WZR-HP-G300NH

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 06:12, 2 March 2010 (edit)
Mep (Talk | contribs)
(DD-WRT on Buffalo WZR-HP-G300NH)
← Previous diff
Revision as of 12:37, 2 March 2010 (edit) (undo)
Orcrist (Talk | contribs)
(DD-WRT on Buffalo WZR-HP-G300NH - Note on Japanese version.)
Next diff →
Line 5: Line 5:
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=63820&postdays=0&postorder=asc&highlight=13977&start=90 http://www.dd-wrt.com/phpBB2/viewtopic.php?t=63820&postdays=0&postorder=asc&highlight=13977&start=90
-Look for the WZR-HP-G300NH in the router database. There are 2 files there.+To install the firmware, look for the WZR-HP-G300NH in the router database. There are 2 files.
- +* The buffalo to ddwrt webflash file is a full build but it's special for flashing from original buffalo firmware to ddwrt.
-The buffalo to ddwrt webflash file is a full build but it's special for flashing from original buffalo firmware to ddwrt.+* The webupgrade file is to upgrade from an older version of ddwrt, this is the file to use if you are already using ddwrt, so there's no need to flash both.
- +
-The webupgrade file is to upgrade from an older version of ddwrt, this is the file to use if you are already using ddwrt, so there's no need to flash both.+
You can even revert back to buffalo firmware, see this page: You can even revert back to buffalo firmware, see this page:
Line 17: Line 15:
(You will have to register for the forums to be able to see & download file attachments.) (You will have to register for the forums to be able to see & download file attachments.)
-The rest of the article below is now obsolete.+==WZR-HP-G300NH (Japanese version)==
 +Several people have reported that the above files do not work on the Japanese version of these routers. It was believed that there is a magic number for the Japanese routers that causes the dd-wrt to fail. Can anyone declare success on a Japanese router by using the above files?
 +
 +----
 +
 +The rest of the article below is now obsolete.
=== Installing DD-WRT === === Installing DD-WRT ===

Revision as of 12:37, 2 March 2010

Contents

DD-WRT on Buffalo WZR-HP-G300NH

As of Feb 2010, the WZR-HP-G300NH can now be flashed with DD-WRT directly from the Buffalo web gui. See this forum discussion:

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=63820&postdays=0&postorder=asc&highlight=13977&start=90

To install the firmware, look for the WZR-HP-G300NH in the router database. There are 2 files.

  • The buffalo to ddwrt webflash file is a full build but it's special for flashing from original buffalo firmware to ddwrt.
  • The webupgrade file is to upgrade from an older version of ddwrt, this is the file to use if you are already using ddwrt, so there's no need to flash both.

You can even revert back to buffalo firmware, see this page:

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=66494&postdays=0&postorder=asc&start=30

(You will have to register for the forums to be able to see & download file attachments.)

WZR-HP-G300NH (Japanese version)

Several people have reported that the above files do not work on the Japanese version of these routers. It was believed that there is a magic number for the Japanese routers that causes the dd-wrt to fail. Can anyone declare success on a Japanese router by using the above files?


The rest of the article below is now obsolete.

Installing DD-WRT

Installing using Linux (Ubuntu)

Original post by ERamseth. Read it here
Some commands and notes edited and optimized by Chalkos.

Setting Up

To do this you can use Ubuntu 9.04 Desktop Live CD

  1. Get the DD-WRT here (this is v24-sp2 (02/03/10) std - build 13832).
    You'll want the file ending in ".tftp"
  2. Get TFTP app
    1. On ubuntu enable Universe repositories
    2. Update repositories using
      sudo apt-get update
    3. Use
      sudo apt-get install tftp
  3. Do the Hard reset or 30/30/30 on your router.
  4. Unplug all ethernet cables and the power cable.
  5. Connect your computer through ethernet directly to your router but leave the router turned off.
  6. Disable NetworkManager. In Ubuntu 9.10, run
    sudo service networking stop
  7. Set IP of ethernet interface to "192.168.11.2". In Ubuntu, run
    sudo ifconfig eth0 192.168.11.2
    (assuming eth0 is your ethernet interface)
  8. set netmask to "255.255.255.0" I think this is default but just to be safe, run
    sudo ifconfig eth0 netmask 255.255.255.0
  9. Make entry in the ARP table corresponding to the router. run
    sudo arp -s 192.168.11.1 [MAC ADDRESS OF ROUTER]
    • The MAC address of router is the SSID printed on the sticker, but every second digit/letter is followed by a ":", so you end up with something like "00:1D:73:8C:8D:D5" (THIS IS AN EXAMPLE DO NOT USE THIS NUMBER... I ACTUALLY JUST MADE IT UP)
    • what this really does is tell the network that 192.168.11.1 (the IP address that the router will take for itself) corresponds with the MAC address of the router.
    • I'm not sure the arp table business is entirely necessary but it cannot hurt... also this is the one step i have absolutely no idea how to do in windows...

At this point you basically have a 1 computer network set up and your computer will be expecting the router (defined by its MAC address) to show up on 192.168.11.1 (which is the address the router will ask for/respond on when it is turned on)

Uploading DD-WRT to the router

Important: Before starting TFTP navigate (on the shell) to the folder where you downloaded the firmware (otherwise you can not upload it using TFTP)

  • run tftp
    tftp
    • Set verbose mode on (so we know what's going on);
    • Binary mode on (because we are uploading a binary file);
    • Trace on (so we get feedback on our commands);
    • Rexmt 1 (to retry the upload on failure every 1 second);
    • And timeout to 60 (repeatedly retry the upload for 60 seconds before giving up)

To do this on the regular tftp client, enter the following commands (in the text below, "tftp>" is just the prompt that tftp gives you, not something you need to type)

tftp> verbose
Verbose mode on.
tftp> binary
mode set to octet
tftp> trace
Packet tracing on.
tftp> rexmt 1
tftp> timeout 60
  1. in tftp connect to 192.168.11.1 (does not matter that router is still turned off)
    tftp> connect 192.168.11.1
    • At this point you aren't really "connected" in the sense that your computer requires any feedback from the router. tftp is basically just prepped to send the correct file to the correct address, as long as all the other pieces of the equation (the router) end up in the right place at the right time.
    • now get ready to plug in your router, but don't do it yet. Also, make sure your computer is connected to one of the LAN ports of the router, not the WAN port (the WAN port is outlined in blue)
  2. In tftp put [firmware]
    tftp> put wzrg300nh-firmware.tftp
    • At this point tftp will keep trying to send the firmware to the router and when it fails (because the router isn't yet on or hasn't yet brought up it's tftp interface) it will wait 1 second and retry, up to 60 times (because that's how we set up the tftp client)
  3. Plug in the power cord to the router
    • The router will start up and now and you will see some lights blinking (possibly)
    • About 10-20 seconds in, you should notice that tftp is sending the file. instead of the retry message over and over you will see some progress scrolling down the screen and at the end it will tell you how many blocks or bytes were transferred in how many seconds
  4. After the transfer is complete, wait about 5-10 minutes (more like 6 minutes I think) during this wait the red light on front of the router will blink and then go off, eventually the wireless led comes on. (wireless led looks like a radar thing... don't know how to describe it really)
  5. When the wireless led is on, you are ready to go.


Final Notes
At this point, in linux, you want to just re-enable network manager with
sudo service networking start

You will see a notification icon that says you are connected. You should click it, disconnect, then re-connect. You should receieve an IP of something like 192.168.1.105.
NOTE that this is not in the 192.168.11.X subnet. If you get something like 192.168.11.2 or 192.168.11.100 then something didn't work. Also, if you don't get an IP address assigned, something didn't work. As a last ditch effort, you could restart your computer to see if it works.

Also, per DD-WRT defaults, your router should now be broadcasting a WI-FI network on the SSID of "dd-wrt".

If you get an IP on the 192.168.1.X network, then congratulations, you are good to go. open up a web browser (see below) and get to http://192.168.1.1/ to begin setting up your router.

NOTE: for some reason chrome/chromium isn't working on the web interface. I had to use firefox. Use Firefox for the web interface!

Working / Not Working Features

Feature Working Notes
Wireless OK - tested with V24-preSP2 build 13832
Wireless 802.11n mode OK - tested with V24-preSP2 build 13832 If you want security enabled you must use WPA2 + AES
USB OK - tested with V24-preSP2 build 13832 Tested FAT32 flash drive. more info: USB_storage ... also tested ext3 automount to /opt ... it works

it seems that ipkg update doesn't work. and ipkg install do not fully work. "sort" command missing. "netstat" command missing. ipkg-opt could not be installed. so the optware could not work.