cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
86958
Views
11
Helpful
28
Replies

problem setting vty password in packet tracer

Clay Plaga
Level 3
Level 3

I'm trying to configure a vty password in packet tracer and I think I'm doing something wrong. These are the commands I'm using:

line vty 0

password test

end

When I do showrun I can see the command, but when I try to get access to the vty line, it never ask's me for the password. What am I doing wrong.

Screen shot included. Thanks.

 

 

2 Accepted Solutions

Accepted Solutions

Hi,

 

You can check using below steps,

1. Connect two switches

2. Configure IP address in Vlan 1 interface on any one switch

3. Configure enable password

4. Configure line vty on same switch

Then telnet configured ip from another switch.

Example,

Step 2:

Switch1(config)#int vlan1
Switch1(config-if)#ip address 10.0.0.1 255.0.0.0
Switch1(config-if)#no shut

Step 3:

Switch1(config)#enable password cisco

Step 4:

Switch1(config)#line vty 0 4
Switch1(config-line)#password cisco
Switch1(config-line)#login

To check:

Switch2#telnet 10.0.0.1

View solution in original post

Well if you can't ping then you can't telnet.

You need to work out why you have no connectivity.

Jon

View solution in original post

28 Replies 28

Reza Sharifi
Hall of Fame
Hall of Fame

Have not used packet tracer, but try

line vty 0 15

or

line vty 0 4

and add the password and test again.

HTH

Thanks for the help. I will try but I have question. After I configure the line vty o, what is the command to test it to see if it will ask me for the password?

Just log out and log back in to the device.

 

I did log out, then I logged back in. what is the command I need to use to try and access the vty 0 4 lines?

There is no specific command. You just open a session to the device via putty, secure CRT, etc.. and that session will use one of the vty lines.

HTH

You can check using below steps,

1. Connect two switches

2. Configure IP address in Vlan 1 interface on any one switch

3. Configure enable password

4. Configure line vty on same switch

Then telnet configured ip from another switch.

Example,

Step 2:

Switch1(config)#int vlan1
Switch1(config-if)#ip address 10.0.0.1 255.0.0.0
Switch1(config-if)#no shut

Step 3:

Switch1(config)#enable password cisco

Step 4:

Switch1(config)#line vty 0 4
Switch1(config-line)#password cisco
Switch1(config-line)#login

To check:

Switch2#telnet 10.0.0.1

 

Thanks, I will try this when I get home.

Thank you for the information. I completed all the steps in your instructions except the last one:

Switch2#telnet 10.0.0.1

 

I don't know how to telnet into the sw2. How do I do this without using putty. Can you please show me how to do this? Thank You.

 

 

I hope you wanted to understand how line vty is working.

If yes, then login switch2 via console and telnet switch1 using ip which is configured for Vlan1 in the switch1.

I have followed your instructions. Sw01 is on vlan 1, ip address 10.0.0.1 subnet mask 255.0.0.0. Sw02 is on vlan 1, ip address 10.0.0.2 subnet mask 255.0.0.0. I have a console connection to sw02. Then I open a new terminal connection and I use enable command. Then I type, telnet 10.0.01, then it says connection timed out; remote host not responding.

What do you mean you  opened a new terminal connection.

If you have a console connection just telnet from there.

Jon

I'm doing this in packet tracer. I have a laptop with a console cable connected to sw02. On the laptop, I click on desktop, terminal, then I log on to the switch. Then after enable, I type:

telnet 10.0.0.1

 

Can you ping the other switch ?

Jon

No, I cannot ping sw01 10.0.0.1 or sw02 10.0.0.2. I'm pinging from the pc which is connected via console cable into sw02.

I found this video on youtube:

https://www.youtube.com/watch?v=6jTArL-qvIY

At first it did not work, but then I used these commands and it worked:

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

Then I used the same commands on the both sw01 & sw02, but it still does not work.

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card