To set the console password MADRID should access the console interface with the command line console 0:
Router # configure terminal
Router (config) # line console 0
Router (config-line) # login
Router (config-line) # password MADRID
To set the password PARIS for telnet is to access the telnet interface with the command line vty 0 4, which indicates that interface vty line, 0 the number of interface and four the maximum number of multiple connections from 0, May this case multiple connections are allowed:
Router (config) # line vty 0 4
Router (config-line) # login
Router (config-line) # password PARIS
To set the password MOSCOW must be accessed to assist the auxiliary interface with the command line aux 0:
Router (config) # line aux 0
Router (config-line) # login
Router (config-line) # password MOSCOW
In all cases the login command allows the router to ask the password when we connect to the router login command will ask what local user attempts to enter and their respective password. For this to work you must create user names and password with the command:
Router (config) # username CORE_SUR password Ansur
Router (config) # username CORE_NOR password Anort
In the example two users CORE_SUR with a password Ansur and CORE_NOR with a Anort password have been created.
Router # configure terminal
Router (config) # line console 0
Router (config-line) # login local
When the user tries to access the router CORE_NOR will be asked your user name and password, and then enable secret:
Press RETURN to get started.
You try to enter a protected system
User Access Verification
Username: CORE_NOR
:***** Password (password, Anort)
Router> enable
Password :***** (enable secret, cisco)
Router #
The command service password-encryption encrypted with a mild encryption passwords are not encrypted by default as the telnet, console, auxiliary etc.