Configuration Guide Configuring CLI
1.3.2 Command Modes
Due to the large number of commands, these commands are classified by function to facilitate the use of commands. The
CLI provides several commands modes, and all commands are registered in one or several command modes. You must first
enter the command mode of a command before using this command. Different command modes are related with each other
while distinguished from each other.
As soon as a new session is set up with the network device management interface, you enter User EXEC mode. In this mode,
you can use only a small number of commands and the command functions are limited, such as the show commands.
Execution results of commands in User EXEC mode are not saved.
To use more commands, you must first enter Privileged EXEC mode. Generally, you must enter a password to enter
Privileged EXEC mode. In Privileged EXEC mode, you can use all commands registered in this command mode, and further
enter global configuration mode.
Using commands of a certain configuration mode (such as global configuration mode and interface configuration mode) will
affect configuration in use. If you save the configuration, these commands will be saved and executed next time the system is
restarted. You must enter global configuration mode before entering another configuration mode, such as interface
configuration mode.
The following table summarizes the command modes by assuming that the name of the network device is “Ruijie”.
Exit or Entering Another
Mode
User EXEC
(User EXEC mode)
Enter User EXEC
mode by default
when accessing a
network device.
Run the exit command to
exit User EXEC mode.
Run the enable command
to enter Privileged EXEC
mode.
Use this command
mode to conduct basic
tests or display system
information.
Privileged EXEC
(Privileged EXEC
mode)
In User EXEC
mode, run the
enable command to
enter Privileged
EXEC mode.
Run the disable command
to return to User EXEC
mode.
Run the configure
command to enter global
configuration mode.
Use this command
mode to check whether
the configuration takes
effect. This mode is
password protected.