Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

How to clear unwanted vty line in config

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


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...



Re: How to clear unwanted vty line in config

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


I just remembered that Ivan Pepelnjak wrote a blog post on the exact issue:

Re: How to clear unwanted vty line in config

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


CreatePlease login to create content