H3C路由器SR6608设备通过pc远程升级,pc和设备通过vpn实例进行连接,升级步骤以及查看设备下次启动项,以及升级全部步骤。
H3C路由器SR6608设备通过pc远程升级,pc和设备通过vpn实例进行连接,升级步骤以及查看设备下次启动项,以及升级全部步骤。
(0)
路由器作为TFTP Client,访问TFTP文件服务器的制定路径,完成启动文件的备份及升级操作,具体操作步骤如下:
1. 备份当前启动文件和配置文件
(1) 在命令行配置界面的任意视图下,执行save命令保存路由器当前配置信息:
<Sysname> save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
<Sysname>
(2) 在命令行配置界面的用户视图下,执行dir命令查看路由器当前的文件系统,确认启动文件及配置文件名,以及Flash的剩余空间,保证Flash有足够空间放入新的启动文件:
<Sysname> dir
Directory of flash:
0 drw- - Aug 12 2013 16:38:21 diagfile
1 -rw- 895 Aug 20 2013 09:33:00 ifindex.dat
2 drw- - Aug 12 2013 16:38:26 license
3 drw- - Aug 13 2013 09:51:02 logfile
4 drw- - Aug 12 2013 16:38:21 seclog
5 -rw- 9427968 Aug 12 2013 16:34:56 sr6600x-cmw710-boot-r7103p01.bin
6 -rw- 107847680 Aug 12 2013 16:35:23 sr6600x-cmw710-system-r7103p01.bin
7 -rw- 3740 Aug 20 2013 09:33:01 startup.cfg
8 -rw- 114861 Aug 20 2013 09:33:01 startup.mdb
524288 KB total (407549 KB free)
<Sysname>
![]()
· 使用delete /unreserved file-url命令删除文件,被删除的文件将被彻底删除,不能再恢复。
· 使用delete file-url命令删除文件,被删除的文件被保存在回收站中,仍会占用存储空间。如果要彻底删除回收站中的某个废弃文件,必须在该文件的原目录下执行reset recycle-bin命令,清空回收站。
(3) 在命令行配置界面的用户视图下,执行tftp put命令将配置文件startup.cfg备份到TFTP文件服务器上:
<Sysname> tftp 192.168.2.80 put startup.cfg
Press CTRL+C to abort.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17683 0 0 100 17683 0 279k --:--:-- --:--:-- --:--:-- 297k
<Sysname>
2. 升级启动文件
(1) 在命令行配置界面的用户视图下,执行tftp get命令将启动文件SR6604X.ipe导入到路由器的Flash中:
<Sysname> tftp 192.168.2.80 get SR6604X.ipe
Press CTRL+C to abort.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 111M 0 111M 0 0 314k 0 --:--:-- 0:06:04 --:--:-- 318k
<Sysname>
(2) 在命令行配置界面的用户视图下,执行boot-loader命令设置路由器下次启动使用的启动文件为SR6604X.ipe,并指定启动文件类型为main:
<Sysname> boot-loader file flash:/SR6604X.ipe slot 0 main
Verifying the IPE file and the images..............Done.
H3C SR6604X images in IPE:
SR6600X-CMW710-BOOT-R7103P02.bin
SR6600X-CMW710-SYSTEM-R7103P02.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to slot 0.
Decompressing file SR6600X-CMW710-BOOT-R7103P02.bin to flash:/SR6600X-CMW710-BOO
T-R7103P02.bin.......Done.
Decompressing file SR6600X-CMW710-SYSTEM-R7103P02.bin to flash:/SR6600X-CMW710-S
YSTEM-R7103P02.bin..............................................................
........Done.
Decompression completed.
You are recommended to delete the .ipe file after you set startup software image
s for all slots.
Do you want to delete flash:/SR6604X.ipe now? [Y/N]:y
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on slot 0.
<Sysname>
(3) 在命令行配置界面的用户视图下,执行display boot-loader命令查看设备的启动程序文件信息:
<Sysname> display boot-loader
Software images on slot 0:
Current software images:
flash:/SR6600X-CMW710-BOOT-R7103P01.bin
flash:/SR6600X-CMW710-SYSTEM-R7103P01.bin
Main startup software images:
flash:/SR6600X-CMW710-BOOT-R7103P02.bin
flash:/SR6600X-CMW710-SYSTEM-R7103P02.bin
Backup startup software images:
None
如上显示信息中,下一次启动的程序文件已经设置为SR6604X.ipe解压后的对应的.bin文件。
(4) 在命令行配置界面的用户视图下,执行reboot命令重启路由器:
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait..
.......DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
%Aug 20 10:44:06:159 2013 H3C DEV/5/SYSTEM_REBOOT: System is rebooting now.
System is starting...
(5) 路由器重启后,通过display version命令查看路由器的启动文件版本信息是否与升级的启动文件一致。
<Sysname> display version
H3C Comware Software, Version 7.1.054, Release 7103P02
Copyright (c) 2004-2017 New H3C Technologies Co., Ltd. All rights reserved.
H3C SR6604X uptime is 0 weeks, 0 days, 0 hours, 3 minutes
Last reboot reason : User reboot
Boot image: flash:/SR6600X-CMW710-BOOT-R7103P02.bin
Boot image version: 7.1.054, Release 7103P02
Compiled Apr 08 2015 18:05:52
System image: flash:/SR6600X-CMW710-SYSTEM-R7103P02.bin
System image version: 7.1.054, Release 7103P02
Compiled Apr 08 2015 18:05:52
……略……
<Sysname>
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
收到,谢谢老师