cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8064
Views
20
Helpful
2
Replies

How to clear unwanted vty line in config

Kevin Melton
Level 2
Level 2

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

2 Replies 2

jcoke
Level 3
Level 3

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

Kevin Dorrell
Level 10
Level 10

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

Review Cisco Networking products for a $25 gift card