Professional Documents
Culture Documents
04.Data+Communication+Basics+-+Network+Device+Management
04.Data+Communication+Basics+-+Network+Device+Management
One end of a console cable is an RJ45 connector, and the other end is a serial port connector. The RJ45 co
nnector is connected to the RJ45 console port on the device, and the serial port connector is connected to t
he computer. Currently, most desktop computers provide serial ports, and serial ports support console cabl
e connections. However, most laptop computers do not have serial ports. Therefore, if you use a laptop co
mputer, use a USB-RS232 cable for transfer.
Cable Introduction (2)
USB-RS232
Console Cable
Console Port
When you use a USB-RS232 cable, connect the USB end to the USB interface of the laptop computer, the RS232 conn
ector to the serial port of the console cable, and the RJ45 connector of the console cable to the console port of the man
aged device. After connecting the laptop computer and device in this manner, a configuration environment is successfull
y set up. You can then run the terminal emulation program on the computer to perform device management and configur
ation.
SecureCRT Settings
If cables are connected correctly, use the SecureCRT to log in to the device. After the
login succeeds, the SecureCRT CLI is displayed for you to interact with the device thr
ough commands.
USB-RS232
Console Cable
Console Port
Course Contents
user-interface vty 0 4
User interface view
[Huawei-ui-vty0-4]
ospf 1
Routing protocol view
[Huawei-ospf-1]
Command Views (2)
<Huawei>
The user view allows you to view simple running status information and
relevant statistics.
quit
system-view
[Huawei]
The system view allows you to configure global system parameters and
enter other function configuration views.
[Huawei-GigabitEthernet 0/0/0]
The interface view allows you to configure interface-specific parameters
and functions.
Basic Command Structure
•Command prompt
•Command supplement
•Syntax check
CLI Help (2)
• Command prompt
[Huawei] ip rou?
route <Group> route command group
route-static IPv4 static routes
[Huawei] ip route-static ?
IP_ADDR<X.X.X.X> Destination IP address
default-preference Preference-value for IPv4 static-routes
selection-rule Selection rule
vpn-instance VPN-Instance route information
CLI Help (3)
• Command supplement
<huawei> sys[tab]
<huawei> system-view
CLI Help (4)
• Syntax check
[Huawei] sysname
^
Error:Incomplete command found at '^' position.
# The command content at the "^" position is incomplete.
[Huawei] a
^
Error:Ambiguous command found at '^' position.
# The command content at the "^" position is ambiguous because there are multi
ple keywords beginning with "a".
Command Shortcut Keys
Key Function
Ctrl_A Moves the cursor to the beginning of the current line.
Ctrl_B Moves the cursor one character back.
Ctrl_C Stops the running function.
Ctrl_E Moves the cursor to the end of the current line.
Ctrl_K Terminates the connection of an outgoing call during connection establishment.
Ctrl_R Redisplays information about the current line.
Ctrl_T Terminates the connection of an outgoing call.
Ctrl_V Pastes the text of the clipboard.
Ctrl_W Deletes the character string (word) on the left side of the cursor.
Ctrl_X Deletes all characters on the left side of the cursor.
Deletes the character at the cursor and all characters on the right side of the cu
Ctrl_Y
rsor.
Ctrl_Z Returns to the user view.
Esc_Shift_< Moves the cursor to the start of text in the clipboard.
Esc_Shift_> Moves the cursor to the end of text in the clipboard.
Basic Configuration Commands (1)
Enable the Telnet service so that users can remotely log in using a password.
[Quidway] user-interface vty 0 4
[Quidway-ui-vty0-4] authentication-mode password
[Quidway-ui-vty0-4] protocol inbound telnet
[Quidway-ui-vty0-4] set authentication password cipher huawei
[Quidway-ui-vty0-4] quit
[Quidway] super password level 15 cipher huawei15
Configuration File Management
•Save a configuration file. If you save the configuration file for the first time without specifyin
g the configuration-file parameter, the system displays a message asking you whether to na
me the configuration file vrpcfg.zip. The vrpcfg.zip file is the default configuration file with
empty configuration.
<Router> save
•Clear a saved configuration file and restore the factory settings upon the next device restar
t.
<Router> reset saved-configuration
•Back up a configuration file.
<Router> copy flash:/vrpcfg.zip flash:/cfgbackup.zip
Viewing Current Configurations