Buffalo WZR-HP-G300NH

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:38, 23 September 2010 (edit)
GNTC (Talk | contribs)
(Old install procedure (now obsolete))
← Previous diff
Revision as of 13:42, 25 February 2018 (edit) (undo)
Ian5142 (Talk | contribs)
(Added link to Where do I download firmware.)
Next diff →
(48 intermediate revisions not shown.)
Line 1: Line 1:
 +== Specifications: Buffalo WZR-HP-G300NH==
 +
 +[[Image:G300NH1.jpg]]
 +
 +
 +{| border="1" cellspacing="0"
 +! CPU
 +| Atheros AR9132 rev 2 (0xb9)
 +|-
 +! CPU Speed
 +| 400 MHz
 +|-
 +! Flash ROM
 +| 32 MB
 +|-
 +! RAM
 +| 64 MB
 +|-
 +! Radio
 +| 2.4 GHz
 +|-
 +! WLAN Support
 +| B/G/N
 +|-
 +! WLAN Max Speed
 +| 300 mbps
 +|-
 +! Antenna Location
 +| 2x fixed external
 +|-
 +! Switch
 +| 4x GigE + 1 WAN
 +|-
 +! USB
 +| 1x USB 2.0
 +|}
 +
 +
 +
== DD-WRT on Buffalo WZR-HP-G300NH== == DD-WRT on Buffalo WZR-HP-G300NH==
-As of Feb 2010, the WZR-HP-G300NH can be flashed with DD-WRT directly from the Buffalo web GUI. To do this, go to http://www.dd-wrt.com/site/support/router-database, look up ''Buffalo WZR-HP-G300NH'', and download the firmware file you need (just one file).+Buffalo provides a re-branded version of DD-WRT specifically for this router. It can be flashed from the GUI and is available on the Buffalo website:
 + 
 +http://www.buffalotech.com/support-and-downloads/downloads
 + 
 +Go to that site and type in WZR-HP-G300NH and it should point you to the appropriate download for the buffalo dd-wrt professional firmware. As of Aug.2012 - the buffalo dd-wrt builds for this unit currently come in 2 builds only, which are 14998 and 19484
 +
 +For build 19484, be aware of the issue that VLAN is turned on automatically by default, which makes clients unable to communicate with each other on the LAN ports.
 + 
 +The symptom is described here and can be fixed by startup script described in post 24 & 25.
 +http://forums.buffalotech.com/index.php?topic=15378.15
 + 
 +To disable the VLAN, run the following commands in Administrator -> Commands:
 + swconfig dev switch0 set enable_vlan 0
 + swconfig dev switch0 set apply
 + 
 +To keep VLANs enabled but allow communication:
 + swconfig dev switch0 port 3 set pvid 6
 + swconfig dev switch0 port 2 set pvid 6
 + swconfig dev switch0 port 1 set pvid 6
 + swconfig dev switch0 port 0 set pvid 6
 + 
 +To save this configuration, press Save Startup on the Commands page.
 + 
 +Also, if you happen to have a hardware switch (10/100 or gigabit either one), you can use this to remedy the VLAN issue. Just plug a hardware switch into one of the g300nh's LAN ports and then simply use the switch to connect wired connections, should keep them within the same VLAN then.
 + 
 +As of Feb 2010, the WZR-HP-G300NH can be flashed with DD-WRT directly from the Buffalo web GUI. See [[Index:FAQ#Where_do_I_download_firmware.3F|Where do I download firmware?]] for links. Look for a ''Buffalo WZR-HP-G300NH'' folder, and download the firmware file you need (just one file).
* The ''buffalo to ddwrt webflash'' file is a full build. It's for flashing from the original Buffalo firmware to DD-WRT. * The ''buffalo to ddwrt webflash'' file is a full build. It's for flashing from the original Buffalo firmware to DD-WRT.
* The ''webupgrade file'' is to upgrade from an older version of DD-WRT. Use this to upgrade from an old version of DD-WRT. * The ''webupgrade file'' is to upgrade from an older version of DD-WRT. Use this to upgrade from an old version of DD-WRT.
-*To revert from DD-WRT back to stock firmware, go to http://www.dd-wrt.com/phpBB2/download.php?id=13418, and download the file. Flash using upgrade on the DD-WRT web GUI. This is the 1.6 stock firmware. You can then upgrade to the latest Buffalo firmware.+*To revert from DD-WRT back to stock firmware, go to http://www.dd-wrt.com/phpBB2/download.php?id=13418, and download the file. Flash using upgrade on the DD-WRT web GUI. This is the 1.6 stock firmware. You can then upgrade to the latest Buffalo firmware. '''You must be signed into the forum first, sign in then click the link for the webgui revert file. See the forums for details. Register and log in to see and download files.'''
- +
-See the forums for details. Register and log in to see and download files.+
* 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.
* http://www.dd-wrt.com/phpBB2/viewtopic.php?t=66494&postdays=0&postorder=asc&start=30. Details on reverting the firmware. * http://www.dd-wrt.com/phpBB2/viewtopic.php?t=66494&postdays=0&postorder=asc&start=30. Details on reverting the firmware.
 +
 +'''Newer or older builds can be found in the DD-WRT file server'''
 +
 +ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/
==DD-WRT on Buffalo WZR-HP-G300NH (Japanese version)== ==DD-WRT on Buffalo WZR-HP-G300NH (Japanese version)==
Line 16: Line 82:
* http://www.dd-wrt.com/phpBB2/viewtopic.php?t=66494&postdays=0&postorder=asc&start=30 * http://www.dd-wrt.com/phpBB2/viewtopic.php?t=66494&postdays=0&postorder=asc&start=30
-==Old install procedure (now obsolete)==+== WZR-HP-G300NH2 and WZR-300HP ==
-=== Installing DD-WRT ===+{| border="1" cellspacing="0"
-==== Installing using Linux (Ubuntu) ====+! CPU
-Original post by ERamseth. Read it [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=403995#403971 here]<br>+| Atheros AR7242
-Some commands and notes edited and optimized by Chalkos.+|-
 +! CPU Speed
 +| 400 MHz
 +|-
 +! Flash ROM
 +| 32 MB
 +|-
 +! RAM
 +| 64 MB
 +|-
 +! Radio
 +| 1x 2.4 GHz
 +|-
 +! WLAN Support
 +| B/G/N
 +|-
 +! WLAN Max Speed
 +| 300Mbps
 +|-
 +! Antenna Location
 +| 2x fixed external
 +|-
 +! Switch
 +| 4x LAN + 1 WAN Gigabit ports
 +|-
 +! USB
 +| 1x USB 2.0
 +|}
-===== Setting Up =====+Newer models of the WZR-HP-G300NH have been released called WZR-HP-G300NH2 and WZR-300HP, these units have different hardware than the v1 of this unit. Both the G300NH2 and 300HP share the same FCC ID # and have an Atheros AR7242@400Mhz with 32MB flash rom and 64MB board ram. The G300NH2 has been supported as of build 17201. The newer 300HP unit has been community build supported as of build 20675. These units also come with buffalo dd-wrt professional firmware pre-flashed, you can flash to the community dd-wrt builds by following the below steps.
-To do this you can use Ubuntu 9.04 Desktop Live CD+
-# Get the DD-WRT [http://www.dd-wrt.com/site/support/other-downloads?path=others%2Feko%2FBrainSlayer-V24-preSP2%2F02-03-10-r13832%2Fbuffalo_wzrg300nh%2F here] (this is v24-sp2 (02/03/10) std - build 13832).<br>You'll want the file ending in ".tftp"+
-# Get TFTP app+
-## On ubuntu enable Universe repositories+
-## Update repositories using<pre>sudo apt-get update</pre>+
-## Use <pre>sudo apt-get install tftp</pre>+
-# Do the [[Hard reset or 30/30/30]] on your router.+
-# Unplug all ethernet cables and the power cable.+
-# Connect your computer through ethernet directly to your router but leave the router turned off.+
-# Disable NetworkManager. In Ubuntu 9.10, run <pre>sudo service networking stop</pre> Or, in Ubuntu 10.04, run <pre>sudo service network-manager stop</pre>+
-# Set IP of ethernet interface to "192.168.11.2". In Ubuntu, run <pre>sudo ifconfig eth0 192.168.11.2</pre> (assuming eth0 is your ethernet interface)+
-#set netmask to "255.255.255.0" I think this is default but just to be safe, run <pre>sudo ifconfig eth0 netmask 255.255.255.0</pre>+
-# Make entry in the ARP table corresponding to the router. run <pre>sudo arp -s 192.168.11.1 [MAC ADDRESS OF ROUTER]</pre>+
-#*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)+1) Download the community dd-wrt build for this model using the link below.
-===== Uploading DD-WRT to the router =====+'''For a WZR-HP-G300NH2'''
-'''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<pre>tftp</pre>+
-**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)+
-<pre>+
-tftp> verbose+
-Verbose mode on.+
-tftp> binary+
-mode set to octet+
-tftp> trace+
-Packet tracing on.+
-tftp> rexmt 1+
-tftp> timeout 60+
-</pre>+
-#in tftp connect to 192.168.11.1 (does not matter that router is still turned off) <pre>tftp> connect 192.168.11.1</pre>+buffalo_wzr-hp-g300nh2 folder, file buffalo_to_ddwrt_webflash-MULTI.bin See [[Index:FAQ#Where_do_I_download_firmware.3F|Where do I download firmware?]] for links.
-#*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)+
-#In tftp put [firmware]<pre>tftp> put wzrg300nh-firmware.tftp</pre>+
-#*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)+
-#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+
-#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)+
-#When the wireless led is on, you are ready to go.+
 +'''For a WZR-300HP'''
 +folder buffalo_wzr-300hp, file buffalo_to_ddwrt_webflash-MULTI.bin See [[Index:FAQ#Where_do_I_download_firmware.3F|Where do I download firmware?]] for links.
-===== Final Notes =====+2) Perform a reset on the router holding the reset button down for 30 seconds and then release.
-At this point, in linux, you want to just re-enable network manager with <pre>sudo service networking start+
-or+
-sudo service network-manager start</pre>+
-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.<br>+
-'''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".+3) Set a static IP on your PC to 192.168.11.2 and subnet 255.255.255.0, gateway 192.168.11.1
-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.+4) Log in the router's web-gui @ http://192.168.11.1 and go to the firmware upgrade section and select the file you downloaded in the first step.
-'''NOTE:''' for some reason chrome/chromium isn't working on the web interface. I had to use firefox. '''Use Firefox for the web interface!'''+5) After you selected the file from the first step, if you are in the buffalo dd-wrt pro build then select "reset to default settings" and click "upgrade"
-=== Working / Not Working Features ===+6) Give this atleast 10 minutes to complete, do not unplug or mess with the unit in any form or fashion... BE PATIENT!
-{| style="text-align: left; " border="1" cellspacing="0" cellpadding="2" width="100%"+
-|- style="background-color:#f6f6f6;"+
-| '''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.+7) After you have waited, un-set the static ip of 192.168.11.2 and either set it to use DHCP or set a static ip of 192.168.1.8
-"sort" command missing.+
-"netstat" command missing.+
-ipkg-opt could not be installed. so the optware could not work.+
-== Samba Configuration ==+8) Log in the dd-wrt webgui @ http://192.168.1.1 and once in, immediately go to Administration > Factory Defaults and select to "restore to factory defaults" again wait atleast 3 minutes. This will give it the equivalent of a hard reset to assure flash integrity.
-The DD-WRT already included a build-in samba, but missing ui configuration, while waiting the ui configuration, I write a simple instruction to setup samba.+
-The instructions here is base on http://g300nh.blogspot.com/2010/06/samba-sharing-in-dd-wrt.html, but have some modify to easy setup with user not family with linux, all setup can be done with dd-wrt interface, and don't need to use shell of dd-wrt.+9) Then, after you have waited atleast 3 minutes, re-log in the dd-wrt webgui @ http://192.168.1.1 and begin setup, enjoy dd-wrt!
 + 
 +== Samba Configuration ==
 +<b>The latest build has already include simple UI to configure Samba</b><br>
 +DD-WRT already includes a built-in Samba server. These instructions provide a simple way to setup Samba. They are based on instructions from http://g300nh.blogspot.com/2010/06/samba-sharing-in-dd-wrt.html, but have been modified for users not familiar with Linux. All setup can be done from within the DD-WRT interface without requiring the use of a remote shell.
=== Pre Requirements === === Pre Requirements ===
-DD-WRT don't have any tools to format you hdd, so you must have a hdd in the format dd-wrt can understand (fat32, ext3...)+DD-WRT doesn't have any tools to format an HDD, so you must have an preformatted HDD in a format that DD-WRT can understand (FAT32, EXT3, etc.)
-Goto Services/USB section in dd-wrt, Change the setting as below:+Go to Services/USB within DD-WRT and change the settings as indicated below:
<pre> <pre>
Core USB Support: Enable Core USB Support: Enable
Line 132: Line 160:
</pre> </pre>
-After apply the change, if you already plugin you hdd, you should see the information of hdd in dd-wrt+After apply the changes, if you have already plugged in an HDD, you should see its information in the UI.
=== Anonymous Sharing Setup === === Anonymous Sharing Setup ===
-This setup will share you disk you already mounted to /mnt folder, It will share for everyone on your network and don't request username/password to login+These step will share a disk that is already mounted at /mnt. It will be publicly available to everyone on the network and won't require a username or password to connect.
-To setup, Goto Administrators/Commands section in DD-WRT, copy below script to textbox then choose Save Startup+Go to Administrators/Commands in DD-WRT and copy the script below into the textbox then choose Save Startup
<pre> <pre>
Line 192: Line 220:
</pre> </pre>
=== Setup Sharing with Username/Password === === Setup Sharing with Username/Password ===
-Because <code>smbpasswd</code> program build-in DD-WRT alway treat /etc/samba/smbpasswd as the samba password file, and /etc is readonly file system, should we must temporary bind /tmp/etc to /etc during add user. Change <code># Add user for samba</code> section like below:+Because <code>smbpasswd</code> program build-in DD-WRT always treats /etc/samba/smbpasswd as the samba password file, and /etc is a readonly file system, we must temporary bind /tmp/etc to /etc when adding a user. Change <code># Add user for samba</code> section like below:
<pre> <pre>
# Add user for samba # Add user for samba
Line 210: Line 238:
</pre> </pre>
-If you need add more user, you can repeat these lines with your username and password+If you need add more users, you can repeat these lines with the desired usernames and passwords
<pre> <pre>
# add user: username=share, password=sharepassword # add user: username=share, password=sharepassword
Line 217: Line 245:
</pre> </pre>
-In [global] section of samba configuration, change some config value as below (add if the config does not exists before):+In the [global] section of Samba configuration, update the config value as indicated below:
<pre> <pre>
encrypt passwords = true encrypt passwords = true
Line 229: Line 257:
<i>add later</i> <i>add later</i>
=== Setup DD-WRT as Windows Name Server === === Setup DD-WRT as Windows Name Server ===
-If your network has more than subnet, you might need to setup a Windows Name Server (WINS server), You can make you router become a WINS server even if you don't have a usb hdd or you don't need a sharing setup. Just user script like <code>Anonymous Sharing Setup</code> but change some setting in <code>[global]</code> section:+If your network has more than one subnet, you might need to setup a Windows Name Server (WINS server), You can make you router become a WINS server even if you don't have a USB HDD or you don't need a sharing setup. Just user script like <code>Anonymous Sharing Setup</code> but change the below setting in the <code>[global]</code> section:
<pre> <pre>
wins support = yes wins support = yes
</pre> </pre>
-Goto Setup/Basic section in dd-wrt and set WINS server in DHCP group to your lan ip address (ex: 192.168.11.1)+Go to Setup/Basic section in DD-WRT and set WINS server in DHCP group to your LAN IP address (ex: 192.168.11.1)
 + 
 + 
 +If your network has any device that uses a static IP address, find the WINS section and point to DD-WRT LAN IP address (If you use Windows, choose properties of you adapter, click Advanced, goto WINS tag. If you use Linux, add <code>wins server = xxx.xxx.xxx.xxx</code> in <code>[global]</code> section of samba)
 + 
 +== Optware on Atheros ==
 + 
 +Running Optware on Atheros is somewhat different than broadcom. This post explains how to install and setup Optware on Atheros.
 + 
 +http://www.dd-wrt.com/phpBB2/viewtopic.php?t=86912
 + 
 +== Debricking Info using TFTP ==
 + 
 +There have been a few guides out that have reports of success when de-bricking the WZR-HP-G300NH. This however, has been explained by Brainslayer in this post, please use it for referencing info you may need to de-brick your unit, should the occasion arise.
 + 
 +http://www.dd-wrt.com/phpBB2/viewtopic.php?t=87579
 + 
 +It has been asked about on how to de-brick this unit in the case that a flash goes wrong or how you can switch back and forth between Buffalo dd-wrt builds and community dd-wrt builds.
 + 
 +This method is if you are using Windows XP OS. '''I also always use a 10/100 or Gigabit hardware switch in-between the router and the PC, this way - Windows doesn't have to wait for the router switch to initialize, which can make you loose your TFTP timing window'''.
 + 
 +Power the router off for now. Make sure you are wired into the switch. Do not use the WAN port, use switch ports only.
 + 
 +1) Set a static ip on the pc of 192.168.11.2 / 255.255.255.0 Gateway: 192.168.11.1
 + 
 +2) Open a command prompt and type this: arp -s 192.168.11.1 02-AA-BB-CC-DD-1A [enter]
 + 
 +3) After entering the static arp have the command line ready with this command (and you'll have to be in the dir where the firmware image is at or it won't work): tftp -i 192.168.11.1 put wzrhpg300nh-pro-v24sp2-17798-alpha.enc
 +4) Do not enter the TFTP command, just having it waiting for now, With the router still powered down, '''Plug in the power for the router and count to 10 seconds or use a stopwatch''', then enter the TFTP command that you should have waiting in the command prompt. '''This is an important timing step for TFTP to work'''. Alternatively for step 4: Plug in the power and watch the DIAG light turn red. When the red light goes off on the router (after about two seconds) use a stop watch to count to 12, THEN enter the above TFTP command. Video of the bootloader TFTP window here: https://www.youtube.com/watch?v=8dVkJ1G0KJs
-If in your network have any device use static IP, find the Wins section and point to dd-wrt lan ip address+5) You'll know if it transferred by the command prompt telling you so, give it about 5-6 minutes after if transfer was successful, it'll reset/program itself in this time. Once it is complete the Red Diag LED should go off. Issue arp -d 192.168.11.1 in a command line window. Now you can access the newly flashed router at 192.168.11.1.
-(If you use windows, choose properties of you adapter, click Advance, goto WINS tag, If your use linux, add <code>wins server = xxx.xxx.xxx.xxx</code> in <code>[global]</code> section of samba)+
 +* '''Please note that the above method is performed using the Buffalo Branded DD-WRT .enc builds, to use a community DD-WRT build you will need to browse the FTP and choose which build number you want to use and get the file with the naming format of 'buffalo_to_ddwrt_webflash-MULTI.bin' and substitute the above .enc file. Please also note that if you use the community dd-wrt build to flash with, the IP access for webgui using community builds will be @ 192.168.1.1 instead of 192.168.11.1 So once the red diag led goes off you will need to use 192.168.1.1 for webgui access but all the other steps stay the same.'''
 +*'''Also i am noticing alot of people trying to TFTP to 192.168.1.1 - this will not work, no place in this guide does it say TFTP to 192.168.1.1 - The IP for buffalo's bootloader is 192.168.11.1 so you must follow the steps above carefully in order for this to work.'''
[[Category:Buffalo guides]] [[Category:Buffalo guides]]

Revision as of 13:42, 25 February 2018

Contents

Specifications: Buffalo WZR-HP-G300NH

Image:G300NH1.jpg


CPU Atheros AR9132 rev 2 (0xb9)
CPU Speed 400 MHz
Flash ROM 32 MB
RAM 64 MB
Radio 2.4 GHz
WLAN Support B/G/N
WLAN Max Speed 300 mbps
Antenna Location 2x fixed external
Switch 4x GigE + 1 WAN
USB 1x USB 2.0


DD-WRT on Buffalo WZR-HP-G300NH

Buffalo provides a re-branded version of DD-WRT specifically for this router. It can be flashed from the GUI and is available on the Buffalo website:

http://www.buffalotech.com/support-and-downloads/downloads

Go to that site and type in WZR-HP-G300NH and it should point you to the appropriate download for the buffalo dd-wrt professional firmware. As of Aug.2012 - the buffalo dd-wrt builds for this unit currently come in 2 builds only, which are 14998 and 19484

For build 19484, be aware of the issue that VLAN is turned on automatically by default, which makes clients unable to communicate with each other on the LAN ports.

The symptom is described here and can be fixed by startup script described in post 24 & 25. http://forums.buffalotech.com/index.php?topic=15378.15

