VRP(Versatile Routing Platform 华为数通设备操作系统)是华为公司数据通信产品的通用操作系统平台,从低端到核心的全系列路由器、以太网交换机、业务网关等产品的软件核心引擎。
命令行方式(CLI):
带外管理(console管理)
管理员通过console线本地管理网络设备
一般设备在初次配置时都需此管理
设备的管理较局限
设备默认存在console接口(硬件、软件)
带外管理(console管理)
Web 网管方式:通过图形化界面实现对设备直观方便地管理与维护,但仅可实现对设备部分功能管理。
用户等级 | 命令等级 | 名称 | 说明 |
---|---|---|---|
0 | 0 | 参观级 | 可使用网络诊断工具命令(ping、tracert)、从本设备出发访问外部设备的命令(Telnet客户端命令)、部分display命令等。 |
1 | 0 and 1 | 监控级 | 用于系统维护,可使用display等命令。 |
2 | 0,1 and 2 | 配置级 | 可使用业务配置命令,包括路由、各个网络层次的命令,向用户提供直接网络服务。 |
3-15 | 0,1,2 and 3 | 管理级 | 可使用用于系统基本运行的命令,对业务提供支撑作用,包括文件系统、FTP、TFTP下载、命令级别设置命令以及用于业务故障诊断的debugging命令等。 |
dir
。mkdir test
。rmdir test
。rename huawei.txt save.zip
。copy save.zip file.txt
。move file.txt flash:/dhcp/
。delete file.txt
。undelete file.txt
。#配置设备名称
[Huawei] sysname name
#设置系统时钟
<Huawei> clock timezone time-zone-name { add | minus } offset
#用来对本地时区信息进行设置。
<Huawei> clock datetime [ utc ] HH:MM:SS YYYY-MM-DD
#用来设置设备当前或UTC日期和时间。
<Huawei> clock daylight-saving-time
#配置接口IP地址,用来给设备上的物理或逻辑接口配置IP地址。
[Huawei]interface interface-number
[Huawei-interface-number]ip address ip address
#查看当前运行的配置文件
<Huawei>display current-configuration
#配置文件保存
<Huawei>save srebro.zip
#查看保存的配置
<Huawei>display saved-configuration
#清除已保存的配置
<Huawei>reset saved-configuration
#查看系统启动配置参数:用来查看设备本次及下次启动相关的系统软件、备份系统软件、配置文件、License文件、补丁文件以及语音文件。
<Huawei> display startup
#配置系统下次启动时使用的配置文件
<Huawei>startup saved-configuration srebro.zip
#配置设备重启
<Huawei>reboot
<Huawei>system-view
[Huawei]sysname AR1
[AR1]interface GigabitEthernet 0/0/1
[AR1-GigabitEthernet0/0/1]ip address 192.168.1.1 24
[AR1-GigabitEthernet0/0/1]quit
[AR1]user-interface vty 0 4 #设置用户可以登录的接口(0到4 一共5个接口)
[AR1-ui-vty0-4]authentication-mode password #设置用户登录的模式为密码登录
Please configure the login password (maximum length 16):srebro #设置登录的密码
[AR1-ui-vty0-4]user privilege level 1 #设置用户登录后的权限级别
[AR1-ui-vty0-4]ctrl + z #返回到用户视图
<AR1>save srebro.zip
Are you sure to save the configuration to srebro.zip? (y/n)[n]:y
<AR1>startup saved-configuration srebro.zip #配置系统下次启动时使用的配置文件
<AR1>display startup
<AR1>reboot
<Huawei>system-view
[Huawei]sysname AR1
[AR1]interface GigabitEthernet 0/0/1
[AR1-GigabitEthernet0/0/1]ip address 192.168.2.1 24
[AR1-GigabitEthernet0/0/1]quit
[AR1]user-interface vty 0 4 #设置用户可以登录的接口(0到4 一共5个接口)
[AR1]aaa #进入aaa视图
[AR1-aaa]local-user srebro password cipher srebro@2025 # 创建用户名+密码
[AR1-aaa]local-user srebro privilege level 3 #设置用户登录的权限级别为3
[AR1-aaa]local-user srebro service-type telnet #指定用户的服务协议类型为telnet
[AR1-aaa]display this #查看当前配置
[V200R003C00]
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
local-user srebro password cipher %$%$bMyFO-[lL:O3u&/>`gr3i;Tg%$%$
local-user srebro privilege level 3
local-user srebro service-type telnet
[AR1-aaa] ctrl +z #返回到用户视图下
<AR1>save srebro.zip
Are you sure to save the configuration to srebro.zip? (y/n)[n]:y
<AR1>startup saved-configuration srebro.zip #配置系统下次启动时使用的配置文件
<AR1>display startup
<AR1>reboot
startup saved-configuration srebro.zip