이 제품에 대한 문서 세트는 편견 없는 언어를 사용하기 위해 노력합니다. 이 문서 세트의 목적상, 편견 없는 언어는 나이, 장애, 성별, 인종 정체성, 민족 정체성, 성적 지향성, 사회 경제적 지위 및 교차성에 따른 차별을 의미하지 않는 언어로 정의됩니다. 제품 소프트웨어의 사용자 인터페이스에서 하드코딩된 언어, RFP 설명서에 기초한 언어 또는 참조된 서드파티 제품에서 사용하는 언어로 인해 설명서에 예외가 있을 수 있습니다. Cisco에서 포용적인 언어를 사용하는 방법에 관해 자세히 알아보세요.
Cisco는 전 세계 사용자에게 다양한 언어로 지원 콘텐츠를 제공하기 위해 기계 번역 기술과 수작업 번역을 병행하여 이 문서를 번역했습니다. 아무리 품질이 높은 기계 번역이라도 전문 번역가의 번역 결과물만큼 정확하지는 않습니다. Cisco Systems, Inc.는 이 같은 번역에 대해 어떠한 책임도 지지 않으며 항상 원본 영문 문서(링크 제공됨)를 참조할 것을 권장합니다.
이 문서에서는 Catalyst 9000(Cat9K) 스위치의 업그레이드 방법에 대해 설명합니다
이 문서에 대한 특정 요건이 없습니다.
이 문서의 정보는 이러한 소프트웨어 및 하드웨어 버전을 기반으로 합니다
참고:다른 Cisco 플랫폼에서 이러한 기능을 활성화하려면 사용되는 명령에 대한 적절한 컨피그레이션 가이드를 참조하십시오.
이 문서의 정보는 특정 랩 환경의 디바이스를 토대로 작성되었습니다.이 문서에 사용된 모든 디바이스는 초기화된(기본) 컨피그레이션으로 시작되었습니다.네트워크가 작동 중인 경우 모든 명령의 잠재적인 영향을 이해해야 합니다.
이 문서에서는 BUNDLE 또는 INSTALL 모드를 사용하는 Catalyst 9K 유형 스위치의 신규 및 이전 업그레이드 절차에 대해 설명합니다.
번들 모드는 IOS를 실행하는 기존의 방식을 쉽게 이해할 수 있는 방법입니다.IOS를 실행하는 데 필요한 모든 것이 포함된 .bin 파일을 부팅합니다.기존 IOS에 따라 로드할 .bin 파일을 가리키는 boot 문이 있으며 부팅 시 로드됩니다
Switch#show boot BOOT variable = bootflash:cat9k_iosxe.16.11.01.SPA.bin; Configuration Register is 0x102 MANUAL_BOOT variable = no BAUD variable = 9600 ENABLE_BREAK variable does not exist BOOTMODE variable does not exist IPXE_TIMEOUT variable does not exist CONFIG_FILE variable =
Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#no boot sys Switch(config)#boot system bootflash:cat9k_iosxe.16.12.01.SPA.bin <--- Switch(config)#end Switch#wr Switch# Switch#show run | inc boot system boot system bootflash:cat9k_iosxe.16.12.01.SPA.bin Switch# Switch#show boot BOOT variable = bootflash:cat9k_iosxe.16.12.01.SPA.bin; <--- Configuration Register is 0x102 MANUAL_BOOT variable = no BAUD variable = 9600 ENABLE_BREAK variable does not exist BOOTMODE variable does not exist IPXE_TIMEOUT variable does not exist CONFIG_FILE variable =
설치 모드는 실행할 수 있는 최신 권장 모드입니다.이렇게 하면 .bin 파일을 서로 독립적으로 메모리에 로드해야 하는 작은 .pkg 파일로 분할하고, 더 빠르게 부팅하고 메모리를 더 잘 활용할 수 있습니다.software.cisco.com에서 다운로드하는 .bin 파일에는 필요한 모든 .pkg 파일이 들어 있습니다.
참고:.bin 파일을 .zip 파일로 간주합니다..pkg 파일을 가져오기 위해 추출할 수 있습니다.필요한 .pkg 파일을 나타내는 데 사용되는 구성 파일도 있습니다.설치 모드에서 부팅할 때 사용되는 프로세스입니다.
참고:이 작업은 자동으로 수행되며 이 파일을 직접 편집할 필요가 없습니다.그러나 다시 로드하기 전에 .conf 파일이 가리키는 패키지 파일을 확인하여 올바른 파일을 가리킬 수 있습니다.
Switch#more packages.conf #! /usr/binos/bin/packages_conf.sh <...snip...> # This is for CAT9k boot rp 0 0 rp_boot cat9k-rpboot.16.11.01.SPA.pkg iso rp 0 0 rp_base cat9k-rpbase.16.11.01.SPA.pkg iso rp 0 0 rp_daemons cat9k-rpbase.16.11.01.SPA.pkg iso rp 0 0 rp_iosd cat9k-rpbase.16.11.01.SPA.pkg iso rp 0 0 rp_security cat9k-rpbase.16.11.01.SPA.pkg iso rp 0 0 rp_wlc cat9k-wlc.16.11.01.SPA.pkg iso rp 0 0 rp_webui cat9k-webui.16.11.01.SPA.pkg iso rp 0 0 srdriver cat9k-srdriver.16.11.01.SPA.pkg iso rp 0 0 guestshell cat9k-guestshell.16.11.01.SPA.pkg boot rp 1 0 rp_boot cat9k-rpboot.16.11.01.SPA.pkg iso rp 1 0 rp_base cat9k-rpbase.16.11.01.SPA.pkg iso rp 1 0 rp_daemons cat9k-rpbase.16.11.01.SPA.pkg iso rp 1 0 rp_iosd cat9k-rpbase.16.11.01.SPA.pkg iso rp 1 0 rp_security cat9k-rpbase.16.11.01.SPA.pkg iso rp 1 0 rp_wlc cat9k-wlc.16.11.01.SPA.pkg iso rp 1 0 rp_webui cat9k-webui.16.11.01.SPA.pkg iso rp 1 0 srdriver cat9k-srdriver.16.11.01.SPA.pkg iso rp 1 0 guestshell cat9k-guestshell.16.11.01.SPA.pkg <...snip...> # # -start- superpackage .pkginfo # # pkginfo: Name: rp_super # pkginfo: BuildTime: 2019-03-28_09.46 # pkginfo: ReleaseDate: Thu-28-Mar-19-01:19 # pkginfo: .BuildArch: x86_64 # pkginfo: BootArchitecture: i686 # pkginfo: .BootArch: i686 # pkginfo: RouteProcessor: cat9k # pkginfo: Platform: CAT9K # pkginfo: User: mcpre # pkginfo: PackageName: universalk9 # pkginfo: Build: 16.11.01 # pkginfo: .SupportedBoards: cat9k # pkginfo: .InstallModel: # pkginfo: .PackageRole: rp_super # pkginfo: .RestartRole: rp_super # pkginfo: .UnifiedPlatformList: passport,nyquist,starfleet # pkginfo: CardTypes: # pkginfo: .CardTypes: # pkginfo: .BuildPath: /scratch/mcpre/release/BLD-V16_11_01_FC3/binos/linkfarm/stage-cat9k/hard/rp_super_universalk9.x86_64 # pkginfo: .Version: 16.11.1.0.312.1553791584..Gibraltar # pkginfo: .InstallVersion: 1.0.0 # pkginfo: .InstallCapCommitSupport: yes # # -end- superpackage .pkginfo #
활성 수퍼바이저가 설치 모드에서 실행 중인 경우 자동 업그레이드를 사용하는 것이 가장 좋습니다.그러면 Active Sup는 스탠바이(bundle/install/등)에 로드되는 이미지에 관계없이 스탠바이 슈퍼를 업그레이드할 수 있습니다. 그러나 프로세스를 시작하려면 대기 모드를 유효한 이미지로 부팅해야 합니다.자동 업그레이드는 rommon에서 sup를 복구하지 않습니다.
software auto-upgrade enable
install autoupgrade
참고:자동 업그레이드는 활성 섀시가 설치 모드에 있는 한 Stackwise 가상 설정에서 작동합니다.
다음 섹션에서는 "install" 명령 사용에 대해 설명합니다.모든 9k는 이러한 명령을 지원합니다.그러나 9600, 9400 및 9200의 유일한 옵션입니다.
앞서 설명했듯이 업그레이드는 4가지 부품 프로세스입니다.그러나 단계 2-4에 대한 명령은 약간 수수께끼이므로 각 명령이 수행하는 작업은 다음과 같습니다.
제한 사항
부트 문은 설치 모드에서 항상 packages.conf여야 합니다.업그레이드 중에 boot 문을 다른 .conf 파일로 변경하려고 하면 업그레이드가 실패할 수 있습니다.ADD 명령을 이미 실행한 경우 추가한 패키지를 활성화하거나 처음부터 다시 시작하려면 해당 패키지를 정리해야 합니다.부트 문을 비활성 패키지로 변경하지 마십시오.
요약
설치로 이동하려는 경우 먼저 boot 문을 packages.conf로 변경한 다음 .bin 파일을 추가해야 합니다.즉, 새 .bin 파일을 TFTP 또는 USB에서 bootflash로 복사해야 합니다.공간이 부족하여 스위치로 파일 복사본에 문제가 있는 경우 이 문서의 "정리" 섹션을 참조하여 필요하지 않은 파일을 제거하십시오.
conf t no boot sys boot sys bootflash:packages.conf end wr install add file bootflash:[new .bin file] activate commit
추가 설치
Switch#show install summary [ R0 R1 ] Installed Package(s) Information: State (St): I - Inactive, U - Activated & Uncommitted, C - Activated & Committed, D - Deactivated & Uncommitted -------------------------------------------------------------------------------- Type St Filename/Version -------------------------------------------------------------------------------- IMG C 16.11.1.0.312 -------------------------------------------------------------------------------- Auto abort timer: inactive --------------------------------------------------------------------------------
install add file bootflash:cat9k_iosxe.16.12.01.SPA.bin
Switch#dir | inc .pkg
359097 -rw- 11359240 Sep 13 2019 16:10:08 +00:00 cat9k-cc_srdriver.16.11.01.SPA.pkg
359098 -rw- 84354052 Sep 13 2019 16:10:08 +00:00 cat9k-espbase.16.11.01.SPA.pkg
359099 -rw- 1676292 Sep 13 2019 16:10:08 +00:00 cat9k-guestshell.16.11.01.SPA.pkg
359100 -rw- 466576384 Sep 13 2019 16:10:08 +00:00 cat9k-rpbase.16.11.01.SPA.pkg
359106 -rw- 38552418 Sep 13 2019 16:10:30 +00:00 cat9k-rpboot.16.11.01.SPA.pkg
359101 -rw- 29877252 Sep 13 2019 16:10:08 +00:00 cat9k-sipbase.16.11.01.SPA.pkg
359102 -rw- 57259008 Sep 13 2019 16:10:08 +00:00 cat9k-sipspa.16.11.01.SPA.pkg
359103 -rw- 19936260 Sep 13 2019 16:10:08 +00:00 cat9k-srdriver.16.11.01.SPA.pkg
359104 -rw- 12321792 Sep 13 2019 16:10:08 +00:00 cat9k-webui.16.11.01.SPA.pkg
359105 -rw- 9216 Sep 13 2019 16:10:08 +00:00 cat9k-wlc.16.11.01.SPA.pkg
456963 -rw- 14222344 Sep 13 2019 17:05:35 +00:00 cat9k-cc_srdriver.16.12.01.SPA.pkg
456964 -rw- 88892420 Sep 13 2019 17:05:35 +00:00 cat9k-espbase.16.12.01.SPA.pkg
473282 -rw- 1684484 Sep 13 2019 17:05:35 +00:00 cat9k-guestshell.16.12.01.SPA.pkg
473283 -rw- 535475200 Sep 13 2019 17:05:35 +00:00 cat9k-rpbase.16.12.01.SPA.pkg
473289 -rw- 43111714 Sep 13 2019 17:06:00 +00:00 cat9k-rpboot.16.12.01.SPA.pkg
473284 -rw- 31425540 Sep 13 2019 17:05:35 +00:00 cat9k-sipbase.16.12.01.SPA.pkg
473285 -rw- 60183552 Sep 13 2019 17:05:35 +00:00 cat9k-sipspa.16.12.01.SPA.pkg
473286 -rw- 22676484 Sep 13 2019 17:05:35 +00:00 cat9k-srdriver.16.12.01.SPA.pkg
473287 -rw- 12854272 Sep 13 2019 17:05:35 +00:00 cat9k-webui.16.12.01.SPA.pkg
473288 -rw- 9216 Sep 13 2019 17:05:35 +00:00 cat9k-wlc.16.12.01.SPA.pkg
Switch#show install summary [ R0 R1 ] Installed Package(s) Information: State (St): I - Inactive, U - Activated & Uncommitted, C - Activated & Committed, D - Deactivated & Uncommitted -------------------------------------------------------------------------------- Type St Filename/Version -------------------------------------------------------------------------------- IMG I 16.12.1.0.544 <-- Installed but still Inactive (I) IMG C 16.11.1.0.312 -------------------------------------------------------------------------------- Auto abort timer: inactive -------------------------------------------------------------------------------- Switch#show install inactive [ R0 R1 ] Inactive Package(s) Information: State (St): I - Inactive, U - Activated & Uncommitted, C - Activated & Committed, D - Deactivated & Uncommitted -------------------------------------------------------------------------------- Type St Filename/Version -------------------------------------------------------------------------------- IMG I 16.12.1.0.544 <-- Installed but still Inactive (I)
설치 활성화
install activate
This operation may require a reload of the system. Do you want to proceed? [y/n]
Switch#show install sum [ R0 R1 ] Installed Package(s) Information: State (St): I - Inactive, U - Activated & Uncommitted, C - Activated & Committed, D - Deactivated & Uncommitted -------------------------------------------------------------------------------- Type St Filename/Version -------------------------------------------------------------------------------- IMG U 16.12.1.0.544 -------------------------------------------------------------------------------- Auto abort timer: active on install_activate, time before rollback - 01:52:08 <--- when this hits zero, the device reloads back to original version. -------------------------------------------------------------------------------- Switch#show install uncommitted [ R0 R1 ] Uncommitted Package(s) Information: State (St): I - Inactive, U - Activated & Uncommitted, C - Activated & Committed, D - Deactivated & Uncommitted -------------------------------------------------------------------------------- Type St Filename/Version -------------------------------------------------------------------------------- IMG U 16.12.1.0.544
설치 커밋
install commit
Switch#show install summary [ R0 R1 ] Installed Package(s) Information: State (St): I - Inactive, U - Activated & Uncommitted, C - Activated & Committed, D - Deactivated & Uncommitted -------------------------------------------------------------------------------- Type St Filename/Version -------------------------------------------------------------------------------- IMG C 16.12.1.0.544 <--- Now Active and Committed -------------------------------------------------------------------------------- Auto abort timer: inactive --------------------------------------------------------------------------------
설치 중단
install abort
프롬프트 수준
install add file bootflash:cat9k_iosxe.16.12.01.SPA.bin activate commit prompt-level none
자동 업그레이드 타이머
install auto-abort-timer stop
Switch#install activate auto-abort-timer ? <30-1200> Number of minutes the abort-timer is set for
이 섹션에서는 .bin 파일(대신 .pkg 파일)을 가리키는 boot 문을 사용하여 소프트웨어를 업그레이드하는 일반적인 방법에 대해 설명합니다.
conf t no boot system boot system bootflash:[new file name] end wr reload
이 섹션에서는 "request platform" 명령의 사용에 대해 설명하며 9500 및 9300에서 지원됩니다.
Expand
request platform software package expand switch all file flash:cat9k_iosxe.16.09.02.SPA.bin
설치
request platform software package install switch all file flash:test auto-copy new
청소
request platform software package clean
conf t no boot sys boot sys bootflash:packages.conf end wr install add file bootflash:[new .bin file] activate commit
롤백 설치 모드
Switch#show install rollback ID Label Description ----------------------------------------------- 2 No Label No Description 1 No Label No Description Switch#show install rollback id 1 Rollback id - 1 (Created on Fri Sep 13 13:14:40 2019) Label: No Label Description: No Description Reload required: NO State (St): I - Inactive, U - Activated & Uncommitted, C - Activated & Committed, D - Deactivated & Uncommitted -------------------------------------------------------------------------------- Type St Filename/Version -------------------------------------------------------------------------------- IMG C 16.11.1.0.312
Switch#install label 1 ? description Add a description to specified install point label-name Add a label name to specified install point Switch#install label 1 label-name 16_11_01 install_add_label: START Fri Sep 13 16:43:48 UTC 2019 --- Starting install_add_label --- Performing install_add_label on Active/Standby [R0] install_add_label package(s) on R0 [R0] Finished install_add_label on R0 [R1] install_add_label package(s) on R1 [R1] Finished install_add_label on R1 Checking status of install_add_label on [R0 R1] install_add_label: Passed on [R0 R1] Finished install_add_label SUCCESS: install_add_label Fri Sep 13 16:43:57 UTC 2019 Switch#show install rollback ID Label Description ----------------------------------------------- 2 No Label No Description 1 16_11_01 No Description
install rollback to id 1
이 작성 시 지원되지 않습니다.17.2.1에서 지원 예약
업그레이드를 수행하는 이전 방법은 단일 슈퍼의 업그레이드 또는 두 가지 슈퍼를 동시에 업그레이드하는 방법을 설명합니다.그러나 이중 지원을 통해 ISSU(In Service Software Upgrade)를 수행할 수 있습니다. 이 경우 한 번에 하나의 수퍼바이저를 업그레이드하여 가동 중단 없이 거의 업그레이드할 수 있습니다
주의:여기에 표시된 명령을 실행하면 프로세스가 시작되고 sup가 자동으로 다시 로드됩니다.재부팅을 시작할 준비가 될 때까지 명령을 실행하지 마십시오.일반 업그레이드 프로세스와 달리 다시 로드가 발생하기 전에 사용자에게 확인을 요청하지 않습니다.
install add file bootflash:cat9k_iosxe.16.11.01.SPA.bin activate issu commit
install add file flash:cat9k_iosxe.16.10.01.SPA.bin activate reloadfast commit
install remove inactive
참고:이렇게 하면 모든 .bin 파일이 제거되므로 업그레이드를 수행하기 전에 정리하려는 경우 새 .bin 파일에서 복사하기 전에 정리해야 합니다.
Switch#show switch Switch/Stack Mac Address : f8b7.e206.4900 - Local Mac Address Mac persistency wait time: Indefinite H/W Current Switch# Role Mac Address Priority Version State ------------------------------------------------------------------------------------- 1 Member 701f.5300.fa00 15 V01 V-Mismatch <---Indicates a version mismatch *2 Active f8b7.e206.4900 14 V01 Ready
주의:스위치에 대한 콘솔 액세스 권한이 있는지 확인한 후 이를 시도하거나 스위치를 복구할 수 없습니다.
옵션 #2의 단계.
Switch#dir ? /all List all files /recursive List files recursively all-filesystems List files on all filesystems cns: Directory or file name crashinfo-1: Directory or file name crashinfo-2: Directory or file name crashinfo: Directory or file name flash-1: Directory or file name <----Flash for switch #1 flash-2: Directory or file name <----Flash for switch #2 flash: Directory or file name
switch: boot flash:cat9k_iosxe.16.12.01.SPA.bin <-- Image you copied that Active is running
유효한 이미지가 없는 rommon에 머물러 있는 경우 USB를 통해 스위치 또는 TFTP를 통해 파일을 복사할 수 있습니다
boot usbflash0:cat9k_iosxe.16.12.01.SPA.bin
tftp-server flash:cat9k_iosxe.16.12.01.SPA.bin
DEFAULT_GATEWAY=172.27.74.1
IP_ADDRESS=172.27.74.111
IP_SUBNET_MASK=255.255.255.0
TFTP_SERVER=172.19.64.31
ping 172.19.64.31
boot tftp://172.19.64.31/cat9k_iosxe.16.12.01.SPA.bin
참고:rommon 복구에 대한 자세한 내용은 다음 링크에서 확인할 수 있습니다. recover_from_corrupt_or_missing_file_image_or_in_rommon_mode
Catalyst 3850, Catalyst 9000 Series 스위치의 ISSU(In-Service Software Upgrade)
CSCvr29736 - 문서 버그:9600은 재로드할 수 없음
CSCvr29864 - 개선 사항:9300 add reloadfast to install 명령
CSCvr29886 - 개선 사항:v-mismatch에서 스위치의 boot 문을 변경할 수 있음
CSCvr30159 - 개선 사항:install add 명령을 실행할 때 수동 부팅 확인 추가
CSCvr30189 - 개선 사항:.bin 파일을 삭제하지 않고 "추가 설치"를 실행 취소하는 옵션을 추가합니다.