OpenWrt Forum Archive

Topic: I lost the IP address to my TP-Link MR3020 and don't have root acces

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

So, I decided to change the default IP address(192.168.1.1), stupid I know, on the device to something I now can't remember and now I can't SSH into the device without the new IP address that I can't remember. I have no idea what to do now... I have tried looking up the IP address using ARP -a, ifconfig, and netstat -n. It has been a huge headache and I just want to make it right now. Can anyone suggest what I do so that I can regain my access to the device. I know the password and everything I just cant SSH into it...

(Last edited by Smoopu on 15 Mar 2012, 03:32)

Hi Smoopu
You have a few ways. From easy to hard.

As a general hint,  click on the openwrt https://forum.openwrt.org/index.php documentation and then enter in the wiki search a topic you want.
Most times this will get you quickly to some help. There is a lot more information in the forum search but takes more digging but has more gold.

1. Try the openwrt failsafe and check it that way. Search the forums and wiki's. http://wiki.openwrt.org/doc/howto/generic.failsafe

2. Try a reset to defaults on the router (check the router information for loading new firmware) and reload firmware.

3. Install a serial cable and check it that way. There is lots of information on this forum on the subject.
For me this is the best way.

4. If you have a windows box then you can download something like this http://download.cnet.com/Advanced-IP-Sc … 15592.html.
Assuming your router is funtional.
Connect your router directly to your network port.
Set the ip range as a guess say 192.168.0.0 to 192.168.0.255 and run a scan. It will show up as a device.
Change the range say to 192.168.1.0 to 192.168.1.255 and run the scan again.

5. If you enabled the wifi perhaps you can sniff it out and gain access that way.

There may be easier ways I'm sure, perhaps others will help.

Good luck.

~john

Smoopu wrote:

So, I decided to change the default IP address(192.168.1.1), stupid I know, on the device to something I now can't remember and now I can't SSH into the device without the new IP address that I can't remember. I have no idea what to do now... I have tried looking up the IP address using ARP -a, ifconfig, and netstat -n. It has been a huge headache and I just want to make it right now. Can anyone suggest what I do so that I can regain my access to the device. I know the password and everything I just cant SSH into it...

It is not a big due.
If your mr3020 use squashfs,
- change your LAN IP to 192.168.1.x
- trigger your mr3020 to failsafe mode
- telnet to 192.168.1.1  (not ssh)
- mount_root
- cat /etc/config/network  <---- your can see your mr3020 IP you previously set.

Hi,

I had a similare problem. I acceded to failsafe mode by telnet access.

But, I launched this command : rm -rf /overlay/*

I think that is a mistake... :-s

And now i can't acces to telnet.

I can ping 192.168.1.1 in failsafe mode, but i can't acces by telnet...

I try with serial port, but nothing...

Do you have an other solution to fix my error.?

Thank you for your help.
And sorry for my english ;-)

David

(Last edited by Daygi on 17 Mar 2012, 23:09)

Daygi wrote:

Hi,

I had a similare problem. I acceded to failsafe mode by telnet access.

But, I launched this command : rm -rf /overlay/*

I think that is a mistake... :-s

And now i can't acces to telnet.

I can ping 192.168.1.1 in failsafe mode, but i can't acces by telnet...

I try with serial port, but nothing...

Do you have an other solution to fix my error.?

If you use firmware with SquashFS, you will have failsafe mode.
In failsafe, it won't mount overlay, only the r/o rom,
so you should able to telnet into it.

delete overlay shouldn't be a problem too, it is just like factory reset.

Your info is insufficient, don't know why there is problem.

Yes i use the SquashFS

I read this page:
http://wiki.openwrt.org/doc/howto/generic.failsafe

But I don't launch "mount_root" commande, I think.

I do a "rm -f /overlay/*"

Now,

I try to active the failsafe mode, I think that's good. I can ping 192.168.1.1.

In a same time, I try to acces in a telnet to 192.168.1.1, but the command return  that:

david@lap01:~$ telnet 192.168.1.1
Trying 192.168.1.1...
telnet: Unable to connect to remote host: Connection refused
david@lap01:~$
david@lap01:~$ telnet 192.168.1.1
Trying 192.168.1.1...
telnet: Unable to connect to remote host: Connection refused
david@lap01:~$ sudo nmap -sS 192.168.1.1

Starting Nmap 5.00 ( http://nmap.org ) at 2012-03-18 13:37 CET
All 1000 scanned ports on 192.168.1.1 are closed
MAC Address: xx:xx:xx:xx:xx:xx (Unknown)

Nmap done: 1 IP address (1 host up) scanned in 13.35 seconds

In a same time i scan port, but the telnet port is maybe closed...


It possible to set a harware reset factory on MR3020?

(Last edited by Daygi on 18 Mar 2012, 13:23)

Ok, that good, I recovery acces...

1. Plug power
2. Push de button "WPS"
3. When the WPS Led flash slowly, switch on AP mode to 3G mode. The LED flash quicky.
4. You can acces on telnet.

I hope to help anybody.

where did you find point 3????
thanks for sharing!

(Last edited by nebbia88 on 18 Mar 2012, 14:13)

Resetting the router to factory default(hard reset) won't do it? Always wporked for me.

nebbia88 wrote:

where did you find point 3????
thanks for sharing!

Nowhere... I'm lucky... It is maybe a feature

I try that's all...

so are you sure that it's really needed?

@ttony if you lose access to router how would you reset it???

hi,
I read http://wiki.openwrt.org/doc/howto/generic.failsafe, I can telnet 192.168.1.1

If I type 'passwd' I get
'passwd: /etc/passwd: Read-only file system
passwd: can't update password file /etc/passwd'

root@(none):/# uci get network.lan.ipaddr
uci: Entry not found
root@(none):/# firstboot
Unlocking rootfs_data ...
Erasing rootfs_data ...
mount: mounting /dev/mtdblock3 on /overlay failed: Invalid argument

This works...

root@(none):/# mtd -r erase rootfs_data
Unlocking rootfs_data ...
Erasing rootfs_data ...
Rebooting ...

But what have I to to do after that?

The discussion might have continued from here.