OpenWrt Forum Archive

Topic: Failsafe mode problem ...

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

Hi ..
I have to recover the ip address from a wrt54GL ...
DHCP is disabled and I don't know what was the lan ip.

I tried failsafe mode, I can ping the router but I cannot telnet into it.

Can someone help me ?
Boot wait should be on but I cannot be sure.

have you test web interface ?

have test ssh after failsafe ?

I have tried both ssh and webif, but none is responding.
Also, I made a scan with nmap but every tcp port seems to be closed.
Is it normal that power led blinks when in falisafe mode ?

Yes, that's normal. failsafe mode only accepts telnet connections. the web interface and ssh is disabled. You  need to set your ip statically, set it to 192.168.1.2 with a gateway of 192.168.1.1, your router should be 192.168.1.1

I'll try again setting the default gw, it's the only thing I didn't.
However with nmap port 23 wasn't open ...

Tried again but no telnet sad sad
only responding to icmp sad sad
is there something else I can do ?
Shall I reflesh the firmware via tftp (I think boot wait is on) ?

You could, but if there a probleme with your nvram... that is going to change nothing...

How do you do to have this problem and, you do want exactly ?

$@m wrote:

You could, but if there a probleme with your nvram... that is going to change nothing...

How do you do to have this problem and, you do want exactly ?

I just need to reach the router in some way and reconfigure it.
I'm almost sure it's not bricked ... but DHCP has been disabled and I don't remember the router's ip.

I don't have any serial cable and I'm not an electronic expert (I'm not able to solider)

Help me please ...
I tried failsafe with another router but same result .... telnet doesn't work.
I tried both from a linux debian box and from my macbook , same result sad sad

computer-di-kiaz:~ kiaz$
computer-di-kiaz:~ kiaz$ telnet 192.168.1.1
Trying 192.168.1.1...
telnet: connect to address 192.168.1.1: Connection refused
telnet: Unable to connect to remote host

I' doing something wrong ?
How long should I keep reset pressed ?

hehe oki.

If you are sure your routeur is ok....
you can test all ip
ping 192.168.x.1
with x from 0 to 255...
you can make a script on your macbook to do that :
# i=0; while [ $i -lt 255 ]; do ping -option 192.168.$i.1; i=$(( $i + 1)) ; done

have a look for ping option to just send 1 ping.

EDIT : And you must be linked on the 4 RJ45 connector, not on the WAN (internet) !

(Last edited by $@m on 31 May 2007, 10:43)

for next time the good solutions are :
- DHCP active
- or giving a name to your routeur and configure your dns option on your system to ping name_of_routeur wink

$@m wrote:

for next time the good solutions are :
- DHCP active
- or giving a name to your router and configure your dns option on your system to ping name_of_routeur wink

DHCP was disabled because the router was used as a bridget client .
Now I have to use it again as AP.

However I solved rebuilding opewrt with imagebuilder and including in my build a scritpt in /etc/init.d resetting nvram and setting a static ip address.

I re-flashed the firmware via tftp and all seems to be over now smile

smile

Ok, I'm having this very issue, icmp and *only* icmp responds.
I'm a network engineer by trade so I'm not totally clueless (just to help shed light on what troubleshooting I may have done).

No telnet, no tcp and no udp (sent or received) to my linux laptop connected directly to it.
Nothing from tcpdump either (other than the icmp responses, of course).
This is on a WRT54G v2
So do I have a brick?
Does anyone know how I can recover this puppy? Seems to me that if it's responding to icmp, it should be accessible somehow, no?
Thanks for any insight you guys can provide!

-Clayton Dukes

Dumb question, but we are talking about a wrt54gl with OpenWrt installed, correct?

The failsafe mode refered to above is OpenWrt specific.

mbm wrote:

Dumb question, but we are talking about a wrt54gl with OpenWrt installed, correct?

The failsafe mode refered to above is OpenWrt specific.

Yeah, it had an older version of openwrt on it (something like 23 or something? can't remember) and I tried to upgrade via the web interface using the latest white russian bin file.
Incidentally, I just checked to make sure and it's a WRT54G v1.0 (S/N starts with CDF0)

Edit: If it helps, I have RTFM'd :-)

(Last edited by cdukes on 30 Jun 2007, 07:13)

Anyone have any Ideas? I'm curious to know how this thing responds to icmp but nothing else...am I missing something?

bump...

Well, I got it working by plugging it in and doing a TFTP of the original software to it (for whatever reason that was the only .bin file it seemed to accept).
Now that I have that fixed, I have a new problem. I loaded openwrt, changed the WAN ip address, saved changes and it seems to have destroyed the router? that's kinda crappy...needless to say I (was) using a WRT54G v1.0.
Here's a new thread for that issue:
http://forum.openwrt.org/viewtopic.php?pid=51752#p51752

The discussion might have continued from here.