Ending a Telnet session from a router: After making changes during a Telnet session, which command properly closes the session and returns you to the local IOS prompt?

Difficulty: Easy

Correct Answer: exit

Explanation:


Introduction / Context:
Once remote administration is complete, the Telnet session should be ended cleanly. IOS provides several commands for line management, but only one is correct for gracefully terminating an active Telnet.



Given Data / Assumptions:

  • You are in user/privileged EXEC mode on a remote device accessed via Telnet.
  • You want to terminate the session and return to the original local router's prompt.


Concept / Approach:
The 'exit' command is used within the Telnet session to close the connection. This differs from 'disconnect' (used from the local router's session management prompt) and from 'close'/'disable' which are not valid IOS commands in this context.



Step-by-Step Solution:

While connected to the remote device, type 'exit' and press Enter.This closes the Telnet session and returns you to the previous router's EXEC prompt.If multiple sessions are active, you may instead use 'Ctrl+Shift+6, then X' to suspend and 'disconnect <line#>' at the local prompt.


Verification / Alternative check:
Prompt should change back to the local device's hostname. 'show sessions' should confirm the closed session is gone.



Why Other Options Are Wrong:
disconnect: Used at local IOS prompt after suspending sessions. close/disable: Not valid Telnet termination commands in IOS.



Common Pitfalls:
Typing 'quit' (works in some contexts) or forgetting to save changes before exiting, causing config loss.



Final Answer:
exit

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion