S2000-EA系列交换机利用设备管理命令实现远程升级交换机主机软件功能的配置
一、 组网需求:
用户通过telnet远程登录到交换机上,从FTP Server上下载交换机的应用程序到交换机的Flash,通过命令行实现交换机的远程升级。
交换机作为FTP Client,远端的PC作为FTP Server,在FTP Server上作了如下配置:
(1)配置了一个FTP用户,用户名为switch,密码为hello,授权用户switch对PC机上Switch目录拥有读写权限。
(2)交换机上的一个VLAN接口的IP地址为1.1.1.1,PC的IP地址为2.2.2.2,交换机和PC之间路由可达。
交换机的主机软件switch.bin和BOOTROM文件boot.btm保存在PC的Switch目录中。交换机通过FTP从远端的FTP Server上下载switch.bin和boot.btm。
二、 组网图:
三、 配置步骤:
(1) 在PC上配置FTP Server的相关参数:配置了一个FTP用户,用户名为switch,密码为hello,授权用户switch对PC机上Switch目录拥有读写权限。此处不详细说明。
(2) 交换机上的配置
# 交换机上已经配置了telnet用户的用户名为user,级别为3级用户,口令为hello,验证方式为需要进行用户名和口令的验证。
# 用户在PC上执行telnet命令登录到交换机上。
# 在用户视图下输入命令进行FTP连接,输入正确用户名和密码登录到FTP Server。
<Sysname> ftp 2.2.2.2
Trying ...
Press CTRL+K to abort
Connected.
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User(none):switch
331 Give me your password, please
Password:
230 Logged in successfully
[ftp]
# 进入FTP Server的授权路径
[ftp] cd switch
# 执行get命令将FTP Server上的文件switch.bin和boot.btm下载到交换机的Flash。
[ftp] get switch.bin
[ftp] get boot.btm
# 执行quit命令中断FTP连接,退回到用户视图下。
[ftp] quit
<Sysname>
# 升级BOOTROM。
<Sysname> boot bootrom boot.btm
This will update BootRom file on unit 1. Continue? [Y/N] y
Upgrading BOOTROM, please wait...
Upgrade BOOTROM succeeded!
# 指定下载的程序为下次启动时的主机软件,然后重启交换机,实现交换机主机软件的升级。
<Sysname>boot boot-loader switch.bin
The specified file will be booted next time on unit 1!
<Sysname>display boot-loader
Unit 1:
The current boot app is: switch.bin
The main boot app is: switch.bin
The backup boot app is:
# 重启交换机,实现交换机BOOTROM软件、主机软件的升级。
<Sysname> reboot
Start to check configuration with next startup configuration file,
please wait......
This command will reboot the device. Current configuration may be lost in next startup if you continue. Continue? [Y/N] y
This will reboot device. Continue? [Y/N] y
四、 配置关键点:
无
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作