cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5397
Views
0
Helpful
3
Replies

how many vty lines are there?

rjackson
Level 5
Level 5

I have a scenario that requires I set login and password protection on telnet access. Typically I go to line vty 0 4 and set login and a password. On 2500s I use 0 4 but I'd seen more lines on other routers. So I tried higher numbers and the 2500 let me put in line vty 0 197. In the conf gi display it separates the 0 4 and 5 197 vty lines but they all show.

How many vty lines are there that need to be protected? Did I created additonal ones above the default when I used 0 197?

3 Replies 3

thisisshanky
Level 11
Level 11

I think, the total number is actually dependent on the hardware you are using. By default all routers have 5 vty lines (factory defaults). Unless you configure the remaining available lines, there is no need for them to be protected. You created additional lines, when you specified the number 0 197. Hence you will need to protect those lines, ones they are created. They can also be removed using the command "no line vty".

Router groups 0 to 4 and 5 through 197 separately.

If you take a 1700 router, the total number of lines you can configure is upto 15. So the number of lines, varies for diff hardware platforms.

HTH

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus

Thanks for the response.

It seems like there is a mix out there. I was able to delete all but vty 0 4 on a 2500 running 12.2. On a 2612 it only had 0 4 but on a 2620 it had 0 15 and would not let me delete any of them.

I guess you just need to check how many lines there are before you set the login and password so you get them all and dont create any extras.

Thanks again

That sounds strange, I just checked on a 2610, and it did have 15 lines, default was 5. I created 10 more lines using command (line vty 0 15). It created two groups, 0 through 4 in one group and 5 through 15 in another group (listed separately on the configs).

When I gave a "no line vty 5 15", it removed all of them.

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus