当前位置: 首页 > article >正文

华为VRP系统基本操作

简介:

         VRP是Versatile Routing Platform的简称,它是华为公司数据通信产品的通用网络操 作系统。目前,在全球各地的网络通信系统中,华为设备几乎无处不在,因此,学习了 解VRP的相关知识对于网络通信技术人员来说就显得尤为重要。

       VRP系统提供了丰富的命令行视图,包括用户视图、系统视图、接口视图等,用户可以通过相应的命令进入不同的视图进行配置和管理。例如,system-view命令可以进入系统视图,interface命令可以进入接口视图

1、通过Console方式登录Router

2、查看设备基本信息

<Huawei>display version    //查看设备基本信息
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.110 (eNSP V100R001C00)
Copyright (c) 2000-2011 HUAWEI TECH CO., LTD

3、完成基本配置

3.1、修改设备名称

<Huawei>sys	     //TAB键补全
<Huawei>system-view   //进入系统视图
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1    //将设备命名为R1
[R1]

3.2、进入接口配置IP地址

[R1]interface Serial 0/0/0
[R1-Serial0/0/0]ip address 12.11.10.1 255.255.255.0
[R1-Serial0/0/0]display this  //使用display this可以查看当前视图的运行配置
#
interface Serial0/0/0
 link-protocol ppp
 ip address 12.11.10.1 255.255.255.0
#
return
[R1-Serial0/0/0]

使用display this可以查看当前视图的运行配置

若是忘记命令的作用和用法等等,可以通过 “ 关键字 + ?” 来查看信息

[R1-Serial0/0/0]ip ?
  address             Set the IP address of an interface
  binding             Enable binding of an interface with a VPN instance
  forward-broadcast   Specify IP directed broadcast information
  netstream           Netstream feature
  policy-based-route  Enable policy based routing on the interface
  tcp                 Specify TCP(Transmission Control Protocol) configuration
                      information
  topology            The name of topology
  verify              IP verify

3.3、当接口的IP地址配置错误时

        需要先删除当前接口的错误IP地址配置,再重新在其他接口进行配置IP地址,否则会出现地址冲突无法配置。

[R1]interface Serial 0/0/0
[R1-Serial0/0/0]undo ip address
[R1-Serial0/0/0]display this
#
interface Serial0/0/0
 link-protocol ppp
#
return
[R1-Serial0/0/0]

4、查看设备当前配置

[R1]display current-configuration 
#
sysname R1
#
undo info-center enable
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#
 local-user admin service-type http
#
firewall zone Local
 priority 16
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Serial0/0/0
 link-protocol ppp
#
  ---- More ----

当执行命令时,显示的信息超过一定数量时,系统会自动暂停输出信息,以方便用户查看。如上图中的---- More ----的字样,此时可通过:

  1. <Ctrl + C>或<Ctrl + Z>,停止或命令执行
  2. 空格键,继续显示下一屏信息
  3. 回车键,继续显示下一行信息

5、保存设备当前配置

[R1]quit       //返回上一视图
<R1>

[R1]return     //在任何视图中,返回用户视图
<R1>

[R1]           //ctrl+z  在任何视图中,返回用户视图
<R1>

保存命令

<R1>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y      //需要输入y来确认继续
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 17.
Save the configuration successfully.
<R1>

6、操作设备的文件系统

<R1>dir 
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time       FileName 
    0  drw-              -  Aug 07 2015 13:51:14   src
    1  drw-              -  Sep 11 2024 11:36:01   pmdata
    2  drw-              -  Sep 11 2024 11:36:04   dhcp
    3  -rw-            603  Sep 11 2024 12:55:06   private-data.txt
    4  drw-              -  Sep 11 2024 11:56:30   mplstpoam
    5  -rw-            435  Sep 11 2024 12:55:05   vrpcfg.zip

32,004 KB total (31,993 KB free)

<R1>

配置文件:vrpcfg.zip。其中配置文件以“.cfg”或“.zip”作为扩展名

6.1、将当前配置文件保存并命名为zzz.cfg

