Solved

Telnet problem

Posted on 2007-03-22
8
532 Views
Last Modified: 2008-02-01
Hi,

I have a CISCO router and a Cable TV Box at HOME where they both has telnet enabled. Now I have enabled telnet with vty password into both devices. From my HOME network I can telnet into both devices and connect fine. But when I try to telnet to the devices from my WORK or outside of my HOME I can only connect to the Cable TV Box via telnet but cannot connect to the Cisco Router. Note I am using port forwarding in my ADSL router and only one device I can forward port 23 at a time. I have private static IPs for both Devices. When I forward to Cable TV Box I can connect but when I forward to the CISCO Router I can't connect.

I get this error: Could not open connection to the host, on port 23: Connect failed

Any suggestion? Please help.

Many Thanks
0
Comment
Question by:shiplu44
  • 5
  • 3
8 Comments
 
LVL 20

Expert Comment

by:RPPreacher
ID: 18770358
Please post the configuration of the router.
0
 

Author Comment

by:shiplu44
ID: 18771122
2509-RJ#show run
Building configuration...

Current configuration : 2658 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service udp-small-servers
service tcp-small-servers
!
hostname 2509-RJ
!
enable secret 5 ***********
!
ip subnet-zero
no ip domain-lookup
ip host c1 2001 10.1.0.1
ip host c2 2002 10.1.0.1
ip host c3 2003 10.1.0.1
ip host c4 2004 10.1.0.1
ip host c5 2005 10.1.0.1
ip host c6 2006 10.1.0.1
ip host c7 2007 10.1.0.1
ip host c8 2008 10.1.0.1
!
!
!
!
interface Loopback0
 ip address 10.1.0.1 255.255.255.255
!
interface Ethernet0
 ip address 192.168.1.15 255.255.255.0
 no ip route-cache
 no ip mroute-cache
!
interface Serial0
 no ip address
 no ip route-cache
 no ip mroute-cache
 shutdown
!
ip classless
no ip http server
ip pim bidir-enable
!
!
menu cserver title ^C
To clear the connection cl+# (ie:cl1)
Exit back out to the menu "CTRL+SHIFT+6" then "X"
--------------------------------------------------------
1 - Connect to console1 - Switch 2960
2 - Connect to console2 - Router 2801
3 - Connect to console3 - Router 2600 (1)
4 - Connect to console4 - Router 2600 (2)
--------------------------------------------------------
show-show lines | menuexit-exit menu | Exit-logout | ^C
menu cserver prompt ^C
Please enter command or selection:^C
menu cserver command 1 tn c1
menu cserver command 2 tn c2
menu cserver command 3 tn c3
menu cserver command 4 tn c4
menu cserver command 5 tn c5
menu cserver command 6 tn c6
menu cserver command 7 tn c7
menu cserver command 8 tn c8
menu cserver command cl1 cl1
menu cserver command cl2 cl2
menu cserver command cl3 cl3
menu cserver command cl4 cl4
menu cserver command cl5 cl5
menu cserver command cl6 cl6
menu cserver command cl7 cl7
menu cserver command cl8 cl8
menu cserver command menuexit menu-exit
menu cserver command exit exit
menu cserver command show show line tty 1 8
menu cserver options show pause
menu cserver clear-screen
menu cserver single-space
!
alias exec cl1 clear line 1
alias exec cl2 clear line 2
alias exec cl3 clear line 3
alias exec cl4 clear line 4
alias exec cl5 clear line 5
alias exec cl6 clear line 6
alias exec cl7 clear line 7
alias exec cl8 clear line 8
alias exec tn telnet
privilege exec level 0 clear line
privilege exec level 1 clear
!
line con 0
 exec-timeout 0 0
 password ******
 logging synchronous
 autocommand  menu cserver
line 1 8
 exec-timeout 0 0
 autocommand  menu cserver
 no exec
 transport input all
 telnet break-on-ip
 telnet sync-on-break
 telnet ip-on-break
 flowcontrol hardware
line aux 0
 transport input all
line vty 0 4
 exec-timeout 0 0
 password *******
 logging synchronous
 login
 autocommand  menu cserver
!
end
0
 

Author Comment

by:shiplu44
ID: 18771133
Hi

The config is above. I think the telnet in router is not suing port 23.

When I try C:\telnet 192.168.1.15:23 it doesn't work
But C:\telnet 192.168.1.15 works

Do you know what is the default telnet port for CISCO 2509-RJ routers?

Thanks
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 20

Expert Comment

by:RPPreacher
ID: 18771202
You have no route from the router to the internet.  You need to add a default gateway.
0
 

Author Comment

by:shiplu44
ID: 18771561
Adding default gateway don't resolve this issue.

Please see below it is the port issue. Do you know what port it is using here for telnet to router? Default telnet port 23 don't work

C:\telnet 192.168.1.15 ---- works

C:\telnet 192.168.1.15:23 ---- doesn't work
0
 

Author Comment

by:shiplu44
ID: 18771744
Maybe I am not doing it right .... I am adding a default gateway by using command

Router(config)#ip default-gateway 192.168.1.15

Do I need to enable any routing protocol?
0
 
LVL 20

Accepted Solution

by:
RPPreacher earned 500 total points
ID: 18771758
ip route 0.0.0.0 0.0.0.0 192.168.1.15
0
 

Author Comment

by:shiplu44
ID: 18772071
Ah MAGIC ....

Thanks a lotttttttttttttttttttttttttttttttttttttttttttttttttt
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question