Cisco IOS: Unable to delete line vty 5 15 on 6500 switch

Problem : Cisco IOS: Unable to delete line vty 5 15 on 6500 switch

My running config showing the following

line con 0
exec-timeout 15 0
line vty 0 4
no login
line vty 5 15
no login

I am trying to remove line vty 5 15. When I type ” no line vty 5 15″
I get the message ” Can’t delete last 16 VTY lines ”

I read somewhere that is may be hard coded. Can someone confirm this or can I delete this. If I must leave both vty ranges, do I need to set passwords to both for telnet sessions.

 

Solution : Cisco IOS: Unable to delete line vty 5 15 on 6500 switch

You can not delete the VTY lines but you can not allow access to them which you already have in place (no login).  You can simply allow access via only the first 5 lines if desired:

line vty 0 4
password
login

line vty 5 15
no login   <–does not allow access to these lines.