(전문) IT 기술/Cisco

[Step-by-Step] "시스코 스위치 OS 업그레이드" by FTP 서버

생활IT 2025. 1. 13. 11:19
반응형

안녕하세요~

 

오늘은 FTP 서버를 사용해서 "시스코 스위치 OS 업그레이드" 하는 방법을 올리려 합니다. 

 

보통 "TFTP 서버"를 많이 사용하실텐데요. 어느 방법이든 OS image 파일을 스위치로 업로드만 하시면 아주 간단히 진행할 수 있습니다.

 

Step 1. FTP 서버 준비 

(저는 알FTP 서버를 사용했습니다.)

 

위 설정 상으로는 "C:\"에 OS image를 올려두시면 되겠죠?

 

Step 2. 스위치에서 OS 다운로드

OA-SW#copy ftp://admin:admin@10.70.3.198/cat9k_iosxe_npe.17.12.04.SPA.bin flash:

Destination filename [cat9k_iosxe_npe.17.12.04.SPA.bin]?

Accessing ftp://*:*@10.70.3.198/cat9k_iosxe_npe.17.12.04.SPA.bin
...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

Step 3. 파일 상태 확인

OA-SW#dir
Directory of flash:/
262145  drwx             4096   Dec 6 2024 11:01:00 -04:00  .installer
196639  -rw-       1303572959   Dec 6 2024 11:00:39 -04:00  cat9k_iosxe_npe.17.12.04.SPA.bin
196625  -rw-          5242880   Dec 6 2024 06:35:21 -04:00  ssd
196611  -rw-          2097152  Nov 25 2024 09:59:08 -04:00  nvram_config_bkup
196610  -rw-          2097152  Nov 25 2024 09:59:08 -04:00  nvram_config
196635  -rw-                0  Aug 30 2024 06:25:54 -04:00  dope_hist
196633  -rw-            16999  Aug 30 2024 06:25:54 -04:00  rdope_out.txt
196634  -rw-               89  Aug 30 2024 06:25:53 -04:00  rdope.log

 

"cat9k_iosxe_npe.17.12.04.SPA.bin" 파일이 업로드 되어 있는 것을 확인할 수 있습니다.

 

Step 4. 신규 Image 설치

OA-SW#install add file flash:cat9k_iosxe_npe.17.12.04.SPA.bin activate commit

install_add_activate_commit: START Fri Dec  6 11:17:06 GMT 2024
install_add_activate_commit: Adding PACKAGE
install_add_activate_commit: Checking whether new add is allowed ....
--- Starting initial file syncing ---
Info: Finished copying flash:cat9k_iosxe_npe.17.12.04.SPA.bin to the selected switch(es)
Finished initial file syncing
--- Starting Add ---
Performing Add on all members
  [1] Add package(s) on switch 1
  [1] Finished Add on switch 1
Checking status of Add on [1]
Add: Passed on [1]
Finished Add
Image added. Version: 17.12.04.0.4826
install_add_activate_commit: Activating PACKAGE
gzip: initramfs.cpio.gz: decompression OK, trailing garbage ignored
Following packages shall be activated:
/flash/cat9k-wlc.17.12.04.SPA.pkg
/flash/cat9k-webui.17.12.04.SPA.pkg
/flash/cat9k-srdriver.17.12.04.SPA.pkg
/flash/cat9k-sipspa.17.12.04.SPA.pkg

 

Step 5. 스위치 자동 Restart

This operation may require a reload of the system. Do you want to proceed? [y/n] y
--- Starting Activate ---
Performing Activate on all members
  [1] Activate package(s) on switch 1
    --- Starting list of software package changes ---
    Old files list:
      Modified cat9k-cc_srdriver.17.06.04.SPA.pkg
      Modified cat9k-espbase.17.06.04.SPA.pkg
      Modified cat9k-guestshell.17.06.04.SPA.pkg
.
.
.
.
Send model notification for install_add_activate_commit before reload
[1]: Performing Upgrade_Service
300+0 records in
300+0 records out
307200 bytes (307 kB, 300 KiB) copied, 0.322688 s, 952 kB/s
16128+0 records in
16128+0 records out
8257536 bytes (8.3 MB, 7.9 MiB) copied, 8.60935 s, 959 kB/s
/usr/sbin/boot_verify_package: /ucode0/cat9k-select_srdriver.SPA.pkg: Digital Signature Verified
/usr/sbin/boot_verify_package: updatepcr8d unavailable, KGV data not extended to PCR8 - No such file or directory.
/usr/sbin/boot_verify_package: INFO: Collected KGV data for package cat9k-select_srdriver.SPA.pkg.
  SUCCESS: Upgrade_Service finished

Install will reload the system now!
SUCCESS: install_add_activate_commit  Fri Dec  6 11:31:40 GMT 2024
  PID TTY          TIME CMD

 

Step 6. 스위치 재시작 후 OS Version 확인, 완료!!

OA-SW>show version
Cisco IOS XE Software, Version 17.12.04
Cisco IOS Software [Dublin], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 17.12.4, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2024 by Cisco Systems, Inc.
Compiled Tue 23-Jul-24 09:57 by mcpre
.
.
cisco C9300L-48T-4X (X86) processor with 1310692K/6147K bytes of memory.
Processor board ID ----------
2 Virtual Ethernet interfaces
48 Gigabit Ethernet interfaces
4 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
8388608K bytes of physical memory.
1638400K bytes of Crash Files at crashinfo:.
11264000K bytes of Flash at flash:.
Base Ethernet MAC Address          : 4c:ec:0f:19:e1:00
Motherboard Assembly Number        : 73-102169-04
Motherboard Serial Number          : --------------
Model Revision Number              : D0
Motherboard Revision Number        : C0
Model Number                       : C9300L-48T-4X
System Serial Number               : -------------
CLEI Code Number                   : INM
Switch Ports Model              SW Version        SW Image              Mode
------ ----- -----              ----------        ----------            ----
*    1 53    C9300L-48T-4X      17.12.04          CAT9K_IOSXE           BUNDLE

 

아주 간단하죠? ^^

 

오늘도 행복한 하루 되세요~

반응형