buffalo wzr-hp-g300nh open wrt failsafe mode

I recently ugpraded my router's (buffalo wzr-hp-g300nh) firmware from dd-wrt to open-wrt due to problems with installing packages to dd-wrt's lates version.
Looks like open-wrt now is more up to date and works better.However it is easier to break.
After playing with it's GUI to configure network I easly bricked the router and needed to recover it.

What I found is failsafe mode in open wrt.To achieve this with buffola wzr-hp-g300nh, simply unplug the rooter
wait for red diagnostic light to turn of , when the green light starts blinking immediately press the wireless button.
This will put the open-wrt in fail safe mode.To be able to access failsafe mode , you should be connected to your router over cable
and your ip address should be set to 192.168.1.2 (static).
Once you are in , just telnet to 192.168.1.1 and you will be logged in.
first mount the file system so that you can write it by typing:

mount_root

when you do this , FS will be writable.

I found default configs stored in this directory:

/etc/defconfig/

find your routers name or if not there choose generic
and copy the network file under it to your current config.

cp /etc/defconfig/wzr-hp-g300nh/network /etc/config/network -f

This will override the corruped network file with the default one.

Finally, type this

reboot -f

This will reboot the router and you should be able to access your router with default settings.

Comments

Anonymous said…
Thanks for this! I screwed up my OpenWrt badly enough that "firstboot" after entering failsafe mode was the right answer. (equivalent of "factory reset".) It's also worth noting that the green light begins blinking very rapidly when failsafe mode is entered.

Popular posts from this blog

how can you enable a windows firewall rule for a dynamic dns name or dns address

Bose speaker hack (companion 5) to turn on/off automatically

how to IR remote control via wemos d1 (esp8266) & mqtt & sonoff tasmota