A technician configures initial administrative security on a newly racked Cisco IOS XE switch using the following CLI commands:
text
username netadmin secret C1sco!Pass2026
line console 0
password C1sco!Pass2026
login
During validation, the technician observes that connecting via the serial console prompts only for a password, allowing login without entering the username `netadmin` stored in the local database.
Which command must be executed under `line console 0` to require authentication against the local user database?
- login localAnswer
- Bservice password-encryption
- Ctransport input ssh
- Denable secret C1sco!Pass2026
Answer
The 'login local' command must be executed under line console 0 to force the switch to prompt for both a username and password defined in the local user database.
The 'login local' command configures line console 0 to authenticate access using credentials defined in the device's local database (created via 'username' commands). This causes the device to display both 'Username:' and 'Password:' prompts during login.
Step-by-Step Solution
Key Concept
Cisco IOS Line Authentication Modes and Local Database Integration
Estimated Time:1m 0s