본문 바로가기

IT 이야기/네트워크(Network)

[Cisco] ROMMON & IOS Upgrade (with Telnet)

728x90
반응형

 

안녕하세요.

시스코 장비 OS Upgrade 를 하시다 보면, 오래된 버전의 OS는 ROMMON OS 도 함께 Upgrade 해줘야 하는데요.

 

 

 

일반 PC 와 비교해서 잠시 설명드리자면,

시스코의 IOS 가 Windows OS 라면, ROMMON 은 CMOS OS 라고 생각할 수 있습니다.

Low Level 의 기본적인 OS 인거죠.

 

IOS Upgrade 시 항상 Release Note 를 확인하시는 습관을 들이셔서 해당 IOS 가 지원하는 ROMMON Version 이

본인이 Upgrade 하고자하는 장비의 ROMMON OS보다 상위 버전이라면 필히 ROMMON 도 함께 Upgrade 해주셔야 합니다.

 

ROMMON 버전 확인방법

Switch#sh ver
Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M), Version 03.04.02.SG RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Thu 05-Sep-13 19:06 by prod_rel_team



Cisco IOS-XE software, Copyright (c) 2005-2010, 2012 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: 15.0(1r)SG5
Switch uptime is 3 days, 17 hours, 1 minute
Uptime for this control processor is 3 days, 17 hours, 4 minutes
System returned to ROM by power-on

ROMMON 버전 확인은 sh ver 명령으로 확인 가능하며,

일반적으로 장비의 uptime 내용 바로 위에서 확인 가능합니다.

ROM: 15.0(1r)SG5

 

 

 

 

1. OS UPLOAD

 

먼저 Cisco Site 에서 IOS 및 ROMMON OS 를 다운받습니다.

보통 ROMMON OS 는 파일명이 cat4500-e-ios-promupgrade-122_44r_SG9  이런식으로 "promupgrade" 라는 이름이 들어갑니다.

tftp 서버를 통해 ROMMON 및 IOS 파일을 bootflash 에 올려주세요.

 

Switch# copy tftp: bootflash:
Address or name of remote host [172.20.58.78]? 
Source filename [cat4500-e-ios-promupgrade-122_44r_SG9]? 
Destination filename [cat4500-e-ios-promupgrade-122_44r_SG9]? 
Accessing tftp://172.20.58.78/cat4500-e-ios-promupgrade-122_44r_SG9...
Loading cat4500-e-ios-promupgrade-122_44r_SG9 from 172.20.58.78 (via
FastEthernet2/1):!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!
[OK - 2404172 bytes] 

2404172 bytes copied in 28.536 secs (84250 bytes/sec) 
Switch#

 

IOS 파일도 같은 방식으로 함께 Upload 시켜주시구요.

 

 

2. Bootvar 변경

 

파일 업로드가 완료되었다면 향후 재부팅 시 Loading 할 Boot 이미지를 지정해주어야겠죠.

sh run 명령을 통해 현재 지정된 OS를 확인해 줍니다.

 

Switch#sh run | inc boot
boot-start-marker
boot system flash bootflash:cat4500e-universalk9.SPA.03.04.02.SG.151-2.SG2.bin
boot-end-marker

 

 

no 명령을 통해 기존 OS를 삭제 후 ROMMON OS 와 신규 IOS 를 지정해 줍니다.

Switch# configure terminal
Switch(config)# no boot system flash bootflash:cat4500e-entservices-mz.151-2.SG.bin
Switch# configure terminal
Switch(config)# boot system flash bootflash:cat4500-e-ios-promupgrade-122_44r_SG10
Switch(config)# boot system flash bootflash:cat4500e-entservices-mz.151-2.SG.bin
Switch(config)# config-register 0x2102
Switch(config)# exit
Switch# write
Building configuration...
Compressed configuration from 3641 to 1244 bytes [OK]
Switch# 

위 내용 중 boot 지정 시 IOS 보다 ROMMON OS 를 먼저 지정해 주세요.

Confreg(config-register) 값은 sh ver 으로 확인 후 0x2102 도 되어 있다면, 굳이 다시 설정하지 않아도 됩니다.

 

 

 

필히, 저장하시고 " sh bootvar " 명령을 통해 설정이 잘 되었는지 확인하시기 바랍니다.

Switch# show bootvar
BOOT variable = 
bootflash:cat4500-e-ios-promupgrade-122_44r_SG10,1;bootflash:cat4500e-entservices-mz.151-2
.SG.bin,1;
CONFIG_FILE variable does not exist
BOOTLDR variable does not exist
Configuration register is 0x2102

 

 

 

3. 재부팅(Reload)

 

장비를 재부팅하시면 ROMMON Upgrade 하고, 신규 IOS 를 통해 자동으로 부팅합니다.

부팅이 완료되면, sh ver 을 통해 정상적으로 버전이 적용되었는지 확인하세요.

 

Switch# sh version
Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-ENTSERVICES-M), Version 
15.1(2)SG RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Wed 04-Jul-12 01:16 by gsbuprod
ROM: 12.2(44r)SG10
6e uptime is 9 minutes
Uptime for this control processor is 9 minutes
System returned to ROM by power-on
System image file is "bootflash:cat4500e-entservices-mz.151-2.SG.bin"
Darkside Revision 4, Jawa Revision 20, Tatooine Revision 141, Forerunner Revision 1.83

 

정상적으로 적용이 되었다면, config 에 설정된 ROMMON OS 는 향후 재부팅 시 또 읽어들이지 않도록 설정을 지워주어야 합니다.

 

 

 

4. ROMMON 관련 설정 삭제

 

처음 설정하신 boot system flash 명령을 이용해 ROMMON OS는 지웁니다.

Switch# configure terminal
Switch(config)# no boot system flash
bootflash:cat4500-e-ios-promupgrade-122_44r_SG10
Switch(config)# exit
Switch# write
Building configuration...
Compressed configuration from 3641 to 1244 bytes [OK]
Switch#

 

 

 

ftfp 를 통해 UPLOAD 한 파일은 놔두셔도 되지만, 굳이 필요없으니 bootflash: 에서 삭제해 줍니다.

Switch# delete bootflash:cat4500-e-ios-promupgrade-122_44r_SG10
Delete filename [cat4500-e-ios-promupgrade-122_44r_SG10]? 
Delete bootflash:cat4500-e-ios-promupgrade-122_44r_SG10? [confirm]
Switch#

 

 

 

wr 명령으로 저장 후 sh bootvar 명령을 통해 IOS 만 잘 적용되어 있는지 확인합니다.

Switch# show bootvar
BOOT variable = bootflash:cat4500e-entservices-mz.151-2.SG.bin
CONFIG_FILE variable does not exist
BOOTLDR variable does not exist
Configuration register is 0x2102

 

 

 

 

VSS 구성이라면?

 

만약 운영하시는 장비가 이중화로 VSS 를 통해 묶여 있다면, 상기 설정방법과 동일하게 진행 가능하지만

IOS 및 ROMMON 파일은 slavebootflash: 에도 동일하게 들어가 있어야 합니다.

 

 

 

 

읽어주셔서 감사합니다
티스토리 댓글과 공감은 로그인이 필요 없습니다.
로그인하시면 구독 가능합니다.

 

 

728x90
반응형