04-21-2009 11:02 PM - edited 03-06-2019 05:18 AM
Gentlemen,
Can anybody explain me why Cisco Routers/Switches
have theirs vty lines splitted into 2 (two) groups: 0-4 & 5-14 ?
{
line vty 0 4
privilege level X
transport input all
!
line vty 5 14
privilege level X
transport input all
}
Thank you.
04-22-2009 12:38 AM
Hi
I think the earlier IOS versions were capable of providing 5 vty lines and as the enchanments took place they increased the vty connections and diving the vty connections gives u flexibility to control the access for the device.
Thanks
Mahmood
04-22-2009 01:32 AM
Hi Mahmood,
Flexibility is not the reason because you can split up the lines as you want.
Eg:
line vty 0
login local
transport input ssh
line vty 1
login local
transport input telnet
It's true that earlier IOS versions supports only up to 5 lines.
But I'm curious what's the reason for splitting the lines up into 0 4 and 5 14, even if the configuration is the same
maybe to differentiate between default and optional?
04-22-2009 05:01 AM
Davy makes a good point that if you configure vty lines differently they will show up separately in the config. The original post asks a slighly different question: even when the configs are the same and you would think that they would show up as one group the config still separates vty 0 4 from any others that are defined. It is my understanding that this reflects the fact that the parser still regards the original 0 to 4 as the default (which can not be removed from the config) and any others as added.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide