In case you manage to lose access to the OpenWRT web page user interface (seems that setting the
LAN to be a DHCP client sometimes sends the router off to La-La-Land), you can use Telnet and this
procedure below (from Stack Overflow.com):
A user who lost contact with his router asks "I disabled the DHCP server on the LAN and enabled it as a DHCP client. I saved and applied the configuration
to the router. Now after a restart I am not able to connect to the router webpage.
How do I enable the DHCP server again or can anyone let me know how to reset this OpenWrt
router to default settings?
I tried in the serial port console. but I can't see any IP address for any interfaces.
Before It was 192.168.1.1."
The procedure to recover your unresponsive partly bricked router:
- Set your PC's IP address: 192.168.1.2 and subnetmask 255.255.255.0 and gateway 192.168.1.1
- Power off the router
- Disconnect the WAN cable
- Only connect your PC Ethernet cable to ETH0 (one of the router's LAN ports)
- Power on the router
- Wait for the router to start the boot sequence (SYS LED starts blinking)
- When the SYS LED is blinking, hit the restart button (the SYS LED will be blinking at a faster
rate means your router is in failsafe mode). (You have to hit the button
before the router boots.) (on my WRT54G V2.2 the SYS (power) LED and the DMZ LED were then both blinking
after doing the reset button)
- on your PC, run a telnet program and telnet to 192.168.1.1
- Run these commands:
mount_root ## this remounts your partitions from read-only to read/write mode
firstboot ## This will reset your router after reboot (my router said it already did a firstboot,
but doing this command did no harm)
reboot -f ## And force reboot
- Log in the web interface after the rebooting using a web browser at 192.168.1.1
and you should see the router restored back to its default mode.