cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1392
Views
15
Helpful
5
Replies

Should Virtual lines start always in 0?

Mary Leon
Level 1
Level 1

Hello everyone,

 

I'm practicing in a 2960 with Packet Tracer. I wanted to test virtual lines access with ssh version 2.

I tried setting from 2 to 10 with 

#line vty 2 10 

and it doesn't work. I'm asked about password, but I never log in, even when I'm sure password is correct.

But if I try from 0 to 10 it does work.

#line vty 0 10

It's true all examples I read about start in 0. Is it mandatory or I'm missing something?

 

Thank you in advance.

2 Accepted Solutions

Accepted Solutions

Hello
On real hardware by default lines 0 4 are used by default, if you want telnet/ssh on to a specific vty line then you can enable that line and then append a rotary value to it and connect on that value,I very much doubt you can do this in PT.

Example:
line vty 10

transport input telnet
rotary 99

telnet x.x.x.x 3099


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

Hello
yes that is correct you can specify which vty line to use -rotary provides an example of that


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

5 Replies 5

Hello,

 

what exactly are you configuring the lines for ? For SSH/Telnet ? What are you trying to accomplish ?

I wanted to use the virtual lines to access via ssh.

 

 

Thank you again.

Hello
On real hardware by default lines 0 4 are used by default, if you want telnet/ssh on to a specific vty line then you can enable that line and then append a rotary value to it and connect on that value,I very much doubt you can do this in PT.

Example:
line vty 10

transport input telnet
rotary 99

telnet x.x.x.x 3099


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hello, Paul,

Thank you very much for your time.

 

I had to look up for that rotary command I never used before. So it seems it might be a limitation of Packet Tracer because in your experience with physical devices it is possible to configure access via ssh in virtual lines without starting the range in 0. Did I get it right?

 

Thank you again.

Hello
yes that is correct you can specify which vty line to use -rotary provides an example of that


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul