The CLI groups all the commands in appropriate modes according to the nature of the command. A
sample of the CLI command modes are described below. Each of the command modes supports specific
software commands.
▫
User Exec Mode
▫
Privileged Exec Mode
▫
Global Config Mode
▫
Vlan Mode
▫
Interface Config Mode
▫
Line Config Mode
▫
Policy Map Mode
▫
Policy Class Mode
▫
Class Map Mode
The Command Mode table captures the command modes, the prompts visible in that mode and the exit
method from that mode.
Command Mode
User Exec Mode
Privileged Exec
Mode
VLAN Mode
Global Config Mode
Access Method
This is the first level of
access. Perform basic
tasks and list system
information.
From the User Exec
Mode, enter the enable
command.
From the Privileged
User Exec mode, enter
the vlan database
command.
From the Privileged
Exec mode, enter the
configure command.
7. MODE-BASED CLI
Prompt
(Switching) >
(Switching) #
(Switching) (Vlan) #
(Switching) (Config)#
Exit or Access
Next Mode
Enter Logout
command
To exit this mode,
enter exit or press
Ctrl-Z.
To exit to the
Privileged Exec
mode, enter the exit
command, or press
Ctrl-Z to switch to
user exec mode.
To exit to the
Privileged Exec
mode, enter the exit
command, or press
Ctrl-Z to switch to