
6. MODE-BASED CLI
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
Access Method
Prompt
Exit or Access
Next Mode
User Exec Mode
This is the first level of
access. Perform basic
tasks and list system
information.
(Switching) >
Enter Logout
command
Privileged Exec
Mode
From the User Exec
Mode, enter the
enable
command.
(Switching) #
To exit this mode,
enter exit or press
Ctrl-Z.
VLAN Mode
From the Privileged
User Exec mode, enter
the
vlan database
command.
(Switching) (Vlan) #
To exit to the
Privileged Exec
mode, enter the exit
command, or press
Ctrl-Z to switch to
user exec mode.
Global Config Mode
From the Privileged
Exec mode, enter the
configure
command.
(Switching) (Config)#
To exit to the
Privileged Exec
mode, enter the exit
command, or press
Ctrl-Z to switch to