Académique Documents
Professionnel Documents
Culture Documents
Table of Contents
Table of Contents
Chapter 1 CLI Configuration ........................................................................................................ 1-1
1.1 Introduction to the CLI ....................................................................................................... 1-1
1.2 Command Level/Command View ...................................................................................... 1-1
1.2.1 Switching between User Levels .............................................................................. 1-2
1.2.2 Configuring a Level for a Specific Command in a Specific View ............................ 1-3
1.2.3 CLI Views ................................................................................................................ 1-3
1.3 CLI Features ...................................................................................................................... 1-9
1.3.1 Online Help.............................................................................................................. 1-9
1.3.2 Terminal Display.................................................................................................... 1-10
1.3.3 History Commands................................................................................................ 1-11
1.3.4 Error Messages ..................................................................................................... 1-11
1.3.5 Command Edit....................................................................................................... 1-12
You can gain online help at any time by entering a question mark "?".
You can execute a command by entering part of the command in the CLI as long
as the keywords you enter do not conflict those of other commands.
Visit level: Commands at this level are mainly used to diagnose network and
switch the language mode on the user interface, and they cannot be saved in
configuration files. Such commands include ping, tracert, and language-mode.
Monitor level: Commands at this level are mainly used to maintain the system and
diagnose service faults, and they cannot be saved in configuration files. Such
commands include display and debugging.
System level: Commands at this level are mainly used to configure services.
Commands concerning routing and network layers are at this level. These
commands can be used to provide network services directly.
Manage level: Commands at this level are associated with the basic operation
modules and support modules of the system. These commands provide supports
for
services.
Commands
concerning
file
system,
FTP/TFTP/XModem
Command
system-view
Description
Optional
A password is necessary
only
when
a
user
switches from a lower
user level to a higher user
level.
Command
Description
Required
Execute this command in
user view.
super [ level ]
" Note:
!
For the purpose of security, you cannot see the password you enter on the screen.
You will remain at the original user level if you fail to enter the correct password after
you have tried more than three times.
Command
system-view
Description
Required
It is forbidden to change
the command level at
will. Doing so may bring
inconvenience
to
maintenance
and
operation.
User view
System view
VLAN view
Cluster view
PIM view
RIP view
OSPF view
HWPing view
HWTACACS view
MSDP view
Table 1-4 lists operations you can perform in these CLI views and details about
commands used to enter these CLI views.
Table 1-4 Operations in CLI views
View
Available
operation
User view
Display
operation
status
and
statistical
information
System
view
Configure
system
parameters
Prompt
Enter method
Quit method
<Quidway>
[Quidway]
Execute
the
system-view
command
in
user view.
View
Available
operation
Prompt
Enter method
Quit method
100M Ethernet
interface view
[Quidway-E
thernet1/0/1
]
Ethernet
interface
view
Configure
Ethernet
interface
parameters
Gigabit
Ethernet
interface view
[Quidway-G
igabitEthern
et1/1/1]
VLAN
view
Configure
VLAN
parameters
VLAN
interface
view
Configure IP
interface
parameters
for
VLANs
and
aggregated
VLANs
Loopback
interface
view
Configure
loopback
interface
parameters
Local user
view
Configure
local
user
parameters
User
interface
view
Configure
user
interface
parameters
Execute
the
interface
ethernet 1/0/1
command
in
system view.
Execute
the
interface
gigabitetherne
t
1/1/1
command
in
system view.
[Quidway-vl
an1]
Execute
the
vlan
1
command
in
system view.
[Quidway-Vl
an-interface
1]
Execute
the
interface
vlan-interface
1 command in
system view.
[Quidway-L
oopBack0]
Execute
the
interface
loopback
0
command
in
system view
[Quidway-lu
ser-user1]
Execute
the
local-user
user1
command
in
system view.
[Quidway-ui
0]
Execute
the
user-interface
0 command in
system view.
View
Available
operation
FTP client
view
Configure
FTP
client
parameters
SFTP
client view
Configure
SFTP client
parameters
MST
region
view
Configure
MST region
parameters
Cluster
view
Configure
cluster
parameters
Public key
view
Configure
RSA public
keys for SSH
users
Public key
code view
Edit
RSA
public key for
SSH users
DHCP
address
pool view
Configure
DHCP
address pool
parameters
PIM view
Configure
PIM
parameters
Prompt
Enter method
Quit method
[ftp]
sftp-client>
Execute
the
sftp 10.1.1.1
command
in
system view.
[Quidway-m
st-region]
Execute
the
stp
region-config
uration
command
in
system view.
[Quidway-cl
uster]
Execute
the
cluster
command
in
system view.
[Quidway-rs
a-public-key
]
Execute
the
rsa
peer-public-ke
y
a003
command
in
system view.
Execute
the
peer-public-key
end command to
return to system
view.
[Quidway-rs
a-key-code]
Execute
the
public-key-co
de
begin
command
in
public key code
view
Execute
the
public-key-code
end command to
return to public key
view
[Quidway-d
hcp-pool-a1
23]
Execute
the
dhcp
server
ip-pool a123
command
in
system view
[Quidway-pi
m]
Execute
the
pim command
in system view
View
RIP view
OSPF
view
OSPF
area view
Available
operation
Configure
RIP
parameters
Configure
OSPF
protocol
parameters
Configure
OSPF area
parameters
Routing
policy
view
Configure
routing
policies
Basic ACL
view
Define
sub-rules for
a basic ACL
(with
ID
ranging from
2000
to
2999)
Advanced
ACL view
Define
sub-rules for
an advanced
ACL (with ID
ranging from
3000
to
3999)
Layer
2
ACL view
Define
sub-rules for
an layer 2
ACL (with ID
ranging from
4000
to
4999)
Prompt
[Quidway-ri
p]
Enter method
[Quidway-o
spf-1]
Execute
the
ospf command
in system view
[Quidway-o
spf-1-area0.0.0.1]
Execute
the
area
1
command
in
OSPF view
[Quidway-ro
ute-policy]
Execute
the
route-policy
policy1 permit
node
10
command
in
system view
[Quidway-a
clbasic-2000]
[Quidway-a
cladv-3000]
[Quidway-a
cl-ethernetfr
ame-4000]
Quit method
Execute the quit
command to return
to system view.
Execute the return
command to return
to user view.
Execute the quit
command to return
to system view.
Execute the return
command to return
to user view.
Execute the quit
command to return
to OSPF view.
Execute the return
command to return
to user view.
Execute the quit
command to return
to system view.
Execute the return
command to return
to user view.
Execute the quit
command to return
to system view.
Execute the return
command to return
to user view.
Execute the quit
command to return
to system view.
Execute the return
command to return
to user view.
Execute the quit
command to return
to system view.
Execute the return
command to return
to user view.
View
Available
operation
User-defin
ed
ACL
view
Define
sub-rules for
a
user-defined
ACL (with ID
ranging from
5000
to
5999)
QoS
profile
view
RADIUS
scheme
view
ISP
domain
view
HWPing
view
HWTACA
CS view
MSDP
view
Define
profile
QoS
Configure
RADIUS
parameters
Configure
ISP domain
parameters
Configure
HWPing
parameters
Configure
HWTACACS
parameters
Configure
MSDP
parameters
Prompt
Enter method
[Quidway-a
cl-user-500
0]
[Quidway-q
os-profile-a
123]
Execute
the
qos-profile
a123 command
in system view
[Quidway-ra
dius-1]
Execute
the
radius
scheme
1
command
in
system view.
[Quidway-is
p-aaa163.n
et]
Execute
the
domain
aaa163.net
command
in
system view.
[Quidway-h
wping-a123
-a123]
Execute
the
hwping a123
a123 command
in system view
[Quidway-h
wtacacs-a1
23]
Execute
the
hwtacacs
scheme a123
command
in
system view
[Quidway-m
sdp]
Execute
the
msdp
command
in
system view
Quit method
View
PoE
profile
view
Available
operation
Configure
PoE profile
parameters
Prompt
Enter method
[Quidway-p
oe-profile-a
123]
Execute
the
poe-profile
a123 command
in system view
Quit method
Execute the quit
command to return
to system view.
Execute the return
command to return
to user view.
" Note:
The <Ctrl + Z> keys function as the return command does.
boot
cd
clock
cluster
copy
debugging
delete
Delete a file
dir
display
<omitted>
Enter a command, a space, and a "?" character. If a keyword is in the ? position of the
command, all available keywords and their brief descriptions will be displayed on your
terminal. The following takes the clock command as an example.
<Quidway> clock ?
datetime
timezone
<cr>
The <cr> string means that no argument is available in the ? position. You can directly
execute the command by pressing <Enter>.
Enter a command, a space, and a character string followed by a "?" character on your
terminal to display all the keywords that belong to the command and begin with the
string (if available). For example:
<Quidway> display ver?
version
Enter the first several characters of a keyword in a command and then press <Tab>, the
complete keyword will be displayed on the terminal screen if the input characters
uniquely identify a keyword; all the keywords that match the input characters will be
displayed on the terminal screen if the input characters match more than one keyword.
You can use the language-mode command to display the help information in English.
Display suspension. That is, the display of output information can be paused when
the screen is full and you can then perform one of the three operations listed in
Table 1-5 as needed.
Function
Suspend the display and execution of a command.
Operation
Function
Press <Enter>
Operation
Description
Execute
the
display
history-command
command
Recall
the
previous
history command
Display
commands
history
" Note:
!
The Up and Down arrow keys can be used to recall history commands only in
terminals running on Windows 3.x or Telnet running on Windows 3.x. You can press
<Ctrl + P> or <Ctrl + N> in terminals running on Windows 9x to achieve the same
purpose.
If you enter and execute the same command for multiple times, the command is
buffered when it is entered for the first time.
Description
The command does not exist.
The keyword does not exist.
Unrecognized command
The parameter type is wrong.
The parameter value is out of range.
Incomplete command
Ambiguous command
To
Common key
Backspace key
Press
To
Utilize the partial online help. That is,
when you enter an incomplete keyword
and press the Tab key, if the input
keyword uniquely identifies an existing
keyword, the system substitutes the
complete key word for the incomplete
keyword; if the input keyword matches
more than one keyword, all the
keywords are displayed on the terminal
screen, with each keyword on a line; if
the input arguments matches no
keyword, the system displays your
original input on a new line without any
change.
Tab key