<R1>save zzz.cfg
Are you sure to save the configuration to flash:/zzz.cfg?[Y/N]:y
Now saving the current configuration to the slot 17.
Save the configuration successfully.
<R1>dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time       FileName 
    0  drw-              -  Aug 07 2015 13:51:14   src
    1  drw-              -  Sep 11 2024 11:36:01   pmdata
    2  drw-              -  Sep 11 2024 11:36:04   dhcp
    3  -rw-            603  Sep 11 2024 12:55:06   private-data.txt
    4  drw-              -  Sep 11 2024 11:56:30   mplstpoam
    5  -rw-            435  Sep 11 2024 12:55:05   vrpcfg.zip
    6  -rw-            816  Sep 11 2024 13:01:39   zzz.cfg

32,004 KB total (31,991 KB free)

<R1>

6.2、把该文件设置为设备下一次启动所使用的配置文件

<R1>startup saved-configuration zzz.cfg  //设置
Info: Succeeded in setting the configuration for booting system.
<R1>
<R1>display startup        //查看下一次启动的配置文件
MainBoard: 
  Configured startup system software:        NULL
  Startup system software:                   NULL
  Next startup system software:              NULL
  Startup saved-configuration file:          NULL
  Next startup saved-configuration file:     flash:/zzz.cfg
  Startup paf file:                          NULL
  Next startup paf file:                     NULL
  Startup license file:                      NULL
  Next startup license file:                 NULL
  Startup patch package:                     NULL
  Next startup patch package:                NULL
<R1>

6.3、清空配置文件

<R1>reset saved-configuration 
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y     //需要输入y来确认继续
Warning: Now clearing the configuration in the device.
Info: Succeeded in clearing the configuration in the device.
<R1>

7、重启设备

<R1>reboot
Info: The system is now comparing the configuration, please wait.
Warning: All the configuration will be saved to the configuration file for the n
ext startup:, Continue?[Y/N]:y
flash:/vrpcfg.zip exists, overwrite?[Y/N]:y
Now saving the current configuration to the slot 17.
Save the configuration successfully.
Info: If want to reboot with saving diagnostic information, input 'N' and then e
xecute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y
<R1>

8、基础常用命令

查看当前配置display current-configuration
保存配置save
查看保存的配置display saved-configuration
重置保存的配置reset saved-configuration
设置系统启动配置文件startup saved-configuration
重启设备reboot
配置设备名称sysname
配置IP地址ip address IP 掩码
关闭接口shutdown
查看接口状态display interface brief
配置时区和时间clock datetime 20:45:00 2019-07-30
配置用户登录信息header login information
配置命令行等级user privilege level


http://www.kler.cn/news/304698.html

相关文章:

  • php 之 php-fpm 和 nginx结合使用
  • 使用Rustup快速无缝升级Rust
  • Mac快速复制和删除命令
  • Gitlab实现多项目触发式自动CICD
  • 时序预测 | Matlab实现GA-CNN遗传算法优化卷积神经网络时间序列预测
  • Java许可政策再变,Oracle JDK 17 免费期将结束!
  • 7.测试用例设计方法 + Bug
  • linux安全软件Hydra使用教程
  • 速盾:cdn节点越多越好吗?
  • 如何优雅的使用 Nacos
  • Go语言现代web开发11 函数
  • git子模块处理的一些方法
  • 2024年华为9月4日秋招笔试真题题解
  • WalkMe的数字用户体验到底是啥
  • APP广告变现流量售卖,选择API还是SDK对接?
  • 前端Excel热成像数据展示及插值算法
  • DAY 9 - 10 : 树
  • 海量智库第31期 | 自治事务原理与应用解析
  • C++生成唯一值的五种方法
  • 【机器学习(六)】分类和回归任务-LightGBM算法-Sentosa_DSML社区版
  • 前端项目node版本问题导致依赖安装异常的处理办法
  • 网络安全实训七(MSF与CS互相连接)
  • “AI大语言模型+”助力大气科学相关交叉领域实践技术应用
  • ubuntu20.4安装Qt5.15.2
  • SQL案例分析:计算延迟法定退休年龄
  • vue项目如何在js文件中导入assets文件夹下图片
  • SAP B1 营销单据 - 单据字段介绍(中)
  • AI 工具如何提高工作效率
  • 果蔬识别系统性能优化之路(五)
  • Kafka 基于SASL/SCRAM动态认证部署,kafka加账号密码登录部署