1, IOS版本

本次替换必须使用统一的IOS版本:cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin,
下载后IOS 大小为:322,991,728 bytes,如下载后字节数错误请重新下载。

2, U盘灌入IOS

将IOS复制到U盘,插入U盘到3850,有些U盘无法识别,最好多拿两个U盘,建议采用文件系统为FAT32的U盘;
使用copy usbflash0: flash:灌入IOS:
Switch# copy usbflash0: flash:
Source filename []? cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin
Destination filename [cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin]?
Copy in progress…CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC…….
322991728 bytes copied in 83.140 secs (3884914 bytes/sec)

Copy完后注意检查字节数是否正确,并利用交换机自带MD5校验与官网 MD5值对比:
官网IOS MD5值如下:
MD5 Checksum: 71d48b44bb5ec13d4b4d47d8c3dc9dd7
交换机自带MD5校验命令如下:(时间稍长)
Switch #verify /md5 flash:cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin
…………………………………………………………………………………………………………………………………………………………………………….Done!
verify /md5 (flash:cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin) = 71d48b44bb5ec13d4b4d47d8c3dc9dd7
两者对比相同后才可升级IOS;如不一致,请重新下载,灌入,校验IOS。

3, 管理口灌入IOS

如无法使用U盘,请使用FTP灌入IOS,此处3850-12S利用管理口(RJ45)灌入IOS,灌入方式如下:
配置电脑与G0/0(管理口) 在同一网段,确保通信正常:
Switch#ping vrf Mgmt-vrf 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/202/1000 ms

4,使用3CD软件灌入IOS:

Switch(config)#ip ftp username cisco
Switch(config)#ip ftp password cisco123456
Switch(config)#ip ftp source-interface GigabitEthernet 0/0
Switch#copy ftp: flash:
Address or name of remote host [1.1.1.1]?
Source filename [cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin]?
Destination filename [cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin]?
Accessing ftp://1.1.1.1/cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin…!!!!!!!!!!!
*May 20 04:01:02.234: Loading cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 322991728/4096 bytes]

322991728 bytes copied in 116.640 secs (2769133 bytes/sec)

强烈建议使用U盘灌入IOS,降低灌入错误率,减少灌入时间。

5, 升级IOS

  1. 灌入IOSMD5校验完成后,输入以下命令:<br />boot system switch all flash:cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin<br />boot system flash cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin<br /> 保存:<br /> wr<br /> 查看下次启动时的IOS:<br /> Switch#show boot<br /> ---------------------------<br /> Switch 1<br /> ---------------------------<br /> Current Boot Variables:<br /> BOOT variable = flash:cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin;<br /> <br /> Boot Variables on next reload:<br /> BOOT variable = flash:cat3k_caa-universalk9.SPA.03.07.03.E.152-3.E3.bin;<br /> Manual Boot = no<br /> Enable Break = no<br /> 如上述next reload 为3.7.3,universalk9版本,重启交换机<br /> Reload