If you need to reset your OpenWrt router to its default settings and cannot connect to it via the web interface or SSH, you can perform a factory reset using the physical reset button on the router. Here are the steps to do so:

Factory Reset Using the Reset Button

  1. Locate the Reset Button:

    • Find the reset button on your TP-Link TL-WR841N router. It is usually a small, recessed button that may require a paperclip or pin to press.
  2. Power On the Router:

    • Ensure that the router is powered on.
  3. Press and Hold the Reset Button:

    • Use a paperclip or pin to press and hold the reset button.
    • Hold the button for about 10 seconds. You may see the router’s LEDs blink or change during this process.
  4. Release the Reset Button:

    • After holding the button for 10 seconds, release it.
    • The router will reboot and reset to its factory default settings.

After Reset

Once the router has reset, it will be restored to its factory settings. The default IP address for most TP-Link routers is usually 192.168.1.1. You can now connect to the router using the default credentials:

  • Default IP Address: 192.168.1.1
  • Default Username: root
  • Default Password: password (if set) or leave it blank

Connecting to the Router

  1. Connect via Ethernet or Wi-Fi:

    • Connect your computer to the router using an Ethernet cable or connect to the default Wi-Fi network.
  2. Access the Web Interface:

    • Open a web browser and navigate to http://192.168.1.1.
  3. Log In:

    • Use the default credentials to log in and reconfigure your router as needed.

Example Commands for SSH (After Reset)

If you need to reconfigure via SSH, use the following commands after logging in:

  1. Log In to the Router:

    ssh root@192.168.1.1
    
  2. Configure Network Settings:

    • You can now proceed with reconfiguring your network settings as required.

By following these steps, you should be able to reset your TP-Link TL-WR841N router to its factory default settings and regain access to it.