cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
31751
Views
11
Helpful
6
Replies

Unable to access the switch via telnet

vinsanity02
Level 1
Level 1

Hi all,

I'm using Packet Tracer.

I can't remotely access the other two switches via telnet. I already have configured the default gateway on the switches.

I have 3 switches. I have a PC connected to the console port on Switch1 and I want to access (telnet) Switch2 and Switch3 but it's giving me an error msg:

OFFICE1>telnet 10.65.0.3

Trying 10.65.0.3 ...Open

[Connection to 10.65.0.3 closed by foreign host]
OFFICE1>

Switch1 = 10.65.0.5

Switch2 = 10.65.0.3

Switch3 = 10.65.0.4

Default Gateway = 10.65.0.1

What's wrong with this? Pls help...

1 Accepted Solution

Accepted Solutions

configure a password on the line vty and check if it works..

You can check with the following configuration:

switch(config)#line vty 0 15
switch(config-line)#password cisco
switch(config-line)#transport input telnet
switch(config-line)#login
switch(config-line)#exit

Hope this helps..

Regards,

ranraju

View solution in original post

6 Replies 6

vinsanity02
Level 1
Level 1

I can ping the switches.. it's fine.. but still can't access telnet.

configure a password on the line vty and check if it works..

You can check with the following configuration:

switch(config)#line vty 0 15
switch(config-line)#password cisco
switch(config-line)#transport input telnet
switch(config-line)#login
switch(config-line)#exit

Hope this helps..

Regards,

ranraju

thanks a lot buddy..

Hi mr. Ranraju,

 

I’m facing the same issue here as Vansanity02 as well. Input the necessary command on line vty as you’ve demonstrated, however I still get the same error message (connection closed by foreign host), without any other prompt. 

 

What could be be the reason?

 

I tried this solution but still the same issue 

Max Jobs
Level 1
Level 1

Thank you guys. To add to this section, I highly recommend you to read "Cisco Guide to Harden Cisco IOS Devices" article.

You can find it here: https://www.cisco.com/c/en/us/support/docs/ip/access-lists/13608-21.html