Line password authentication protects a Cisco IOS management line by requiring a password before a user reaches the CLI. For console access, configure the single console line with line con 0. section 5.1 section 5.1.1
Configure the console line in line configuration mode:
- Enter line con 0 to select the only console line. section 5.1
- Enter password cisco to configure the line password. section 5.1.1
- Enter login to require the password; without login, the configured password does not take effect. section 5.1.1
Console login sequence
After connection, IOS displays Password:. A correct password enters user EXEC mode, shown by the SW1> prompt. Use enable to reach privileged EXEC mode; protect that mode separately with enable secret. section 5.1.1
SW1(config)# line con 0 #1 SW1(config-line)# password cisco #2 SW1(config-line)# login #3 #1 Configures console line 0 #2 Configures the line password #3 Requires the line password to access the console line
Review the annotated Cisco IOS configuration sequence for selecting the console line, setting its password, and enforcing login. section 5.1.1
