how to shut vty 5 15

Answered Question
Feb 6th, 2008
User Badges:

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

Correct Answer by mohammedmahmoud about 9 years 5 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
User Badges:
  • Silver, 250 points or more

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
User Badges:
  • Green, 3000 points or more

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
User Badges:


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.



mahmoodmkl Wed, 02/06/2008 - 02:14
User Badges:
  • Gold, 750 points or more

HI


Can u try no line vty 4 15



Thanks

Mahmood

Correct Answer
mohammedmahmoud Wed, 02/06/2008 - 02:15
User Badges:
  • Green, 3000 points or more

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
User Badges:
  • Silver, 250 points or more

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

Goutam Sanyal Wed, 02/06/2008 - 02:09
User Badges:
  • Silver, 250 points or more

Hi Mohammed,


Thanks to rectify me :-)

abhishekm4u Wed, 02/06/2008 - 04:25
User Badges:

issue resovled by command no exec .


thanks mohd & gautam !!

Actions

This Discussion