Switch(config-if)#do ping 10.1.1.254
Type escape sequence to abort.
Sending 5,100-byte ICMP Echos to 10.1.1.254, timeout is 2seconds:.!!!!
Success rate is 80percent(4/5), round-trip min/avg/max =1/1/2 ms
在交换机系统视图下使用以下命令进行IOS镜像拉取 下面展示一些 内联代码片。
witch#copy tftp: flash:
Address or name of remote host []?10.1.1.254
Source filename []? cat9k_iosxe.16.12.04.SPA.bin
Destination filename [cat9k_iosxe.16.12.04.SPA.bin]?
Loading cat9k_iosxe.16.12.04.SPA.bin from 10.1.1.254(via Vlan1):!!!!!
通过命令查看我们导入的IOS镜像
Switch#dir flash:
Directory offlash:/221185 drwx 4096 Aug 28202307:04:53+00:00.installer
155675-rw-805827585 Aug 28202307:04:28+00:00 cat9k_iosxe.16.12.04.SPA.bin
229379 drwx 4096 Aug 28202306:58:32+00:00 pnp-tech
155651-rw-2097152 Aug 28202306:57:55+00:00 nvram_config_bkup
155650-rw-2097152 Aug 28202306:57:55+00:00 nvram_config
155673-rw-0 Aug 28202306:57:49+00:00 dope_hist
155671-rw-16996 Aug 28202306:57:49+00:00 rdope_out.txt
155672-rw-89 Aug 28202306:57:48+00:00 rdope.log
155665-rw-5242880 Aug 28202306:57:17+00:00 ssd
155668-rwx 2049 Aug 28202306:56:54+00:00 svl_ipc.tcl
155667-rw-134935 Aug 28202306:56:54+00:00 memleak.tcl
155666-rw-382 Aug 28202306:56:47+00:00 boothelper.log
303137 drwx 4096 Aug 28202306:56:46+00:00 dc_profile_dir
155664-rw-185 Aug 28202306:56:34+00:00 bootloader_evt_handle.log
262145 drwx 4096 Sep 6202203:24:42+00:00.prst_sync
221187 drwx 4096 Sep 6202203:13:41+00:00.dbpersist
155676-rw-1440 Sep 6202203:05:29+00:00 2022_09_06T03_05_25.305168.xml
229377 drwx 4096 Sep 6202202:57:50+00:00 core
2.交换机命令行安装升级
进行交换机镜像升级
Switch#install add file flash:cat9k_iosxe.16.12.04.SPA.bin activate commit
install_add_activate_commit:START Mon Aug 2807:07:55UTC2023
System configuration has been modified.
Press Yes(y) to save the configuration and proceed.
Press No(n)for proceeding without saving the configuration.
Press Quit(q) to exit, you may save configuration and re-enter the command.[y/n/q]yBuilding configuration...[OK]Modified configuration has been saved
查看升级后版本
Switch#show version
Cisco IOSXE Software, Version 17.03.04
Cisco IOS Software [Amsterdam], Catalyst L3 Switch Software(CAT9K_IOSXE), Version 17.3.4,RELEASESOFTWARE(fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright(c)1986-2021 by Cisco Systems, Inc.
Compiled Sat 03-Jul-2101:55 by mcpre
Cisco IOS-XE software,Copyright(c)2005-2021 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
withABSOLUTELYNOWARRANTY. You can redistribute and/or modify such
GPL code under the terms ofGPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.ROM:IOS-XEROMMONBOOTLDR: System Bootstrap, Version 17.3.1r[FC2],RELEASESOFTWARE(P)
Switch uptime is 4 minutes
Uptime forthis control processor is 6 minutes
System returned to ROM by LocalSoft
System image file is "bootflash:packages.conf"
Last reload reason: LocalSoft