1. Configuration command line interface
This section describes methods to use the command line interface, you can manage the network
equipment by using the command line interface
1.1. Command mode
Device management interface is divided into a number of different models, the user the command
mode determines the commands that you can use.
Enter a question mark button at the command prompt (?) can list every command mode to support the
use of command. When a user and network equipment management interface, a new session is
connected, the user first in the user model (User EXEC model)
,
You can use the user mode command.
In user mode, can only use a small amount of commands, and command functions also have some
limitations, such as the show command. User mode command operating results will not be saved.
To use all of the commands, you must first enter privilege mode (Privileged EXEC).Usually, enter
privilege mode password must enter privilege mode. In privileged mode, the user can use all the
privileges of command, and can enter global configuration mode.
Use the configuration mode (global configuration mode, interface configuration mode) command, will
have an impact on the current running configuration. If the user to save the configuration information,
these commands will be preserved, and perform again at system restart. To enter configuration mode,
you must first enter global configuration mode. Starting from the global configuration mode, can enter
interface configuration mode and other configuration sub model.
The following table lists the command mode, how to access each mode, mode of prompt, how to leave
mode. The assumption here network device name for the default "Switch
”
Command mode.
:
Command
mode
Access method
Prompt
To leave or access
mode
About the model
User
EXEC(user
mode)
First entered
the access
network
equipment.
Switch>
Enter the exit
command to leave
the mode.
To enter privilege
mode, enter the
enable command.
To carry out the
test, this model is
used to display
system
information
Privileged
EXEC(privile
ged mode)
In user mode,
use the enable
command to
enter this
mode.
Switch#
To return to user
mode, enter the
disable command.
To verify the
results of using
the set command
mode. This mode
is protected with a
password.