Question: I recently ported Luci to an OpenWrt router. I was just exploring the thing. I disabled the DHCP server on LAN and enabled as DHCP client. I saved and applied the configuration to the router. Now after a restart I am not able to connect 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.

Please suggest...

Answer: 
Some addition to previous comments: 'firstboot' won't be available until you run 'mount\_root' command.

So here is a full recap of what needs to be done. All manipulations I did on Windows 8.1.

* Enter Failsafe mode (hold the reset button on boot for a few seconds)
* Assign a static IP address, 192.168.1.2, to your PC. Example of a command: `netsh interface ip set address name="Ethernet" static 192.168.1.2 255.255.255.0 192.168.1.1`
* Connect to address 192.168.1.1 from telnet (I use [PuTTY](http://en.wikipedia.org/wiki/PuTTY)) and login/password isn't required).
* Run 'mount\_root' (otherwise 'firstboot' won't be available).
* Run 'firstboot' to reset.
* Run 'reboot -f' to reboot.

Now you can enter to the router console from a browser. Also don't forget to return your PC from static to DHCP address assignment. Example: `netsh interface ip set address name="Ethernet" source=dhcp`
If you enabled it as a DHCP client then your router should get an IP address from a DHCP server. If you connect your router on a net with a DHCP server you should reach your router's administrator page on the IP address assigned by the DHCP.