OpenWRT Restore factory Settings command

Source: Internet
Author: User

If you cannot connect to the router via wireless or wired ports, you can reset the router with some of the settings restored.

1. Power on, waiting for a work light when the rest button is pressed immediately 2 seconds, and then began desperately flashing, very well now into the failsafe mode.

2. Set the computer's IP to static IP 192.168.1.x, and set the subnet mask (usually a bit autofill).

3. Connect the cable port of the router with a network cable.

4.telnet to Router, default IP is 192.168.1.1

5. If you just modify certain settings you can: (UCI this command is useful)

After entering mount can see root is not to write, so also to unlock, first map the root disk
Mount_root

  

Just use this command to forget your password
passwd

  

Forgot the router IP with this reset
UCI get NETWORK.LAN.IPADDR

  

JFFS2 partition installs too many packages too many software, you want to reset, with this will clear the entire jfss2 area of data, equivalent to restore factory settings. (This is a good thing is to restore the factory settings, the default erase after the completion of automatic restart).
Mtd-r Erase Rootfs_data

  

Now that you have done what you want to do, just restart it.
Reboot-f

  

6. If you want to revert to the initial state of the system, then:

Disposable erase instructions.

Firstboot

After exiting Telnet, the system will turn off Telnet, turn on SSH, and restore success.

OpenWRT Restore factory Settings command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.