FTP方式升级H3C交换机
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FTP方式升级H3C交换机相关的知识,希望对你有一定的参考价值。
1、设好交换机的IP地址和笔记本的IP地址,在同一个网段内确保能互PING能通
2、准备升级文件,并开启设定好FTP服务器端(3CDaemon软件),设定好账号 ftp / 123456,选择好升级文件存放路径
S5130S_EI-CMW710-R6329.ipe
3、上传固件到交换机
<h3cb>ftp 192.168.1.1
User (192.168.1.1:(none)): ftp
Password: 123456
查看ftp的命令
ftp> ?
Commands may be abbreviated. Commands are:
append delete ls quit rmdir
ascii debug mkdir reget status
binary dir newer rstatus system
bye disconnect open rhelp user
cd get passive rename verbose
cdup help put reset ?
close lcd pwd restart
ftp>
列出文件名
ftp> ls
drwxrwxrwx 1 owner group 0 Jun 30 16:20 .
drwxrwxrwx 1 owner group 0 Jun 30 16:20 ..
-rwxrwxrwx 1 owner group 200 Jun 30 16:20 MD5-S5130S_EI-CMW710-R6329.txt
-rwxrwxrwx 1 owner group 708608 Jun 30 16:20 s5130s_ei-cmw710-freeradius-r6329.bin
-rwxrwxrwx 1 owner group 1796096 Jun 30 16:20 s5130s_ei-cmw710-grpcpkg-r6329.bin
-rwxrwxrwx 1 owner group 56458240 Jun 30 16:20 S5130S_EI-CMW710-R6329.ipe
-rwxrwxrwx 1 owner group 57750958 Jun 30 16:18 S5130S_EI-CMW710-R6329.zip
下载固件到交换机
ftp> get S5130S_EI-CMW710-R6329.ipe
56458240 bytes received in 270.513 seconds (203.82 Kbytes/s)
ftp>
ftp> quit
221
查看交换机上的文件
<h3cb>dir
Directory of flash:
0 -rw- 56458240 Jan 01 2013 00:27:17 S5130S_EI-CMW710-R6329.ipe
1 -rw- 220684 Jan 01 2013 00:00:00 defaultfile.zip
2 drw- - Jan 01 2013 00:00:15 diagfile
3 -rw- 735 Jan 01 2013 00:03:24 hostkey
4 -rw- 1524 Jan 01 2013 00:26:52 ifindex.dat
5 drw- - Jan 01 2013 00:00:16 license
6 drw- - Jan 01 2013 00:16:00 logfile
7 drw- - Jan 01 2013 00:00:29 pki
8 -rw- 6146048 Jan 01 2013 00:00:00 s5130s_ei-cmw710-boot-r6318p01.bin
9 -rw- 49709056 Jan 01 2013 00:00:00 s5130s_ei-cmw710-system-r6318p01.bin
10 drw- - Jan 01 2013 00:00:15 seclog
11 -rw- 591 Jan 01 2013 00:03:24 serverkey
12 -rw- 3805 Jan 01 2013 00:26:53 startup.cfg
13 -rw- 131214 Jan 01 2013 00:26:54 startup.mdb
14 drw- - Jan 01 2013 00:00:42 versionInfo
251904 KB total (140632 KB free)
4、指定从新固件文件引导
<h3cb>boot-loader file flash:/S5130S_EI-CMW710-R6329.ipe all main
Verifying the file flash:/S5130S_EI-CMW710-R6329.ipe on slot 2.....Done.
H3C S5130S-52S-EI images in IPE:
s5130s_ei-cmw710-boot-r6329.bin
s5130s_ei-cmw710-system-r6329.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to slot 2.
Decompressing file s5130s_ei-cmw710-system-r6329.bin to flash:/s5130s_ei-cmw710-system-r6329.bin............................................Done.
Decompressing file s5130s_ei-cmw710-boot-r6329.bin to flash:/s5130s_ei-cmw710-boot-r6329.bin.......Done.
Verifying the file flash:/s5130s_ei-cmw710-boot-r6329.bin on slot 2...Done.
Verifying the file flash:/s5130s_ei-cmw710-system-r6329.bin on slot 2.....Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 2.
Decompression completed.
Do you want to delete flash:/S5130S_EI-CMW710-R6329.ipe now? [Y/N]:y
列出引导解包后的文件列表
<h3cb>dir
Directory of flash:
0 -rw- 220684 Jan 01 2013 00:00:00 defaultfile.zip
1 drw- - Jan 01 2013 00:00:15 diagfile
2 -rw- 735 Jan 01 2013 00:03:24 hostkey
3 -rw- 1524 Jan 01 2013 00:26:52 ifindex.dat
4 drw- - Jan 01 2013 00:00:16 license
5 drw- - Jan 01 2013 00:16:00 logfile
6 drw- - Jan 01 2013 00:00:29 pki
7 -rw- 6146048 Jan 01 2013 00:00:00 s5130s_ei-cmw710-boot-r6318p01.bin
8 -rw- 6144000 Jan 01 2013 00:42:28 s5130s_ei-cmw710-boot-r6329.bin
9 -rw- 49709056 Jan 01 2013 00:00:00 s5130s_ei-cmw710-system-r6318p01.bin
10 -rw- 50307072 Jan 01 2013 00:42:23 s5130s_ei-cmw710-system-r6329.bin
11 drw- - Jan 01 2013 00:00:15 seclog
12 -rw- 591 Jan 01 2013 00:03:24 serverkey
13 -rw- 3805 Jan 01 2013 00:26:53 startup.cfg
14 -rw- 131214 Jan 01 2013 00:26:54 startup.mdb
15 drw- - Jan 01 2013 00:00:42 versionInfo
251904 KB total (138588 KB free)
<h3cb>
5、重启升级完成,可以清理下固件文件(删除老固件文件等)
<h3cb>reboot
以上是关于FTP方式升级H3C交换机的主要内容,如果未能解决你的问题,请参考以下文章