Procedure to configure a console port password on Cisco Router. In this example, a password is configured for users attempting to use the console.
For related guides on Cisco, see: How to configure a username and secret on Cisco Switch and Router, How to wipe configuration off an interface on a Cisco router and How to Reset a Cisco 3650 Catalyst Switch.
From the privileged EXEC or “enable” prompt, enter configuration mode and then switch to line configuration mode using the following commands as shown below.
Note: The prompts changes to reflect the current mode.
router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. router(config)#line con 0 router(config-line)#
Configure the password, and enable password checking at login.
router(config-line)#password techpass0 router(config-line)#login Exit configuration mode. router(config-line)#end router# %SYS-5-CONFIG_I: Configured from the console by console Note: Do not save configuration changes to line con 0 until your ability to log in has been verified.
Note: This is actually not the best way to secure the console port. This is because the password assigned here will show up in plain text. And also, you can view the password from the running configuration etc.
I hope you found this blog post on How to configure a console port password on Cisco Router helpful. If you have any questions, please let me know in the comment section.