Ad space (banner)
📡Networking Lessons
Lesson 6 / 39

Moving Between Modes with exit and end

When you want to leave the current configuration level, use exit and end. exit steps back up one mode; end jumps straight back to privileged EXEC mode from anywhere.

Type exit or end on its own. When you are deep in something like interface configuration mode, which one you choose decides where you land.

Running end from interface configuration mode returns you directly to privileged EXEC mode (Switch#) without passing through configuration mode. exit instead moves you up just one level, back to configuration mode.

A common stumble is not knowing about end and typing exit repeatedly to climb out of a deep hierarchy. Pick the right tool for the situation.

In real work, the standard rhythm is to finish a block of configuration with end, return to privileged EXEC mode, and verify your changes with show commands.

Networking
Try it (type this into the pseudo terminal)
end

🧑‍💻 You can type this command into the Networking pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)