To exit any configuration mode or close an active terminal session and terminate the EXEC, use the exit command at the system prompt.
exitSyntax Description
This command has no arguments or keywords.
Command Mode
Available in all command modes.
Usage Guidelines
This command first appeared in Cisco IOS Release 10.0.
Use the exit command at the EXEC levels to exit the EXEC mode. Use the exit command at the configuration level to return to privileged EXEC mode. Use the exit command in interface, line, router, IPX-router, and route-map command modes to return to global configuration mode. Use the exit command in subinterface configuration mode to return to interface configuration mode. You also can press Ctrl-Z, or use the end command, from any configuration mode to return to privileged EXEC mode.
Note: The exit command is associated with privilege level 0. If you configure AAA authorization for a privilege level greater than 0, this command will not be included in the command set for that privilege level.Examples
In the following example, the user exits subinterface configuration mode to return to interface configuration mode:
Router(config-subif)# exit
Router(config-if)#
The following example shows how to exit an active session.
Router> exit