如图5-8所示,ftp server与配置计算机是同一台计算机。用户通过telnet远程登录到交换机上,执行ftp命令,从远程的ftp server上(假定ip地址为10.1.1.1)下载主机程序s5500-si.bin和bootrom程序s5500-si.btm。

图5-8 通过ftp实现远程加载
第一步:通过ftp的相关命令将软件下载到本地交换机上。[h3c] ftp 10.1.1.1
trying ...
press ctrl+k to abort
connected.
220 wftpd 2.0 service (by texas imperial software) ready for new user
user(none):s5500
331 give me your password, please
password:
230 logged in successfully
[ftp] get s5500-si.bin
[ftp] get s5500-si.btm
[ftp] bye
第二步:在交换机上升级bootrom。
[h3c] bootrom update file s5500-si.btm
this command will update bootrom file, continue? [y/n]y
updating bootrom, please wait...
upgrade bootrom succeeded!
第三步:在交换机上升级主机软件。
[h3c] boot-loader file s5500-si.bin
[h3c] display boot-loader
the current boot app is: flash:/ s5500-si.bin
the main boot app is: flash:/ s5500-si.bin
the backup boot app is: flash:/ s5500-sibak.bin
第四步:重新启动交换机。
[h3c] reboot
重起前请确认其他配置是否保存,防止重启后造成配置信息丢失。
通过以上操作即可完成bootrom和主机软件的加载。
需要注意的是:
1 加载主机软件必须通过reboot命令重起交换机后才能使加载成功。
2 如果flash空间不够,可以先删除flash中的无用文件,再进行软件的下载。
3 在加载过程中不可断电。