1、操作命令:
CAT9300(config)#ip tftp blocksize 8192
CAT9300(config)#install add file tftp://10.1.100.37/cat9k_iosxe.16.06.05.SPA.bin activate
![](https://img2020.cnblogs.com/i-beta/1437298/202003/1437298-20200324204941694-1307638451.png)
2、查看目前的版本和安装方式:show version、dir
可以看到当前的版本是16.5.1a,安装方式是INSTALL mode
![](https://img2020.cnblogs.com/i-beta/1437298/202003/1437298-20200324204956824-1315857451.png)
目前需要升级的16.6.5版本已经上传到了设备的flash中
![](https://img2020.cnblogs.com/i-beta/1437298/202003/1437298-20200324205013442-2024313266.png)
3、安装镜像:request platform software package install switch all file flash:/cat9k_iosxe.16.06.05.SPA.bin
![](https://img2020.cnblogs.com/i-beta/1437298/202003/1437298-20200324205027206-678814782.png)
过程信息
![](https://img2020.cnblogs.com/i-beta/1437298/202003/1437298-20200324205038136-344904653.png)
4、show boot和reload
通过show boot命令来查看该设备目前的启动路径是什么,可以看到当前的启动变量不存在,下次启动的启动变量是flash:packages.conf
![](https://img2020.cnblogs.com/i-beta/1437298/202003/1437298-20200324205052690-601699837.png)
5、重启完毕后,show ver查看
如上通过reload命令重启之后,待设备重启完成之后,通过show version查看目前的设备版本
![](https://img2020.cnblogs.com/i-beta/1437298/202003/1437298-20200324205104907-715713680.png)