If you have had your reverse telnet sessions timeout, or your remote connection lost, you might have come across the following error when trying to reconnect:
IETS#sw1
Translating "sw1"
Trying R1 (172.69.1.1, 2002)...
% Connection refused by remote host
.
The happens because the sessions according to the router is still active and the inactive timeout has not yet expired. To fix this is easy, using the show line command you will see the active sessions marked with a “*”, like below:
.
In order to reconnect, you have to release the current active/orphaned sessions. Use the clear line {line number} command referencing the output from above.
IETS#clear line 2
[confirm]
[OK]
IETS#clear line 3
[confirm]
[OK]
.
Then once all the orphaned sessions are closed, you will be able to connect again.
IETS#sw1
Translating "sw1"
Trying SW1 (172.69.1.1, 2002)... Open
SW1#
How about using “tcp-keepalives”
http://www.cisco.com/en/US/tech/tk801/tk36/technologies_tech_note09186a00801365f3.shtml
— jerzy CCIE grendpa #1337.
PS. What makes the 1337 the coolest # ? From your other post.
This is how I found your blog.
Good lack on your lab CCIE exam. I can still vividly remember mine.
OMW, I am honored.
You are 100% right, that would a better work around to connection problem, but there are still times when you need or want to kill all the active sessions on the fly :).
About your number, I suppose it is a bit geek but why I think your number is the coolest, 1337 is short for ELITE in Leetspeak, often used and synonymous in Internet communities with prestige and accreditation(ie non-NOOB).
Thanks & Regards ;)