如图5-8所示,ftp server与配置计算机是同一台计算机。用户通过telnet远程登录到交换机上,执行ftp命令,从远程的ftp server上(假定ip地址为10.1.1.1)下载主机程序s5100.bin和bootrom程序s5100.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):abc
331 give me your password, please
password:
230 logged in successfully
[ftp] get s5100.bin
[ftp] get s5100.btm
[ftp] bye
第二步:在交换机上升级bootrom。
[h3c] boot bootrom s5100.btm
please wait ...
bootrom is updated!
第三步:在交换机上升级主机软件。
[h3c] boot boot-loader s5100.bin
[h3c] display boot-loader
unit 1:
the current boot app is: s5100.bin
the main boot app is: s5100.bin
the backup boot app is:
第四步:重新启动交换机。
[h3c] reboot
重起前请确认其他配置是否保存,防止重启后造成配置信息丢失。
通过以上操作即可完成bootrom和主机软件的加载。
需要注意的是:
1 加载主机软件必须通过reboot命令重起交换机后才能使加载成功。
2 如果flash空间不够,可以先删除flash中的无用文件,再进行软件的下载。
3 在加载过程中不可断电。