[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 540
  • Last Modified:

Telnet problem

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
shiplu44
Asked:
shiplu44
  • 5
  • 3
1 Solution
 
RPPreacherCommented:
Please post the configuration of the router.
0
 
shiplu44Author Commented:
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
 
shiplu44Author Commented:
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
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
RPPreacherCommented:
You have no route from the router to the internet.  You need to add a default gateway.
0
 
shiplu44Author Commented:
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
 
shiplu44Author Commented:
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
 
RPPreacherCommented:
ip route 0.0.0.0 0.0.0.0 192.168.1.15
0
 
shiplu44Author Commented:
Ah MAGIC ....

Thanks a lotttttttttttttttttttttttttttttttttttttttttttttttttt
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now