Solved

Telnet problem

Posted on 2007-03-22
8
528 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: rfc1180
The Maximum Segment size (MSS) is an important consideration when troubleshooting connectivity via the Internet/Intranet. As the packets are routed via the Internet/Intranet, the packets must traverse through multiple routers in the path between two…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 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

24 Experts available now in Live!

Get 1:1 Help Now