What does the command RouterA(config)#line cons 0 allow you to perform next?

2024

What does the command RouterA(config)#line cons 0 allow you to perform next?

  1. A.

    Set the Telnet password.

  2. B.

    Shut down the router.

  3. C.

    Set your console password.

  4. D.

    Disable console connections.

Show answer & explanation

Correct answer: C

Concept: Cisco IOS uses a mode-based CLI: from global configuration mode, the command "line <type> <number>" switches into a separate LINE CONFIGURATION sub-mode for that specific line (console, vty, or aux). Each line type is configured and secured independently — a setting applied under one line type (password, login, timeout) affects only that line, never another.

Application: "cons 0" is the standard IOS abbreviation for "console 0", the router's single physical console port. So RouterA(config)#line cons 0 moves the prompt to RouterA(config-line)#, the configuration sub-mode for that console port. From here, the standard next commands are password <password> followed by login — which is exactly how the console (local terminal) password gets defined and enforced.

Cross-check: Testing the other offered outcomes against the same rule shows none of them fit this sub-mode:

  • Telnet/remote-session access is secured separately, under the VTY lines (e.g. line vty 0 4) — a different line type, not the console line.

  • Halting or restarting the device is a separate top-level operation (e.g. reload); entering a line's configuration sub-mode never changes the device's power or running state.

  • This sub-mode lets you configure how the line behaves; it does not turn the port off or block connections to it.

So among the four offered outcomes, only setting the console password matches what "line cons 0" actually leads to.

Explore the full course: Accenture Preparation