Solved

Telnet problem

Posted on 2007-03-22
8
530 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SBS2011 server reports duplicate IP 5 73
odd network issue connectiong/pinging 7 45
Only Assign IP's to approved computers 8 56
Not able to route between subnets 8 104
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…
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!
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now