Configure a factory-default router with: console user EXEC password p4ssw0rd1, VTY (Telnet) user EXEC password s3cr3t2, and privileged EXEC password priv4t3p4ss. Which command sequence is correct?
Choose an answer
Tap an option to check your answer.
Correct answer: enable secret priv4t3p4ss ! line con 0 password p4ssw0rd1 login ! line vty 0 15 password s3cr3t2 login.
Why this is the answer
The correct sequence sets the privileged EXEC password, console password, and VTY password with the login keyword. The enable secret priv4t3p4ss command configures a strong, encrypted privileged EXEC password. For console access, line con 0 is used, followed by password p4ssw0rd1 to set the password and login to enforce its use. Similarly, line vty 0 15 configures all VTY lines (for Telnet/SSH), with password s3cr3t2 and login to require authentication. Omitting login for console or VTY lines would make the password ineffective. Using enable secret privilege 15 is incorrect syntax; enable secret is sufficient. The order of login and password keywords is also specific; password <value login is correct, not password login <value.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed