一条命令搞定Cisco9400系列交换机IOS升级

1.交换机IOS镜像导入

  1. 配置交换机Int Vlan 1的IP地址,使其地址与电脑保持同一网段。至此,电脑与交换机网络连通。
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 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/2 ms
  1. 在交换机系统视图下使用以下命令进行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): !!!!!
  1. 通过命令查看我们导入的IOS镜像
Switch#dir flash:
Directory of flash:/

221185  drwx             4096  Aug 28 2023 07:04:53 +00:00  .installer
155675  -rw-        805827585  Aug 28 2023 07:04:28 +00:00  cat9k_iosxe.16.12.04.SPA.bin
229379  drwx             4096  Aug 28 2023 06:58:32 +00:00  pnp-tech
155651  -rw-          2097152  Aug 28 2023 06:57:55 +00:00  nvram_config_bkup
155650  -rw-          2097152  Aug 28 2023 06:57:55 +00:00  nvram_config
155673  -rw-                0  Aug 28 2023 06:57:49 +00:00  dope_hist
155671  -rw-            16996  Aug 28 2023 06:57:49 +00:00  rdope_out.txt
155672  -rw-               89  Aug 28 2023 06:57:48 +00:00  rdope.log
155665  -rw-          5242880  Aug 28 2023 06:57:17 +00:00  ssd
155668  -rwx             2049  Aug 28 2023 06:56:54 +00:00  svl_ipc.tcl
155667  -rw-           134935  Aug 28 2023 06:56:54 +00:00  memleak.tcl
155666  -rw-              382  Aug 28 2023 06:56:47 +00:00  boothelper.log
303137  drwx             4096  Aug 28 2023 06:56:46 +00:00  dc_profile_dir
155664  -rw-              185  Aug 28 2023 06:56:34 +00:00  bootloader_evt_handle.log
262145  drwx             4096   Sep 6 2022 03:24:42 +00:00  .prst_sync
221187  drwx             4096   Sep 6 2022 03:13:41 +00:00  .dbpersist
155676  -rw-             1440   Sep 6 2022 03:05:29 +00:00  2022_09_06T03_05_25.305168.xml
229377  drwx             4096   Sep 6 2022 02:57:50 +00:00  core
          

2.交换机命令行安装升级

  1. 进行交换机镜像升级
Switch#install add file flash:cat9k_iosxe.16.12.04.SPA.bin activate commit
install_add_activate_commit: START Mon Aug 28 07:07:55 UTC 2023

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

  1. 查看升级后版本
Switch#show version 
Cisco IOS XE Software, Version 17.03.04
Cisco IOS Software [Amsterdam], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 17.3.4, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2021 by Cisco Systems, Inc.
Compiled Sat 03-Jul-21 01: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
with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
GPL code under the terms of GPL 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-XE ROMMON
BOOTLDR: System Bootstrap, Version 17.3.1r[FC2], RELEASE SOFTWARE (P)

Switch uptime is 4 minutes
Uptime for this control processor is 6 minutes
System returned to ROM by LocalSoft
System image file is "bootflash:packages.conf"
Last reload reason: LocalSoft

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值