通过FTP 实现远程加载
用户在本地计算机上运行ftp server,注意配置了用户名和密码,以及正确的文件所在目录(假设ip 地址为10.10.110.1)。同时用户通过telnet 远程登录到交换机上,利用ftp 将主机程序传送到交换机上。
假设主机程序为switch.app,bootrom 程序为switch.btm。在用户通过telnet 远程登录到交换机上后,进行下列操作。
第一步:通过ftp 将软件下载到交换机上。
[quidway] ftp 10.10.110.1
trying ...
press ctrl+k to abort
connected.
220 wftpd 2.0 service (by texas imperial software) ready for new user
user(none):lyt
331 give me your password, please
password:
230 logged in successfully
[ftp] get switch.app switch.app
[ftp] get switch.btm switch.btm
[ftp] bye
第二步,加载bootrom。
[quidway] boot bootrom switch.btm
please wait ...
bootrom is updated!
第三步,加载主机软件。
[quidway] boot boot-loader switch.app
[quidway] display boot-loader
the app to boot at the next time is: flash:/switch.app
[quidway] reboot(重启前请确认其他配置是否保存,防止重启后造成配置丢失)
通过以上操作即可完成bootrom 和主机软件的加载。需要注意的是,加载主机软件必须通过reboot 命令重起交换机才能使加载成功。如果flash memory 空间不够,可以首先完成bootrom 的加载,然后删除flash 中的部分程序文件(建议删除已不使用的某主机程序),再将加载用的主机程序通过ftp 上载到交换机来完成主机程序的加载。注意,在加载过程中不可断电。