升级或降级交换机系统

一、将系统软件或者是补丁文件上传至设备

1)将交换机配置为FTP服务器,PC配置为FTP客户端(通过交换机的console口登录到设备上进行配置)在Switch上创建VLAN 10,并配置VLAN 10的接口IP地址为10.1.1.2/24

<Quidway> system-view
[Quidway] vlan 10
[Quidway-vlan10] quit
[Quidway] interface gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1] port hybrid pvid vlan 10
[Quidway-GigabitEthernet0/0/1] port hybrid untagged vlan 10
[Quidway-GigabitEthernet0/0/1] quit
[Quidway] interface vlanif 10
[Quidway-Vlanif10] ip address 10.1.1.2 24

(2)在Switch上启动FTP服务,并配置FTP用户名u1,口令ftppwd

[Quidway] ftp server enable
[Quidway] aaa
[Quidway-aaa] local-user u1 password cipher ftppwd
[Quidway-aaa] local-user u1 service-type ftp
[Quidway-aaa] local-user u1 privilege level 15
[Quidway-aaa] local-user u1 ftp-directory flash:/
[Quidway-aaa] return

(3)在PC机上,向Switch发起FTP连接,输入用户名u1和口令ftppwd

PC机上的FTP客户端以Window XP操作系统为例说明。
C:\WINDOWS\Desktop> ftp 10.1.1.2
Connected to 10.1.1.2.
220 FTP service ready.
User (10.1.1.1:(none)): u1
331 Password required for u1
Password:
230 User logged in.
ftp>

(4)在PC机上,配置二进制传输格式和PC机本地目录

ftp> binary
200 Type set to I.
ftp> lcd c:\temp
Local directory now C:\temp.

(5)在PC上,向交换机上传文件,一般交换机的系统文件是.CC结尾;补丁文件是.pat结尾。如升级系统文件为devicesoft.cc,上传补丁文件为patch.pat

ftp> put devicesoft.cc 这是上传系统文件,上传补丁文件的方式是一致的
200 Port command okay.
150 Opening BINARY mode data connection for devicesoft.cc.
上传补丁文件

ftp> put patch.pat
200 Port command okay.
150 Opening BINARY mode data connection for patch.pat.

(6)退出ftp连接

ftp> quit
C:\WINDOWS\Desktop>

二、这时已经将文件上传至设备,在交换机上通过命令查看文件是否存在

<Quidway>dir 查看对应是否有devicesoft.cc和patch.pat两个文件

将上传的系统软件设置为设备的下次启动系统软件。将devicesoft.cc设置为设备的下次启动软件。

<Quidway> startup system-software devicesoft.cc重启设备,使设置的系统软件生效。

如果是补丁文件,则是加载上传的补丁

<Quidway> patch load patch.pat all run

三、重启设备,如果是升级系统文件,则一定需要重启:如果是补丁文件,则冷补丁需要重启 ,热补丁不需要重启。有SPH标志为为热补丁,SPC为冷补丁

<HUAWEI> reboot
Warning: The configuration has been modified, and it will be saved to the next s
tartup saved-configuration file flash:/vrpcfg.zip. Continue? [Y/N]:y
Info: If want to reboot with saving diagnostic information, input ‘N’ and then e
xecute ‘reboot save diagnostic-information’.
System will reboot! Continue?[Y/N]:y

One Comment

Add a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注