{"id":737,"date":"2010-09-04T01:44:43","date_gmt":"2010-09-03T16:44:43","guid":{"rendered":"http:\/\/www.joewein.net\/blog\/?p=737"},"modified":"2010-09-19T08:48:37","modified_gmt":"2010-09-18T23:48:37","slug":"installing-openwrt-on-wzr-hp-g300nh-from-dd-wrt","status":"publish","type":"post","link":"https:\/\/joewein.net\/blog\/2010\/09\/04\/installing-openwrt-on-wzr-hp-g300nh-from-dd-wrt\/","title":{"rendered":"Installing OpenWRT on WZR-HP-G300NH from DD-WRT"},"content":{"rendered":"<p>Last month <a href=\"http:\/\/www.joewein.net\/blog\/2010\/08\/07\/dd-wrt-on-buffalo-wzr-hp-g300nh-japanese-version-a0-a3\/\">I bought a Buffalo WZR-HP-G300NH router<\/a> and flashed it with DD-WRT open source firmware to use at my new home. However, I had problems with the router resetting itself periodically and with a weak WiFi signal. It appears DD-WRT for this router is not yet ready for prime time, though it may be in better shape by the end of the year. <\/p>\n<p>Since I read that OpenWRT for the same router was fairly robust, I investigated switching from DD-WRT to OpenWRT. It turned out easier than I thought.<\/p>\n<p>Using putty under Windows I did a ssh session to the router running DD-WRT. From there I downloaded the new firmware into the \/tmp folder, trimmed off the 32 byte header and wrote the result to flash memory:<\/p>\n<p><code># cd \/tmp<br \/>\n# wget http:\/\/downloads.openwrt.org\/backfire\/10.03.1-rc3\/ar71xx\/openwrt-ar71xx-wzr-hp-g300nh-jffs2-tftp.bin<br \/>\n# dd if=openwrt-ar71xx-wzr-hp-g300nh-jffs2-tftp.bin of=firmware.trx bs=32 skip=1<br \/>\n# mtd -r write firmware.trx linux<\/code><\/p>\n<p>When the mtd command finished it dropped the connection to putty. I waited for the router to finish its reboot. Then I released and reacquired the IP  address on Windows using ipconfig \/release and ipconfig \/renew. I launched the FireFox browser with 192.168.1.1 to configure OpenWRT. The first thing you should do once you&#8217;re connected to the web interface is assign an administrative password, because by default there isn&#8217;t one.<\/p>\n<p>My next stumbling block was the fact that the WAN port had a different MAC address under OpenWRT than under DD-WRT. In DD-WRT the WAN and LAN ports on the WZR-HP-G300NH have the same MAC address, but in OpenWRT the WAN MAC address is larger by one. As a result DHCP from the ISP treated it as a new client that needed a new IP address, but the cable modem had already assigned its only IP address to the old MAC address. The solution was to pull the power cord from my Cisco cable modem, reconnect it and wait for the modem to reinitialize (watch the LEDs). Then do the same with the router. Reconnect ssh to the router and the WAN port has an IP address. <\/p>\n<p>I also assigned Google&#8217;s open DNS server (8.8.8.8 \/ 8.8.4.4) to the router rather than leaving the default but I&#8217;m not sure if that was really necessary.<\/p>\n<p>I set up the wireless SSID and selected WPA2 and a key. Finally I could specify transmit power to reach the whole building.<\/p>\n<p>The OpenWRT UI doesn&#8217;t look quite as slick as DD-WRT, but it seems to work well and all the basic configuration seemed easy enough through the web interface. What I really liked best about the WHR-HP-G54 that this router replaces for me was its rock-solid reliability, followed by its WiFi coverage and feature set. With OpenWRT the WZR-HP-G300NH looks like a worthy successor to it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last month I bought a Buffalo WZR-HP-G300NH router and flashed it with DD-WRT open source firmware to use at my new home. However, I had problems with the router resetting itself periodically and with a weak WiFi signal. It appears &hellip; <a href=\"https:\/\/joewein.net\/blog\/2010\/09\/04\/installing-openwrt-on-wzr-hp-g300nh-from-dd-wrt\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-737","post","type-post","status-publish","format-standard","hentry","category-computers","category-electronics"],"_links":{"self":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts\/737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/comments?post=737"}],"version-history":[{"count":6,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts\/737\/revisions"}],"predecessor-version":[{"id":742,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts\/737\/revisions\/742"}],"wp:attachment":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/media?parent=737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/categories?post=737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/tags?post=737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}