3.2 系统管理

1.查看已保存的配置

<R1>display saved-configuration
  Directory of flash:/
    5  -rw-  548  Jan 01 2023 05:31:36   vrpcfg.zip

2.查看当前配置

<R1>display current-configuration 
#
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

3.保存当前配置

<R1>save 
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:
另存为文件
<Huawei>save dsrw.cfg
 Are you sure to save the configuration to dsrw.cfg? (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
<Huawei>dir
Directory of flash:/
         832  Jan 01 2023 05:35:57   dsrw.cfg 

4.比较配置文件

<R1>compare configuration 

5.导入配置文件

<Huawei>startup saved-configuration dsrw.cfg
This operation will take several minutes, please wait....
Info: Succeeded in setting the file for booting system

6.查看下次启动时使用的配置文件

<Huawei>display startup 
MainBoard: 
  Startup system software:                   null
  Next startup system software:              null
  Backup system software for next startup:   null
  Startup saved-configuration file:          flash:/vrpcfg.zip
  Next startup saved-configuration file:     flash:/dsrw.cfg

7.修复flash卡

<R1>fixdisk flash: 
Fixdisk flash: will take long time if needed
%Fixdisk flash: completed

8.擦除存储设备中配置文件

<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确认恢复出厂

9.格式化flash(慎用)

<R1>format flash: 
All data(include configuration and system startup file) on flash: will be lost , proceed with format? (y/n)[n]:
%Format flash: completed.

10.从ftp服务器更新VRP系统

1)网络拓扑

图片[1]-3.2 系统管理-大赛人网
图3-1 ftp服务器更新VRP系统网络拓扑

2)服务器共享设置

图片[2]-3.2 系统管理-大赛人网
图3-2 设置FtpServer

3)R1配置G0/0/0端口

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0  
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 255.255.255.0
[R1-GigabitEthernet0/0/0]ping 192.168.1.254
  PING 192.168.1.254: 56  data bytes, press CTRL_C to 
    Reply from 192.168.1.254: bytes=56 Sequence=5 ttl=255 time=10 ms
  --- 192.168.1.254 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/20/40 ms

4)登录ftp服务器并下载VRP

<R1>ftp 192.168.1.254
Trying 192.168.1.254 ...
Press CTRL+K to abort
Connected to 192.168.1.254.
220 FtpServerTry FtpD for free 
User(192.168.1.254:(none)):
331 Password required for  .
Enter password:
230 User  logged in , proceed

[R1-ftp]get ar220.cc
200 Port command okay.
150 Sending ar220.cc (139306 bytes). Mode STREAM Type BINARY
226 Transfer finished successfully. Data connection closed.
FTP: 139306 byte(s) received in 0.440 second(s) 316.60Kbyte(s)/sec.
[R1-ftp]quit
221 Goodbye.
<R1>dir
Directory of flash:/
    2  -rw-  139,306  Jan 01 2023 06:25:07   ar220.cc

5)VRP升级

<R1>startup system-software ar220.cc

11.从tftp服务器更新VRP系统

1)网络拓扑

图片[3]-3.2 系统管理-大赛人网
图3-3 tftp网络拓扑

2)设置clould

图片[4]-3.2 系统管理-大赛人网
图3-4 端口类型:添加GE
图片[5]-3.2 系统管理-大赛人网
图3-5 绑定信息:NPcap 添加
图片[6]-3.2 系统管理-大赛人网
图3-6 端口类型 添加
图片[7]-3.2 系统管理-大赛人网
图3-7 查看本机 Npcap

3)设置tftp服务器

图片[8]-3.2 系统管理-大赛人网
图3-8 设置tftp服务器

4)R1配置G0/0/1端口

<R1>system-view 
[R1]interface GigabitEthernet 0/0/1 
[R1-GigabitEthernet0/0/1]ip address 172.16.1.254 255.255.255.0 
[R1-GigabitEthernet0/0/1]ping 172.16.1.1
   --- 172.16.1.1 ping statistics ---
    4 packet(s) transmitted
    4 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/30/90 ms

5)登录tftp服务器并下载VRP

<R1>tftp 172.16.1.1 get ar220.cc
Info: Transfer file in binary mode.
Downloading the file from the remote TFTP server. Please wait.../
  139306 bytes received in 2 seconds.
TFTP: Downloading the file successfully.
图片[9]-3.2 系统管理-大赛人网
图3-9 tftp服务器下载

6)VRP升级

<R1>startup system-software ar220.cc

12.设备重启

<R1>reboot
Info: The system is comparing the configuration, please wait.
Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]:n
System will reboot! Continue ? [y/n]:y
Info: system is rebooting ,please wait...
N 不保存
Y 确认重启
© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容