In the Cisco router product, we usually need to use restricted access for general users when we initially configure. This is very important for routers, by default, our router is an open system, access control options are turned off, any user can log on to the device for further attack, so we need our network administrator to configure the password to restrict unauthorized users through direct connections, Console terminals and access devices from the Dial-up modem line. Here's a detailed description of how to configure the router's password on the Cisco router product.
Configure passwords and keys to enter privileged mode:
These two passwords are used to restrict unauthorized user access to privileged mode. Because privileged passwords are unencrypted, we generally recommend that users use privileged keys, and that privileged passwords are valid only if the privileged key is not in use.
1. Router (config) #enable password Cisco
Command explanation: Open Privileged password protection.
2. Router (config) #enable secret Cisco
Command explanation: Open Privileged key protection.
Configure the user password for the control port
1, Router (config) #line console 0
Command explanation: Enter the control line configuration mode.
2, Router (config-line) #login
Command explanation: Open Login password protection
3, Router (config-line) #password Cisco
Command explanation: Set the password to Cisco, where the password is case-sensitive.
Configure the user password for the secondary port (AUX):
1, Router (config) #line aux 0
Command interpretation: Enter secondary port configuration mode.
2, Router (config-line) #login
Command explanation: Open Login password protection
3, Router (config-line) #password Cisco
Command explanation: Set the password to Cisco, where the password is case-sensitive.
Configure vty (telnet) login access password:
1, Router (config) #line vty 0 4
Command explanation: Enter vty configuration mode.
2, Router (config-line) #login
Command explanation: Open Login password protection
3, Router (config-line) #password Cisco
Command explanation: Set the password to Cisco, where the password is case-sensitive.