Asslamu`alaikum Wr.Wb.
I am now going to post about how to enable the password line vty 0 cisco router console. Configuration Procedure In this example, a password is configured for all 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. Notice that the prompt 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 ahri
router(config-line)#login
Exit configuration mode.
router(config-line)#end
router#
%SYS-5-CONFIG_I: Configured from console by console
Note: Do not save configuration changes to line con 0 until your ability to log in has been verified.
show running-config - displays the current configuration of the router.
router#show running-config
Building configuration...
...
!--- Lines omitted for brevity
!
line con 0
password ahri
login
line 1 8
line aux 0
line vty 0 4
!
end
To test the configuration, log off the console and log in again, using the configured password to access the router:
router#exit
router con0 is now available
Press RETURN to get started.
User Access Verification
Password:
!--- Password entered here is not displayed by the router
From the privileged EXEC (or "enable") prompt, enter configuration mode and then switch to line configuration mode using the following commands. Notice that the prompt 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 ahri
router(config-line)#login
Exit configuration mode.
router(config-line)#end
router#
%SYS-5-CONFIG_I: Configured from console by console
Note: Do not save configuration changes to line con 0 until your ability to log in has been verified.
show running-config - displays the current configuration of the router.
router#show running-config
Building configuration...
...
!--- Lines omitted for brevity
!
line con 0
password ahri
login
line 1 8
line aux 0
line vty 0 4
!
end
To test the configuration, log off the console and log in again, using the configured password to access the router:
router#exit
router con0 is now available
Press RETURN to get started.
User Access Verification
Password:
!--- Password entered here is not displayed by the router
router>
Note: Before performing this test, ensure that you have an alternate connection into the router, such as Telnet or dial-in, in case there is a problem logging back into the router.
Semoga bermanfaat.