You can ensure the security of a router and its network by setting up a password, so that only trusted users get connected to your router’s network. Set the password on a Cisco router by following the how to setup a password on Cisco router steps that are given below.
Launch the Cisco Packet Tracer window to set a password to the router.
Open the router window by dragging the router into the Cisco Packet Tracer. Then, navigate to the CLI tab.
Alternatively, you can make use of an application like PuTTY on the computer connected to the Cisco router.
Launch the PuTTY application and click the Session tab in the left panel.
Now, in the right side window, under the Connection Type, select the Serial radio button.
In the Serial Port text box above, specify the correct COM port. You can find this from the Device Manager window on your computer.
Now, click the Open button and when the interface window opens, press enter.
When prompted for the username, enter the default username ‘cisco,’ and when prompter for the password, enter cisco,which is the default password.
When prompted for confirmation to proceed with configuration, type n.
When the Router prompt appears, enter “enable” and press Enter.
When the interface changes to Router#, type “conf t” and this will allow you to configure your Cisco router.
On following how to setup a password on Cisco router steps, Type the following configuration commands one by one on each line. Make sure to press the Enter at the end of each command.
line console 0
Now, press Enter and again type “exit” until you exit the router.
You will be directed into the User Access Verification section.
Press enter and type “en” to change the existing mode.
Enter “conf t” and type the following command one by one per line.
enable secret cisco123 (You can enter your preferred password in the cisco123 section). This is the password that will be needed to access the enable mode.