Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Telnet problem

Posted on 2007-03-22
8
Medium Priority
?
537 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 2000 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

730 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