200-301 Question 418
Single answerYou are configuring a Cisco router and want to secure access to the privileged EXEC mode by setting a local password. After entering global configuration mode, which sequence of commands correctly achieves this goal?
- A
line console 0 → password cisco123 → login
- B
enable secret cisco123
- C
line vty 0 4 → password cisco123 → login
- D
username admin password cisco123
Show answer and explanation
Correct answer: B
Explanation
To secure access to privileged EXEC mode, the 'enable secret' command is used to configure an encrypted password. This ensures that users must provide the configured password when attempting to enter privileged EXEC mode. Other options, such as setting console or VTY passwords, do not achieve this specific goal.
- A. Incorrect.
This option sets a password for console access instead of securing privileged EXEC mode. It is not the correct choice for the given goal.
- B. Correct.
This option correctly configures a secure encrypted password for privileged EXEC mode using the 'enable secret' command.
- C. Incorrect.
This option sets a password for remote access via Telnet or SSH (VTY lines), not for privileged EXEC mode.
- D. Incorrect.
This option creates a local user account with a username and password, but it does not directly secure privileged EXEC mode.