- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2015 12:54 PM - edited 03-07-2019 11:28 PM
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.
Solved! Go to Solution.
- Labels:
-
Other Switching
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2015 11:43 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 02:34 PM
Well if you can't ping then you can't telnet.
You need to work out why you have no connectivity.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2015 01:16 PM
Have not used packet tracer, but try
line vty 0 15
or
line vty 0 4
and add the password and test again.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2015 01:20 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2015 01:27 PM
Just log out and log back in to the device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2015 01:39 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2015 01:50 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2015 10:47 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2015 01:06 PM
Thanks, I will try this when I get home.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 10:59 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 11:10 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 12:19 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 12:28 PM
What do you mean you opened a new terminal connection.
If you have a console connection just telnet from there.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 01:12 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 02:03 PM
Can you ping the other switch ?
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 02:23 PM
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.
