In this article we will talk about Configure name and passwords on Cisco router, and in previous article we already discussed about Packet Tracer – Lab 6 : Basic router setup.
Talking about configuration, we normally begin by configuring the basic settings on our Cisco devices. Even as a network engineer, it is always a best practice to setup the networking devices with some simple configuration, which includes naming i.e. giving some recognizable names to our devices and then setting up the passwords to prevent any unauthorized access.
Configure name and passwords on Cisco router
In this lab, we will configure the hostname of a router. Also, we will set up the ‘Privileged Mode’ Password and ‘Secret’.
Once a password is set-up, users will be prompted to type-in that password whenever they enter the Privileged Exec Mode. And if both the ‘Enable Password’ and ‘Secret’ are configured, then the users will have to access the Privileged Mode with ‘Enable Secret’.
In this lab, we will also configure the Console line password and Auxiliary line password. In order to setup the Console line and Auxiliary line passwords we have to get under the line configuration mode of both lines.
We will also edit the hostname of our device. The device’s name will instantly change when we enter the command – ‘hostname device-name’ on the Command line Interface. And to check the configured password for the privileged mode you have to exit back to the User Exec mode by simply typing Exit while on the Privileged mode. Then, you will have to type the password every time you enter into the Privileged mode.
You can check the password by initiating a Console connection once again. However, Auxiliary line password cannot be simulated in the Packet Tracer.
Check the configuration below:
- Setting router name to R1
- Set privileged mode password to cisco
- Set privileged mode secret to cisco
- Set console line password to lab
- Set auxiliary line password to ciscolab
R1(config)#enable password cisco
R1(config)#enable secret cisco
R1(config)#line con 0
R1(config)#line aux 0