cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11631
Views
0
Helpful
5
Replies

Error: % Can't delete last 16 VTY lines

niatross
Level 1
Level 1

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

5 Replies 5

Kevin Dorrell
Level 10
Level 10

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

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

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

line vty 5 15

no exec

Kevin Dorrell

Luxembourg

aashish.c
Level 4
Level 4

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