Configure VTY and enable secret password

We will go to virtual terminal line to configure telnet access.

Switch(config)#line vty 0

Switch(config)#password nec

Switch(config)#login

line vty 0 will allow only allow one telnet access to this switch. To enable 3 telnet connections simultaneously, use line vty 0 2. Please note that login command will not work unless a password is set.

After this configuration, you will be able to telnet to Switch from PC0 using a command prompt.

PC0

C:\>telnet 1.1.1.2

Following is a screenshot.

Once you can telnet to Switch, issue enable command. You will notice that you can not enter Privileged Exec mode.

This means that you need to enable password. We once again move to our Switch CLI and enable the secret password.

Switch#configure terminal

Switch(config)#enable secret nec

After this command, now you can telnet to 1.1.1.2 and then issue enable command and then enter password to enter priviledged exec mode

So, we have setup telnet access and are now able to fully control Switch from any PC connected through LAN.


Last modified: Saturday, 25 April 2020, 11:31 AM