Console Port Password on Cisco Router / Switch Configuration

Configuration Procedure: In this example, a password is configured for users attempting to use the console.

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

Configure the password, and enable password checking at login.

router(config-line)#password techpass0
Exit configuration mode.
%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 form of securing the console port as the password assigned here will be displayed in plain text and can be viewed from the running configuration etc.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s