Basic Huawei Router Configuration
Basic Huawei Router Configuration
Table of Contents
• Huawei Router Configuration
o Huawei Help Command
o Huawei Configuration Mode
o Useful Shortcuts
o Changing Router Name
o Setting Clock on Hauwei Routers
o Huawei Router CLI Messages
o Router User Privilege Levels
o Router Telnet Configuration
o Router Console Configuration
o Huawei CLI Adjustments
o Huawei Router Interface Configuration
On Huawei routers and switches, you can use question mark (?) to help about configuration
commands. This help can be both to complete a command or for the available all commands
under that hierarchy.
If you use “?” alone, then available all commands will be showed at that level. Here, we list
all the commands beginning with “display dhcp”.
snooping Snooping
statistics Statistics
If you use “?”, with a letter, the commands that begins with that letter will be showed. Below,
after “display dhcp” command, we list the commands beginning with “s”.
server snooping
static statistics
▪ User View
▪ System View
▪ Interface View
▪ Protocol View
User View is the mode that you will enter after login to the router. With this mode, you can
check the system configurations.
After that to configure a Huawei router, you should enter System View Mode. To enter this
configuration mode, we use “system-view” command. This is the equivalent of Cisco’s
“configure terminal” command.
<Huawei-Router> system-view
[Huawei-Router]
The other two modes are Interface view and Protocol view. In these modes, router interfaces
and routing protocol configurations are done.
Useful Shortcuts
There are various shortcuts on Huawei CLI. These shortcuts is useful during router
configuration. Some of the important shortcuts are given below:
[Huawei]sysname Huawei-Training
[Huawei-Training]
To set the timezoze, we will use “clock timezone” command. Here, with “add” keyword, we
determine UTC+ timezone and with “mines”, we determine UTC- timezone. Here, we did
this configuration for UTC+3.
In some countries, daylight savingm time is used. So, summer and winter times change. To
adjust this on Huawei routers, we us “clock daylight-saving-time” command.
Lastly, you can check the set time and clock with “display clock” command.
2019-12-04 15:45:14+3:00
Wednesday
Header Login message is the message that you will see after the router boots. It is configured
with “header login information” command.
Header Shell message is the message that you will see after login to the router. It is
configured with “header shell information” command.
Login Authentication
Password:
Be Careful!
We can set user levels with “command-privilege level” command like below. Here, we have
set user level to 10.
[Huawei-Router] command-privilege level 10 view user save
[Huawei-Router] screen-length 5
To set session timeout value, we use “idle-timeout” command. Below we set this for 1 hour.
For command history size, we use “history-command max-size” command. Below, we set to
store last 30 commands.
In this Basic Huawei Router Configuration lesson we have learned basic commands
of Huawei CLI.