I have a TL-MR3020 that I flashed with a custom binary built from OpenWRT source.
I was trying to enable WiFi and connect to the internet on the router by editing /etc/config/network
and /etc/config/wireless
. I changed the IP type from 'static' to 'dhcp' for LAN. I changed 'disable' to 0 for WiFi, set the SSID, encryption to 'psk' and a valid key.
These changes I made through SSH while being connected by a LAN wire. I disconnected LAN, then tried connecting to the WiFi created and successfully did too.
After that I can't SSH/TELNET into the router to do anything else. I cannot even reset it.
Any solution for this? either a way to SSH/TELNET to access the settings, or a way to reset the settings entirely?
Edit: SSH or TELNET to 192.168.1.1 shows 'no route to host'
The procedure to recover an openwrt you have lost control is to try the recover mode, as it will boot will a minimal configuration, a known IP, and depending on the version of open-wrt can be accessed via telnet or ssh.
You have here the links to the considerations of the procedure https://wiki.openwrt.org/doc/howto/generic.failsafe and a youtube video talking about it at https://www.youtube.com/watch?v=axQvgqvlhcU
Basically you reboot it, and when one of the leds is blinking in a particular pattern you press the reset or the power off button. The appliance will then boot in safe mode with the default IP address 192.168.1.1.
As we have seen in your case, it will then be enough to ssh to it as root with no password.
As for people thinking what is openWrt, it is a Linux-based open source substitute firmware for the standard image that comes with some models of routers that happen to have hardware compatible with Linux and that in some cases have placed their firmware or parts of their firmware in the domain of open source.
The firmware gives you more control, and often will also provide extra functionality. In my case, the default firmware does not allow the use of the VLAN chipset for more than the standard Internal/external network at fixed ports, whilst with openWRT the VLANs can be programmed at will, and extra functionality can be added with standard Linux software.
I will leave here a link about the differences between openWRT, dd-wrt and Tomato.
https://www.quora.com/Which-is-best-for-WiFi-routers-Tomato-DD-WRT-OpenWRT-or-something-else
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments