how to shut vty 5 15

Answered Question
Feb 6th, 2008

how we can shutdown the vty 5 to 15 on a router or L3 switch. any command ??

I have this problem too.
0 votes
Correct Answer by mohammedmahmoud about 8 years 9 months ago

Hi,

For some platforms (for example the 3560 switches) you can't remove any of the 16 VTYs (0-15), as a work around you can disable these lines via "no exec".

BR,

Mohammed Mahmoud.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (2 ratings)
Loading.
Goutam Sanyal Wed, 02/06/2008 - 01:55

Hi Abhi,

The basic is use "no" to decline any command to a Cisco router.

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#line 5 15

No physical hardware support for line 5

Router(config)#no login

Thanks & Regards

Goutam

Pls rate if it works

mohammedmahmoud Wed, 02/06/2008 - 01:57

Hi,

Kindly use "no line vty 5 15".

[edit] Goutam, the login command is used to enable password checking, using "no login" tells the router not to enable password checking on this line and to grant anyone access on this line without a password check.

BR,

Mohammed Mahmoud.

abhishekm4u Wed, 02/06/2008 - 02:08

hi ,

both commands not working

no line vty 5 15 shows below error and no login shows incomplete command.

kindly guide !

Enter configuration commands, one per line. End with CNTL/Z.

RJ-JPR-GUM-R1-64-6(config)#no line

RJ-JPR-GUM-R1-64-6(config)#no line vt

RJ-JPR-GUM-R1-64-6(config)#no line vty 5 15

% Can't delete last 16 VTY lines

RJ-JPR-GUM-R1-64-6(config)#line vt

RJ-JPR-GUM-R1-64-6(config)#line vty 5 15

RJ-JPR-GUM-R1-64(config-line)#no lo

RJ-JPR-GUM-R1-64(config-line)#no logi

RJ-JPR-GUM-R1-64(config-line)#no login

% Incomplete command.

Correct Answer
mohammedmahmoud Wed, 02/06/2008 - 02:15

Hi,

For some platforms (for example the 3560 switches) you can't remove any of the 16 VTYs (0-15), as a work around you can disable these lines via "no exec".

BR,

Mohammed Mahmoud.

Goutam Sanyal Wed, 02/06/2008 - 02:15

Hi,

Router# conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#no line vty 5 15

Router(config)#

Its work and no need to put the command "no login"

With ur out-put is showing that 1s u disable the line & after u enableing it again.

Router(config)#no line vty 5 ?

<6-15> Last Line number

Goutam

pls rate if it works

Actions

This Discussion