To disable the VLAN, run the following commands in Administrator -> Commands:

swconfig dev switch0 set enable_vlan 0
swconfig dev switch0 set apply

To keep VLANs enabled but allow communication:

swconfig dev switch0 port 3 set pvid 6
swconfig dev switch0 port 2 set pvid 6
swconfig dev switch0 port 1 set pvid 6
swconfig dev switch0 port 0 set pvid 6

To save this configuration, press Save Startup on the Commands page.

Also, if you happen to have a hardware switch (10/100 or gigabit either one), you can use this to remedy the VLAN issue. Just plug a hardware switch into one of the g300nh's LAN ports and then simply use the switch to connect wired connections, should keep them within the same VLAN then.

As of Feb 2010, the WZR-HP-G300NH can be flashed with DD-WRT directly from the Buffalo web GUI. See Where do I download firmware? for links. Look for a Buffalo WZR-HP-G300NH folder, and download the firmware file you need (just one file).

Newer or older builds can be found in the DD-WRT file server

ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/

DD-WRT on Buffalo WZR-HP-G300NH (Japanese version)

The official DD-WRT release cannot be pushed by web upload onto the Japanese WZR-HP-G300NH original Buffalo firmware. Buffalo Japan added a "safeguard" that checks for Japanese firmware and rejects western firmware. For people with a Japanese router, see the following two sites for details.

