How to Set and Remove line VTY / Telnet Password on Cisco Router (Packet Tracer)

VTY is short for Virtual Terminal lines and are used for accessing the router remotely by telnet through router interfaces. The number of vty lines is not consistent in all routers, but different router models have different number of ports.

Checking the number of VTY lines:

When you are at global configuration mode type line vty ?  this command will display the number of lines or interfaces your router has.

UpaaeRouter1(congif)# line vty ?   this command will display the number of vty lines.

Setting line VTY / TELNET Password:

For setting a password for VTY lines you should be at the global configuration mode. As we have 16 interfaces/lines ranging from 0-15 and we will specify a single password for all these, in order to secure our router. 16 interfaces/lines means that we can have 16 simultaneous telnet (remote) connections to this router.

When at global configuration mode  type line vty 0 15  for entering vty line configuration mode.

Command syntax:  line vty starting-interface  ending-interface-range

UpaaeRouter1(config)# line vty 0 15

UpaaeRouter1(line-config)#     // After executing the above command prompt will change to this.

UpaaeRouter1(line-config)# password upaaeVty   //this command will set upaaeVty as your VTY Password.

UpaaeRouter1(line-config)#login    // this commands enforce the password before accessing router through TELNET (remote connection).

vty pass 2

How to remove line vty password:

In cisco removing or undoing a settings is very easy, just type no before the command which you used for making changes. For removing vty line password go to the global configuration mode than to line configuration mode and than type no password.

UpaaeRouter1# configure terminal

UpaaeRouter1(config)# line vty 0 15

UpaaeRouter1(line-config)# no password

vty pass 3

When you press enter the line vty password will be disabled.




Leave a Reply

Your email address will not be published. Required fields are marked *


1488 Views