While configuring BOOTP Client, go to
these sections for information you are interested in:
l
CLI Features
l
Basic Configurations
1.1 CLI Features
This section covers the following topics:
l
Command Line Interface Overview
l
Online Help with Command
Lines
l
Display Features
l
History Command
l
Command Line Error Information
l
Edit Features
l
Command Line view
1.1.1 Command Line Interface Overview
S5500-SI Series Ethernet Switches provide a
series of configuration commands and command line interface for you to
configure and maintain the Ethernet switches. The command line interface is
featured by the following:
l
Configure the command levels to make sure that
unauthorized users cannot use related commands to configure a switch.
l
You can enter <?> at any time to get the
online help.
l
Provide network test commands, such as tracert,
and ping, to help you to diagnose the network.
l
Provide plenty of detail debugging information
to help you to diagnose and locate the network failures.
l
Provide a function similar to Doskey to execute
a history command.
l
Adopt the partial match method to search for the
keywords of a command line. You only need to enter a non-conflicting keyword to
execute the command correctly.
1.1.2 Online Help
with Command Lines
The following are the types of online help
available with the CLI:
l
Full help
l
Fuzzy help
To obtain the desired help information, you
can:
1)
Enter “?” in any view to access all
the commands in this view and brief description about them as well.
<Sysname>
?
User view commands:
backup Backup next
startup-configuration file to TFTP server
boot-loader Set boot loader
bootrom
Update/read/backup/restore bootrom
cd Change current
directory
clock Specify the
system clock
cluster Run cluster command
copy Copy from one
file to another
debugging Enable system
debugging functions
delete Delete a file
dir List files on a
file system
display Show running
system information
<omitted>
2)
Enter a command and a “?” separated
by a space. If "?" is at the position of a keyword, all the keywords
are given with a brief description.
<Sysname> language-mode ?
chinese Chinese environment
english English
environment
3)
Enter a command and a “?” separated
by a space. If "?" is at the position of a parameter, the description
about these parameters is given.
<Sysname> system-view
[Sysname] interface Vlan-interface ?
<1-4094> VLAN interface
[Sysname] interface Vlan-interface 1
?
<cr>
[Sysname] interface Vlan-interface 1
Where, <cr> indicates that there is
no parameter at this position. The command is then repeated in the next command
line and executed if <Enter> is input.
4)
Enter a character string followed by a
“?”. All the commands starting with this string are displayed.
<Sysname> pi?
ping
5)
Enter a command followed by a character string
and “?”. All the keywords starting with this string are listed.
<Sysname> display ver?
version
6)
Press <tab> after entering the first
several letters of a keyword to display the complete keyword, provided these
letters can uniquely identify the keyword in this command.
7)
You can view the help information in Chinese
with the language-mode command.
1.1.3 Display Features
CLI offers the following features:
l
It offers both English and Chinese help
information. You can toggle between them.
l
When the information displayed exceeds one
screen, you can pause using one of the methods shown in Table 1-1
Table 1-1 Display
functions
|
Action
|
Function
|
|
Enter <Space> when information
display pauses
|
Continues to display information of the
next screen page
|
|
Enter <Enter> when information
display pauses
|
Continues to display information of the
next line.
|
|
Enter <Ctrl+C> when information
display pauses
|
Stops the display and the command
execution.
|
1.1.4 History Command
The CLI can automatically save the commands
that have been entered. You can invoke and repeatedly execute them as needed.
By default, the CLI can save up to ten commands for each user. Table 1-2 lists the operation that you can perform.
Table 1-2 Access
history commands
|
To do…
|
Use the Key/command…
|
Result
|
|
View the history commands
|
display history-command
|
Displays the commands that you have
entered
|
|
Access the last history command
|
Up-arrow key or <Ctrl+P>
|
Displays the earlier history command, if
there is any. Otherwise, the system rings alarm.
|
|
Access the next history command
|
Down-arrow key or <Ctrl+N>
|
Displays the next history command, if
there is any. Otherwise, the system clears the commands and rings alarm.
|
You may use arrow keys to access history commands in Windows 2000/XP
Terminal or Telnet. However, the up-arrow and down-arrow keys are invalid in
Windows 9X HyperTerminal, because they are defined in a different way. You can
use <Ctrl+P> and <Ctrl+N> instead.
1.1.5 Command Line Error Information
The commands are executed only if they have
no syntax error. Otherwise, error information is reported. Table 1-3 lists some common errors.
Table 1-3 Common
command line errors
|
Error information
|
Cause
|
|
Unrecognized command
|
The command was not found.
|
|
The keyword was not found.
|
|
Parameter type error
|
|
The parameter value is beyond the allowed
range.
|
|
Incomplete command
|
Incomplete command
|
|
Too many parameters
|
Too many parameters are input.
|
|
Ambiguous command
|
Parameter value input is ambiguous.
|
|
Wrong parameter
|
Wrong parameter
|
1.1.6 Edit Features
The CLI provides the basic command edit
functions and supports multi-line editing. The maximum length of each command
is 256 characters. Table 1-4 lists these functions.
Table 1-4 Edit
functions
|
Key
|
Function
|
|
Common Keys
|
If the editing buffer is not full, insert
the character at the position of the cursor and move the cursor to the right.
Otherwise, the alarm rings.
|
|
<Backspace> key
|
Delete the character to the left of the
cursor and move the cursor back one character. If the cursor gets to the
beginning of the command line, the alarm rings.
|
|
Left-arrow key or <Ctrl+B>
|
The cursor moves one character space to
the left, and the alarm rings when the cursor gets to the beginning of the
command line.
|
|
Right-arrow key or <Ctrl+F>
|
The cursor moves one character space to
the right, and the alarm rings when the cursor gets to end of the command
line.
|
|
Up-arrow key or <Ctrl+P>
|
Display history command
|
|
Down-arrow key or <Ctrl+N>
|
|
<Tab> key
|
Pressing <Tab> after entering part
of a keyword enables the fuzzy help function. If finding a unique match, the
system will substitute the complete keyword for the incomplete one and
display it in the next line. If there are several matches or no match at all,
the system will not modify the incomplete keyword and display it again in the
next line.
|
1.1.7
Command Line view
Different command views are implemented
according to different requirements. They are related to one another. For
example, after logging in the switch, you will enter user view, in which you
can only use some basic functions such as displaying the running state and
statistics information. In user view, key in system-view to enter system
view, in which you can key in different configuration commands and enter the
corresponding views.
The command line provides the following views:
l
User view
l
System view
l
Ethernet Port view
l
NULL interface view
l
VLAN view
l
VLAN interface view
l
LoopBack interface view
l
Local-user view
l
User interface view
l
FTP Client view
l
MST region view
l
IGMP-Snooping view
l
MLD-Snooping view
l
Traffic classifier view
l
Traffic behavior view
l
QoS policy view
l
Cluster view
l
Port group view
l
NQA view
l
HWTACACS scheme view
l
RSA public key view
l
RSA key code view
l
Route policy view
l
Basic ACL view
l
Advanced ACL view
l
Layer 2 ACL view
l
QinQ view
l
RADIUS scheme view
l
RIP view
l
RIPng view
l
ISP domain view
The following table describes the function
features of different views and the ways to enter or quit.
Table 1-5 Command view function list
|
Command view
|
Function
|
Prompt
|
Command to enter
|
Command to exit
|
|
User view
|
Show the basic information about
operation and statistics
|
<Sysname>
|
Enter right after connecting the switch
|
quit
disconnects to the switch
|
|
System view
|
Configure system parameters
|
[Sysname]
|
Key in system-view in user view
|
quit or return returns to user view
|
|
Ethernet Port view
|
Configure Ethernet port parameters
|
[Sysname- GigabitEthernet1/0/1]
|
GigabitEthernet port view
Key in interface gigabitethernet
1/0/1 in system view
|
quit
returns to system view
return
returns to user view
|
|
NULL interface view
|
Configure NULL interface parameters
|
[Sysname-NULL0]
|
Key in interface null 0 in
system view
|
quit
returns to system view
return
returns to user view
|
|
VLAN view
|
Configure VLAN parameters
|
[Sysname-vlan1]
|
Key in vlan 1 in system view
|
quit
returns to system view
return
returns to user view
|
|
VLAN interface view
|
Configure IP interface parameters for a
VLAN or a VLAN aggregation
|
[Sysname-Vlan- interface1]
|
Key in interface Vlan-interface
1 in system view
|
quit
returns to system view
return
returns to user view
|
|
LoopBack interface view
|
Configure LoopBack interface parameters
|
[Sysname- LoopBack0]
|
Key in interface loopback 0
in system view
|
quit
returns to system view
return
returns to user view
|
|
Local-user view
|
Configure local user parameters
|
[Sysname-luser- user1]
|
Key in local-user user1 in system
view
|
quit
returns to system view
return
returns to user view
|
|
User interface view
|
Configure user interface parameters
|
[Sysname-ui0]
|
Key in user-interface 0 in system
view
|
quit
returns to system view
return
returns to user view
|
|
FTP Client view
|
Configure FTP Client parameters
|
[ftp]
|
Key in ftp in user view
|
quit
returns to user view
|
|
MST region view
|
Configure MST region parameters
|
[Sysname-mst- region]
|
Key in stp region-configuration in
system view
|
quit
returns to system view
return
returns to user view
|
|
IGMP-Snooping view
|
Configure IGMP–Snooping protocol
parameters
|
[Sysname-igmp- snooping]
|
Key in igmp-snooping in system
view
|
quit
returns to system view
return
returns to user view
|
|
MLD-Snooping view
|
Configure MLD-Snooping protocol
parameters
|
[Sysname-mld- snooping]
|
Key in mld-snooping in system view
|
quit
returns to system view
return
returns to user view
|
|
Traffic classifier view
|
Configure traffic classifier related
parameters
|
[Sysname-classifier-test]
|
Key in traffic classifier
test in system view
|
quit
returns to system view
return
returns to user view
|
|
Traffic behavior view
|
Configure traffic behavior related
parameters
|
[Sysname-behavior-test]
|
Key in traffic behavior
test in system view
|
quit
returns to system view
return
returns to user view
|
|
QoS policy view
|
Configure QoS policy related parameters
|
[Sysname- qospolicy-test]
|
Key in qos policy test in system
view
|
quit
returns to system view
return
returns to user view
|
|
Cluster view
|
Configure cluster parameters
|
[Sysname-cluster]
|
Key in cluster in system view
|
quit
returns to system view
return
returns to user view
|
|
Port group view
|
Configure manual port group parameters
|
[Sysname-port- group-manual-test]
|
Key in port-group manual
test in system view
|
quit
returns to system view
return
returns to user view
|
|
Configure aggregate port group parameters
|
[Sysname-port- group-aggregation-1]
|
Key in port-group aggregation
1 in system view
|
|
NQA view
|
Configure NQA test group parameters
|
[Sysname-nqa- admin-test]
|
Key in nqa admin test in system
view
|
quit
returns to system view
return
returns to user view
|
|
HWTACACS scheme view
|
Configure HWTACACS parameters
|
[Sysname- hwtacacs-test]
|
Key in hwtacacs scheme test
in system view
|
quit
returns to system view
return
returns to user view
|
|
RSA public key view
|
Configure RSA public key of SSH user
|
[Sysname-rsa- public-key]
|
Key in rsa peer-public-key 003 in
system view
|
peer-public-key end returns to system view
|
|
RSA key code view
|
Edit RSA public key of SSH user
|
[Sysname-rsa-key- code]
|
Key in public-key-code begin in RSA
public key view
|
public-key-code end returns to RSA public key view
|
|
Route policy view
|
Configure route policy
|
[Sysname-route- policy]
|
Key in route-policy policy1 permit
node 10 in system view
|
quit
returns to system view
return
returns to user view
|
|
Basic ACL view
|
Define the sub rule of the basic ACL (in
the range of 2,000 to 2,999)
|
[Sysname-acl-basic-2000]
|
Key in acl number 2000 in
system view
|
quit
returns to system view
return
returns to user view
|
|
Advanced ACL view
|
Define the sub rule of the advanced ACL
(in the range of 3,000 to 3,999)
|
[Sysname-acl-adv- 3000]
|
Key in acl number 3000 in
system view
|
quit
returns to system view
return
returns to user view
|
|
Layer 2 ACL view
|
Define the sub rule of the Layer 2 ACL
(in the range of 4,000 to 4,999)
|
[Sysname-acl- ethernetframe-4000]
|
Key in acl number 4000 in
system view
|
quit
returns to system view
return
returns to user view
|
|
QinQ view
|
Create a QinQ instance and configure QinQ
related parameters.
|
[Sysname- GigabitEthernet1/0/1-vid-1]
|
Key in vlan-vpn vid 1 in
Ethernet port view
|
quit
returns to system view
return
returns to user view
|
|
RADIUS scheme view
|
Configure RADIUS parameters
|
[Sysname-radius-1]
|
Key in radius scheme 1 in
system view
|
quit
returns to system view
return
returns to user view
|
|
RIP view
|
Configure RIP parameters
|
[Sysname-rip-1]
|
Key in rip in system view
|
quit
returns to system view
return
returns to user view
|
|
RIPng view
|
Configure RIPng parameters
|
[Sysname-ripng-1]
|
Key in ripng 1 in system view
|
quit
returns to system view
return
returns to user view
|
|
ISP domain view
|
Configure ISP domain parameters
|
[Sysname-isp- aabbcc.net]
|
Key in domain aabbcc.net in system
view
|
quit
returns to system view
return
returns to user view
|
1.2 Basic Configurations
This section covers the following topics:
l
Entering/Exiting
System View
l
Configuring CLI Language Mode
l
Configuring Device Name
l
Configuring System Clock
l
Configuring a Banner
l
Configuring CLI Hotkeys
l
Configuring User Levels
and Command Levels
l
Displaying System Information
1.2.1 Entering/Exiting System View
Table 1-6 Follow these steps to enter/exit system view
|
To do…
|
Use the command…
|
Remarks
|
|
Enter system view from user view
|
system-view
|
—
|
|
Return to user view from system view
|
quit
|
—
|
With the quit command, you can return to the previous view or
exit the system from user view. The hot key <Ctrl+Z> is equivalent to the
return command.
Table 1-7
Follow these steps to configure CLI language mode
|
To do…
|
Use the command…
|
Remarks
|
|
Switch CLI language mode
|
language-mode { chinese | english }
|
Optional
CLI language is English by default.
|
1.2.3 Configuring Device Name
Table 1-8 Follow these steps to configure
the device name
|
To do…
|
Use the command…
|
Remarks
|
|
Enter system view
|
system-view
|
—
|
|
Configure the router name
|
sysname sysname
|
Optional
By default, the device name is H3C.
|
1.2