Introduction: Configure Password for Devices in Cisco Packet Tracer

About: Electronic Engineer, please visit our web site http://www.sparkgt.org

In this instructable you will learn how to set a password to layer 2 and layer 3 devices so that only the user can access them.

En este instructable se aprenderá a poder colocar una contraseña a los dispositivos de capa 2 y capa 3 para que solamente el usuario pueda acceder a ellos.

Step 1: Privileged Mode

In this step we will configure the user mode in a privileged mode. To do this we select our router and enter the CLI configuration by placing the following command:

Router>enable

En este paso configuraremos de modo usuario a modo privilegiado. Para ello seleccionaremos nuestro router y entramos a la configuración CLI colocando el siguiente comando:

Router>enable

Step 2: Global Configuration Mode

Now we configure from privileged mode to global mode, the commands to use are:

Router#configure terminal

Ahora configuramos del modo privilegiado al modo global, los comandos a utilizar son:
Router#configure terminal

Step 3: Set the Password

To configure the password it is essential to do so in global configuration mode, the commands that will be used are:

Router(config)#line vty 0 4

Router(config-line)#password instructables

Router(config-line)#login


Para configurar la contraseña es indispensable hacerlo en el modo de configuración global, los comandos que se utilizarán son:

Router(config)#line vty 0 4

Router(config-line)#password instructables

Router(config-line)#login

Step 4: Enable the Password

Now that the password has been set, it is essential to be able to enable it in the global configuration, the commands to use are:

Router(config-line)#exit

Router(config)#enable secret instructables


Ahora que ya se configuro la contraseña es indispensable poderla habilitar en la configuración global, los comandos a utilizar son:

Router(config-line)#exit

Router(config)#enable secret instructables

Step 5: Test Password

To do this we will try to enter each configuration mode, see that if we do not have the password we will not be able to access the global configuration mode and the privileged mode.

Para ello intentaremos ingresar a cada modo de configuración, veremos que si no tenemos la contraseña no podremos acceder al modo usuario y al modo privilegiado.

Step 6: Remote Console Cable Access

Now we will try to access the router via a laptop using a console cable and serial communication.

Ahora intentaremos ingresar por medio de una laptop al router usando un cable de consola y comunicación serial.

Step 7: Telnet Remote Access

As a last test we will give an IP address to a laptop and a physical interface of the router, we will try to log in from the laptop via telnet to the router. Now we will notice that at this time you will ask us for the password twice, once to enter the user mode and again to enter the privileged user.

The network address 192.168.255.0 /30 will be used for this purpose.

Como última prueba le daremos una dirección IP a una laptop y a una interfaz física del router, nosotros trataremos de ingresar desde la laptop por telnet hacia el router. Ahora notaremos que en este momento nos solicitara dos veces la contraseña, una vez para ingresar al modo usuario y otra vez para ingresar al usuario privilegiado.

Para ello se utilizará la dirección de red 192.168.255.0 /30

Step 8: Configure and Enable Password on a Switch

For demonstration purposes only, we will also configure the security password for the switch of our topology with the same commands we use for the router described in steps 3 and 4. Plus the safety test from step 6.

Solo como fines demostrativos, también configuraremos la contraseña de seguridad para el switch de nuestra topología con los mismos comandos que usamos para el router descritos en los pasos 3 y 4. Además de la prueba de seguridad del paso 6.

Teachers Contest 2017

Participated in the
Teachers Contest 2017