04-29-2008 06:54 AM - edited 03-05-2019 10:41 PM
For some reason, one of my customers switches has an awkward vty line configuration that I have not before seen.
Here is the config on the switch:
line con 0
line vty 0 3
transport input none
line vty 4
password xxx
transport input ssh
line vty 5 15
password xxx
transport input ssh
I am not certain why the "line vty 0 3" is configured. I just want to delete it.
I have been entering the following and getting the following error:
bhisc3# conf t
Enter configuration commands, one per line. End with CNTL/Z.
bhisc3(config)#no line vty 0 3
% Can't delete last 16 VTY lines
bhisc3(config)#
Can anyone advise me of how to configure this to remove the line vty 0 3 from the config?? It should be part of the inherent line vty 0 4 group anyhow...
Thanks
04-29-2008 07:28 AM
Make the configs for those 2 vty groups look the same and they'll get merged together. So add:
line vty 0 3
password xxx
transport input ssh
Edit:
I just remembered that Ivan Pepelnjak wrote a blog post on the exact issue:
http://blog.ioshints.info/2008/02/merging-vty-configurations.html
04-29-2008 07:31 AM
The only way you will get rid of it is to make sure that VTY 0 to 4 have identical configs. At the moment, they are different. Try:
line vty 0 4
 password xxx
 transport input ssh
Kevin Dorrell
Luxembourg
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