WZR-HP-G300NH2 and WZR-300HP

CPU Atheros AR7242
CPU Speed 400 MHz
Flash ROM 32 MB
RAM 64 MB
Radio 1x 2.4 GHz
WLAN Support B/G/N
WLAN Max Speed 300Mbps
Antenna Location 2x fixed external
Switch 4x LAN + 1 WAN Gigabit ports
USB 1x USB 2.0

Newer models of the WZR-HP-G300NH have been released called WZR-HP-G300NH2 and WZR-300HP, these units have different hardware than the v1 of this unit. Both the G300NH2 and 300HP share the same FCC ID # and have an Atheros AR7242@400Mhz with 32MB flash rom and 64MB board ram. The G300NH2 has been supported as of build 17201. The newer 300HP unit has been community build supported as of build 20675. These units also come with buffalo dd-wrt professional firmware pre-flashed, you can flash to the community dd-wrt builds by following the below steps.

1) Download the community dd-wrt build for this model using the link below.

For a WZR-HP-G300NH2

buffalo_wzr-hp-g300nh2 folder, file buffalo_to_ddwrt_webflash-MULTI.bin See Where do I download firmware? for links.

For a WZR-300HP folder buffalo_wzr-300hp, file buffalo_to_ddwrt_webflash-MULTI.bin See Where do I download firmware? for links.

2) Perform a reset on the router holding the reset button down for 30 seconds and then release.

3) Set a static IP on your PC to 192.168.11.2 and subnet 255.255.255.0, gateway 192.168.11.1

4) Log in the router's web-gui @ http://192.168.11.1 and go to the firmware upgrade section and select the file you downloaded in the first step.

5) After you selected the file from the first step, if you are in the buffalo dd-wrt pro build then select "reset to default settings" and click "upgrade"

6) Give this atleast 10 minutes to complete, do not unplug or mess with the unit in any form or fashion... BE PATIENT!

7) After you have waited, un-set the static ip of 192.168.11.2 and either set it to use DHCP or set a static ip of 192.168.1.8

8) Log in the dd-wrt webgui @ http://192.168.1.1 and once in, immediately go to Administration > Factory Defaults and select to "restore to factory defaults" again wait atleast 3 minutes. This will give it the equivalent of a hard reset to assure flash integrity.

9) Then, after you have waited atleast 3 minutes, re-log in the dd-wrt webgui @ http://192.168.1.1 and begin setup, enjoy dd-wrt!

Samba Configuration

The latest build has already include simple UI to configure Samba
DD-WRT already includes a built-in Samba server. These instructions provide a simple way to setup Samba. They are based on instructions from http://g300nh.blogspot.com/2010/06/samba-sharing-in-dd-wrt.html, but have been modified for users not familiar with Linux. All setup can be done from within the DD-WRT interface without requiring the use of a remote shell.

Pre Requirements

DD-WRT doesn't have any tools to format an HDD, so you must have an preformatted HDD in a format that DD-WRT can understand (FAT32, EXT3, etc.)

Go to Services/USB within DD-WRT and change the settings as indicated below:

Core USB Support: Enable
USB 2.0 Support: Enable 
USB Storage Support: Enable 
ext2 / ext3 File System Support: Enable
FAT File System Support: Enable
Automatic Drive Mount: Enable 
Disk Mount Point: /mnt

After apply the changes, if you have already plugged in an HDD, you should see its information in the UI.

Anonymous Sharing Setup

These step will share a disk that is already mounted at /mnt. It will be publicly available to everyone on the network and won't require a username or password to connect.

Go to Administrators/Commands in DD-WRT and copy the script below into the textbox then choose Save Startup

# Stop samba service
killall smbd
killall nmbd
sleep 2

# Configure samba
mkdir -p /tmp/etc/samba
echo "
[global]
	netbios name = DD-WRT
	workgroup = WORKGROUP
	server string = DD-WRT
	syslog = 10
	obey pam restrictions = yes
	socket options = TCP_NODELAY
	preferred master = no
	os level = 20
	
	security = share
	guest account = nobody
	invalid users = root, mail, deamon, reboot
	null passwords = yes
	guest only = yes	
	map to guest = Bad User

	private dir = /tmp/etc/samba/
	lock directory = /var/lock/
	pid directory = /var/run/

	unix charset = UTF-8
	dos charset = UTF-8
	map archive = No
	map hidden = No
	map system = No

[Share]
	path = /mnt/
	read only = no
	create mask = 0700
	directory mask = 0700
" > /tmp/etc/samba/smb.conf

# Add user for samba
# guest user
grep -q nobody /etc/passwd || echo 'nobody:x:65534:65534:nobody:/mnt:/bin/false' >> /etc/passwd

# Start samba service
SMBOPTIONS="-s /tmp/etc/samba/smb.conf"
/usr/sbin/smbd $SMBOPTIONS
/usr/sbin/nmbd $SMBOPTIONS

Setup Sharing with Username/Password

Because smbpasswd program build-in DD-WRT always treats /etc/samba/smbpasswd as the samba password file, and /etc is a readonly file system, we must temporary bind /tmp/etc to /etc when adding a user. Change # Add user for samba section like below:

# Add user for samba
mount -o bind /tmp/etc /etc

# clear samba user if exists
echo "" > /tmp/etc/samba/smbpasswd

# guest user
grep -q nobody /etc/passwd || echo 'nobody:x:65534:65534:nobody:/mnt:/bin/false' >> /etc/passwd

# add user: username=share, password=sharepassword
grep -q share /etc/passwd || echo 'share:x:65534:65534:nobody:/mnt/:/bin/false' >> /etc/passwd
smbpasswd share sharepassword

umount /etc

If you need add more users, you can repeat these lines with the desired usernames and passwords

