01-26-2005 04:49 PM - edited 03-02-2019 09:19 PM
This is the vty line that I want to get rid of:
line vty 5 14
exec-timeout 2 0
privilege level 15
login
I tried to remove the vty line by entering global configuration mode and typing:
3500XL01(config)# no line vty 5 14
The error I receive is:
% Can't delete last 16 VTY lines
What am I doing wrong?
Thanks, Dave
01-26-2005 08:33 PM
The 3500XL requires you to have at least 16 VTY lines. show line will give you a list of them. I presume you have a vty 0 4 section and a vty 15 section as well? By making the parameters of the vty 5 14 and vty 15 the same, you should at leats be able to combine the blocks. If you want to disable them, you could try no exec within the vty block.
Kevin Dorrell
Luxembourg
01-27-2005 01:58 AM
I'm afraid Kevin is right.
You could try a "last chance test":
Download the config to your TFTP server, delete the vty 5 15 section via a text editor and upolad the modified file as a startup config to your switch.
Reboot the switch and watch if the vty 5 15 appaers again with the default settings.
Regards,
Milan
01-27-2005 09:22 AM
Hi Kevin, Thanks very much. :+)
One question I have, how do you type the syntax for the "no exec" command, within the vty block?
Thanks, Dave
01-27-2005 02:59 PM
line vty 5 15
no exec
Kevin Dorrell
Luxembourg
01-27-2005 12:28 AM
Hi,
AFAIK, you will have to remove like "no line vty 0 15"
Why i feel this because, whenever you configure vty lines like : "line vty 0 15"
switch by defaults break this up into 2 pieces of "0 4" and "5 15". so I would suggest you to try this by deleting all the lines in 1 go and then reconfigure by breaking them into blocks, the way you want.
regards
aashish C
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