How to enter or exit a command mode

This topic lists the commands and key combinations that move you into and out of each CLI command mode.

The following table describes how to enter or exit each mode.

Command Mode

Access Method

Exit or Access Previous Mode

User Exec

From the Privileged EXEC mode, enter exit.

To return to the Privileged EXEC mode, enter enable and leave the password blank.

Privileged EXEC

This is the default mode when you log in to the CLI.

If in User EXEC mode, enter enable and leave the password blank.

To exit to the User EXEC mode, enter exit.

Global Configuration

From the Privileged EXEC mode, enter configure.

To exit to the Privileged EXEC mode, enter exit, or press Ctrl-Z.

VLAN Configuration

From the Global Configuration mode, enter vlan with a VLAN ID.

To exit to the Global Configuration mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z.

Interface Configuration

From the Global Configuration mode, enter interface with an interface ID.

To exit to the Global Configuration mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z.

Interface Range Configuration

From the Global Configuration mode, enter interface range with an interface range ID.

To exit to the Global Configuration mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z.

Line Configuration

From the Global Configuration mode, enter line ssh.

To exit to the Global Configuration mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z.