四、华为VRP平台介绍和常用配置

一、华为VRP平台

华为现用的平台是VRP(Versatile Routing Platform)是华为公司数据通信产品的通用操作系统平台。 包含华为产品中的路由、交换、安全、无线等等

二、华为设备管理接口

三、通过设备的Console口连接登陆到VRP平台

用配置线一端连接到设备的console口,另一端接到电脑的COM口

也可以用USB转网口的配置线,网头一端接到设备的console口,USB一端接到电脑。

四、通过设备的Console口连接登陆到VRP平台

1、安装SecureCRT ,并创建电脑至路由器的连接

 

到下图的界面时按键盘回车键:

会出现以下提示,需要输入账号密码进行登陆:

五、VRP平台介绍

1、VRP操作系统命令行视图分为:

1】 用户视图 <Huawei>

2】 系统视图 [Huawei]      用户视频进入系统视图 <Huawei>sys ------------- [Huawei]

3】 接口视图 [Huawei-GigabitEthernet0/0/1]         系统视图进入接口视图 [Huawei]interface GigabitEthernet0/0/0------------- [Huawei-GigabitEthernet0/0/1]

4】 协议视图 [Huawei-ospf-1] 系统视图进入协议视图 [Huawei]ospf--------------[Huawei-ospf-1]

 

2、VRP快捷键

ctrl+c 取消当前命令的运行 ctrl+z 直接回到用户视图 TAB 命令补全

3、命令行在线帮助

? 问号, 在我们输入一个命令时忘了后面可接什么命令或参数,可以加?

 如:

[Huawei]dis ip routing-table ?
	   X.X.X.X           Destination IP address
              acl               Access control list
        all-vpn-instance  All VPN instances
	   ip-prefix         IP prefix-list
	     limit             Route limit or prefix limit
	   protocol          Specify Routing protocol
	   statistics        Summary statistics of all routes
	   verbose           Verbose information of routing table
        vpn-instance      VPN-Instance route information
	      |                 Matching output  

  

4、文件系统常用命令

1)pwd 查看当前目录

2)dir 列表当前目录下的文件信息

3)more 查看文本文件内容 如:more a.txt

4)mkdir 创建新的目录 如:mkdir test

5)cd 修改用户当前界面的工作目录, 如:cd test

6)rmdir 删除目录 如:rmdir test

7)copy 复制文件

8)move 移动文件

9)rename 修改文件名称 如:rename test.txt a.txt

10)delete 删除文件 unreserved 永久删除文件

11)undelete 恢复删除的文件

12)reset recycle-bin 彻底删除回收站中的文件

13)system-view 进入系统视图

14)sysname<系统名称) 修改系统名称 如:sysname AAAA

15)interface<接口名> 进入接口视图 如:[Huawei]interface GigabitEthernet0/0/0

16)ip address<IP地址><掩码> 配置接口的ip地址 如:[Huawei]ip address 192.168.10.1 255.255.255.0

17)shutdown 关闭接口 如:[Huawei-GigabitEthernet0/0/0]shutdown

18)undo 撤消之前输入的命令 如:[Huawei-GigabitEthernet0/0/0]undo shutdown 这命令即启用接口 如:[Huawei-GigabitEthernet0/0/0]undo ip 取消己配置的接口ip

19)quit 退出当前视图

20)save 保存配置文件

21)display 查看命令,如:查看己保存的配置 <Huawei>display saved-configuration 查看当前的配置 <Huawei>display current-configuration

22)reboot 重启设备

5、基本配置

1)配置设备名称: sysname+名称 (配置用户名是在系统视图)

如:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname ehong

[ehong]

2)配置系统时钟 (配置系统时间是在用户视图下)

1】 clock timezone 设置所在时区

<Huawei>clock timezone BJ add 08:00:00

2】 clock datatime 设置当前时间和日期

<Huawei>clock datetime 10:20:29 2019-09-11

3】 <Huawei>display clock 查看当前系统时间

<Huawei>display clock

2019-09-04 11:20:05-08:00

Wednesday

Time Zone(China-Standard-Time) : UTC-08:00

  

6、 配置标题消息(登陆前和登陆后的消息信息)

1)header login 配置在用户登陆前显示的标题消息

如:

[huawei]header login information " welcom to huawei certification!" 

2)header shell 配置在用户登陆后显示的标题消息

如:

[huawei]header shell information " The banner text supports 480 characters max, including the start and the end cha racter.If you want to enter more than this, use banner file instead.Input banner text, and quit with the character '"': welcom to huawei certification! Please don`t reboot the device!"

  

7、 配置用户界面命令

1)idle-timeout 配置超时时间

history-command max-size 设定历史命令缓冲区的大小

如:

<huawei>sys Enter system view, return user view with Ctrl+Z.

[huawei]user-interface console 0

[huawei-ui-console0]idle-timeout 1 30

[huawei-ui-console0]history-command max-size 20

 

8、配置文件的管理

1)保存配置

<Huawei>save 

2)查看现在的系统配置

<Huawei>display current-configuration 

3)查看己保存的配置

<Huawei>display saved-configuration

4)清空配置文件

<Huawei>reset saved-configuration

 

9、给接口配置ip并查看各接口的ip和状态 给g0/0/0的接口配置ip地址为192.168.1.1,子掩码为:255.255.255.0

[huawei]int g0/0/0

[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.1 24

查看各接口的ip和状态

[huawei]dis ip int b

关闭接口 showdown 启动端口undo showdown

[Huawei-GigabitEthernet0/0/0]shutdown

[Huawei-GigabitEthernet0/0/0]undo shutdown

删除某端口下的ip配置

[Huawei-GigabitEthernet0/0/0]undo ip add

  

 

猜你喜欢

转载自www.cnblogs.com/mr-xiong/p/12565135.html