# add user: username=share, password=sharepassword
grep -q share /etc/passwd || echo 'share:x:65534:65534:nobody:/mnt/:/bin/false' >> /etc/passwd
smbpasswd share sharepassword

In the [global] section of Samba configuration, update the config value as indicated below:

	encrypt passwords = true
	passdb backend = smbpasswd
	security = user
	null passwords = no
	guest only = no	
	smb passwd file = /tmp/etc/samba/smbpasswd

Configuration Share Folder

add later

Setup DD-WRT as Windows Name Server

If your network has more than one subnet, you might need to setup a Windows Name Server (WINS server), You can make you router become a WINS server even if you don't have a USB HDD or you don't need a sharing setup. Just user script like Anonymous Sharing Setup but change the below setting in the [global] section:

wins support = yes

Go to Setup/Basic section in DD-WRT and set WINS server in DHCP group to your LAN IP address (ex: 192.168.11.1)


If your network has any device that uses a static IP address, find the WINS section and point to DD-WRT LAN IP address (If you use Windows, choose properties of you adapter, click Advanced, goto WINS tag. If you use Linux, add wins server = xxx.xxx.xxx.xxx in [global] section of samba)

Optware on Atheros

Running Optware on Atheros is somewhat different than broadcom. This post explains how to install and setup Optware on Atheros.

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=86912

Debricking Info using TFTP

There have been a few guides out that have reports of success when de-bricking the WZR-HP-G300NH. This however, has been explained by Brainslayer in this post, please use it for referencing info you may need to de-brick your unit, should the occasion arise.

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=87579

It has been asked about on how to de-brick this unit in the case that a flash goes wrong or how you can switch back and forth between Buffalo dd-wrt builds and community dd-wrt builds.

This method is if you are using Windows XP OS. I also always use a 10/100 or Gigabit hardware switch in-between the router and the PC, this way - Windows doesn't have to wait for the router switch to initialize, which can make you loose your TFTP timing window.

Power the router off for now. Make sure you are wired into the switch. Do not use the WAN port, use switch ports only.

1) Set a static ip on the pc of 192.168.11.2 / 255.255.255.0 Gateway: 192.168.11.1

2) Open a command prompt and type this: arp -s 192.168.11.1 02-AA-BB-CC-DD-1A [enter]

3) After entering the static arp have the command line ready with this command (and you'll have to be in the dir where the firmware image is at or it won't work): tftp -i 192.168.11.1 put wzrhpg300nh-pro-v24sp2-17798-alpha.enc

4) Do not enter the TFTP command, just having it waiting for now, With the router still powered down, Plug in the power for the router and count to 10 seconds or use a stopwatch, then enter the TFTP command that you should have waiting in the command prompt. This is an important timing step for TFTP to work. Alternatively for step 4: Plug in the power and watch the DIAG light turn red. When the red light goes off on the router (after about two seconds) use a stop watch to count to 12, THEN enter the above TFTP command. Video of the bootloader TFTP window here: https://www.youtube.com/watch?v=8dVkJ1G0KJs

5) You'll know if it transferred by the command prompt telling you so, give it about 5-6 minutes after if transfer was successful, it'll reset/program itself in this time. Once it is complete the Red Diag LED should go off. Issue arp -d 192.168.11.1 in a command line window. Now you can access the newly flashed router at 192.168.11.1.

  • Please note that the above method is performed using the Buffalo Branded DD-WRT .enc builds, to use a community DD-WRT build you will need to browse the FTP and choose which build number you want to use and get the file with the naming format of 'buffalo_to_ddwrt_webflash-MULTI.bin' and substitute the above .enc file. Please also note that if you use the community dd-wrt build to flash with, the IP access for webgui using community builds will be @ 192.168.1.1 instead of 192.168.11.1 So once the red diag led goes off you will need to use 192.168.1.1 for webgui access but all the other steps stay the same.
  • Also i am noticing alot of people trying to TFTP to 192.168.1.1 - this will not work, no place in this guide does it say TFTP to 192.168.1.1 - The IP for buffalo's bootloader is 192.168.11.1 so you must follow the steps above carefully in order for this to work.