1、 执行display version命令,查看路由器的软件版本与硬件信息。
<Huawei>display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.160 (AR2200 V200R007C00SPC600)
Copyright (C) 2011-2016 HUAWEI TECH CO., LTD
Huawei AR2220E Router uptime is 0 week, 3 days, 21 hours, 43 minutes
命令回显信息中包含了VRP版本,设备型号和启动时间等信息。
2、在用户视图下执行clock timezone命令和clock datetime命令修改系统时间。
<Huawei>clock timezone Local add 08:00:00(UTC+8时区)
<Huawei>clock datetime 12:00:00 2016-03-11
执行display clock命令查看生效的新系统时间。
<Huawei>display clock
2026-03-25T22:51:55+00:00
Friday
Time Zone(Local) : UTC+08:00
3、使用system-view命令可以进入系统视图,这样才可以配置接口、协议等内容。
4、修改路由器的设备名称命令sysname
如下:
[Huawei]sysname R1
[R1]
5、配置登录信息
配置登陆标语信息来进行提示或进行登陆警告。执行header shell information命令配
置登录信息。
[R1]header shell information "Welcome to the Huawei certification lab."
重新登录查看登录信息是否已经修改。
<R1>quit
Configuration console exit, please press any key to log on
Welcome to the Huawei certification lab.
<R1>
6、配置 Console 口参数
默认情况下,通过Console口登陆无密码,将Console接口登录方式配置为密码认证方式,密码为密文形式的"Huawei@123",并设置空闲超时时间为20分钟,默认为10分钟。
[R1]user-interface console 0
[R1-ui-console0]authentication-mode password
[R1-ui-console0]set authentication password cipher
Warning: The "password" authentication mode is not secure, and it is strongly recommended
to use "aaa" authentication mode.
Enter Password(<8-128>):
Confirm password:
[R1-ui-console0] idle-timeout 20 0
7、配置接口 IP 地址和描述信息
如配置配置 R3 上 GigabitEthernet 0/0/0 接口的 IP 地址与描述信息。
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ip address 10.0.13.3 255.255.255.0
[R3-GigabitEthernet0/0/0]description This interface connects to R1-G0/0/0
8、在用户视图下执行dir命令,查看当前目录下的文件列表。
<R1>dir
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 1,738,816 Mar 10 2016 11:50:24 web.zip
1 -rw- 68,288,896 Mar 10 2016 14:17:5 ar2220E-v200r007c00spc600.cc
2 -rw- 739 Mar 10 2016 16:01:17 vrpcfg.zip
1,927,476 KB total (1,856,548 KB free
9、管理设备配置文件
执行display saved-configuration命令查看保存的配置文件。
<R1>display saved-configuration
There is no correct configuration file in FLASH
系统中没有已保存的配置文件。执行save命令保存当前配置文件。
<R1>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait............
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
重新执行display saved-configuration命令查看已保存的配置信息。
<R1>display saved-configuration
[V200R007C00SPC600]
#
sysname R1
header shell information "Welcome to Huawei certification lab"
#
board add 0/1 1SA
board add 0/2 1SA
……output omit……
10执行display current-configuration命令查看当前配置信息。
<R1>display current-configuration
[V200R007C00SPC600]
#
sysname R1
header shell information "Welcome to Huawei certification lab"
#
board add 0/1 1SA
board add 0/2 1SA
board add 0/3 2FE
……output omit……
11一台路由器可以存储多个配置文件。执行display startup命令查看下次启动时使用的配
置文件。
<R3>display startup
MainBoard:
Startup system software: flash:/AR2220E-v200R007C00SPC600.cc
Next startup system software: flash:/AR2220E-V200R007C00SPC600.cc
Backup system software for next startup: null
Startup saved-configuration file: null
Next startup saved-configuration file: flash:/vrpcfg.zip
Startup license file: null
Next startup license file: null
Startup patch package: null
Next startup patch package: null
Startup voice-files: null
Next startup voice-files: null
12删除闪存中的配置文件。
<R1>reset saved-configuration
This will delete the configuration in the flash memory.
The device configurations will be erased to reconfigure.
Are you sure? (y/n)[n]:y
Clear the configuration in the device successfully.
<R3>reset saved-configuration
This will delete the configuration in the flash memory.
The device configurations will be erased to reconfigure.
Are you sure? (y/n)[n]:y
Clear the configuration in the device successfully.
13重启设备
执行reboot命令重启路由器。
<R1>reboot