소개
이 문서에서는 부팅 이미지의 TFTP 기능을 사용하여 ROMmon(ROM monitor) 프롬프트에서 라우터를 업그레이드하는 방법에 대해 설명합니다.
사전 요구 사항
요구 사항
이 문서에 대한 특정 요건이 없습니다.
사용되는 구성 요소
이 문서는 특정 소프트웨어 및 하드웨어 버전으로 한정되지 않습니다.
이 문서의 정보는 특정 랩 환경의 디바이스를 토대로 작성되었습니다. 이 문서에 사용된 모든 디바이스는 초기화된(기본) 컨피그레이션으로 시작되었습니다. 현재 네트워크가 작동 중인 경우 모든 명령의 잠재적인 영향을 미리 숙지하시기 바랍니다.
표기 규칙
문서 규칙에 대한 자세한 내용은 Cisco 기술 팁 표기 규칙을 참고하십시오.
부트 이미지란? (Rx-boot)
부트 이미지는 복구 상황에서 TFTP를 사용하는 라우터에 기본 Cisco IOS 소프트웨어 이미지를 다운로드하는 데 사용되는 Cisco IOS® 소프트웨어의 하위 집합입니다. 사용자는 promptRouter(boot)#로 표시된 명령줄 인터페이스를 통해 이 이미지와 상호 작용할 수 있습니다.
일부 플랫폼(Cisco 1600, 2500)은 ROM에, 다른 플랫폼(하이엔드 라우터)은 bootflash에 있습니다. 이 이미지는 플랫폼에 따라 xboot image, rxboot image, bootstrap image 또는 boot loader 또는 helper image라고 할 수 있습니다.
부트 이미지의 기능이 제한되어 있습니다. 예를 들어 라우팅 정보가 포함되어 있지 않습니다.
경고: 부팅 모드에서는 컨피그레이션의 일부(예: 라우팅 부분)가 손실되므로 컨피그레이션을 저장하지 마십시오.
부트 이미지 로드
라우터에 유효한 부트 이미지가 포함되어 있으면 이를 사용하여 유효한 Cisco IOS 소프트웨어 이미지를 TFTP를 사용하는 플래시로 다운로드할 수 있습니다. 이렇게 하려면 다음 단계를 수행하십시오.
-
컨피그레이션 레지스터를 변경하여 부트 이미지를 부팅하고 컨피그레이션 레지스터를 다음과 같이 설정합니다(표시되는 프롬프트에 따라).
rommon 1 > confreg 0x2101
or
> o/r 0x2101
You must reset or power cycle for the new configuration to take effect.
!--- This is the router output when a configuration register command is entered.
부팅 이미지를 부팅하도록 컨피그레이션 레지스터가 변경되었습니다.
-
부트 이미지를 부팅하려면 라우터를 재설정합니다.
rommon 2 > reset
or
> i
System Bootstrap(시스템 부트스트랩) 메시지가 나타나고 라우터가 부트 이미지를 부팅합니다. 화면에는 다음과 같은 내용이 표시되어야 합니다.
System Bootstrap, Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
Copyright (c) 1997 by cisco Systems, Inc.
C1600 processor with 18432 Kbytes of main memory
program load complete, entry point: 0x4018060, size: 0x1e1568
Restricted Rights Legend
.
.
!--- Output omitted.
.
.
Router(boot)>
이제 Router(boot)>와 유사한 프롬프트가 있어야 합니다.
-
ROMmon에 있는 경우 부트 이미지가 손실되었거나 손상되었음을 의미합니다. 라우터에 Flash 또는 Bootflash에 유효한 이미지가 없고 다른 ROMmon 업그레이드 절차가 없는 경우, 복구할 수 있는 유일한 방법은 호환 가능한 Flash 카드와 유사한 라우터를 가지고 해당 라우터에 이미지를 다운로드한 다음 Flash 카드를 고정된 라우터로 이동하는 것입니다.
-
플래시 카드 호환성 정보는 PCMCIA 파일 시스템 호환성 매트릭스 및 파일 시스템 정보를 확인하십시오.
-
라우터의 이더넷 인터페이스 0을 네트워크에 연결하여 이를 통해 TFTP 서버에 연결할 수 있습니다. 라우터의 이더넷 인터페이스에 IP 주소를 구성합니다.
Router(boot)>enable
Router(boot)#configure terminal
Router(boot)(config)#interface ethernet 0
Router(boot)(config-if)#ip address 10.77.241.160 255.255.255.0
Router(boot)(config-if)#no shutdown
-
부트 이미지를 실행하는 라우터에는 라우팅 기능이 없습니다. 따라서 이 라우터의 기본 게이트웨이를 구성해야 합니다. ip default-gateway 전역 컨피그레이션 명령을 실행하여 이 라우터에 적합한 기본 게이트웨이를 설정합니다. 이더넷 0 인터페이스와 동일한 서브넷에 연결된 라우터의 IP 주소를 가리켜야 합니다.
Router(boot)(config)#ip default-gateway 10.77.241.129
-
TFTP 서버에서 Cisco IOS 이미지를 복사하기 전에 라우터가 TFTP 서버에 연결되어 있는지 확인하십시오.
Router(boot)#ping 10.77.233.94
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echoes to 10.77.233.94, timeout is 2 seconds:
.!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
Router(boot)#
-
TFTP 서버에서 라우터의 플래시 메모리로 Cisco IOS 이미지를 복사합니다.
Router(boot)#copy tftp flash
PCMCIA flash directory:
No files in PCMCIA flash
[0 bytes used, 16777216 available, 16777216 total]
Address or name of remote host [255.255.255.255]? 10.77.233.94
!--- Enter the IP address of the TFTP Server.
Source file name? c1600-y-l.122-10d.bin
!--- This is the filename of the Cisco IOS image that you want to copy from
!--- the TFTP server.
Destination file name [c1600-y-l.122-10d.bin]?
!--- Press 'Enter'.
Accessing file 'c1600-y-l.122-10d.bin' on 10.77.233.94...
Loading
c1600-y-l.122-10d.bin from 10.77.233.94 (via Ethernet0):
! [OK] Device needs erasure before copying new file Erase flash device before writing? [confirm]y
!--- Press 'y' or 'Enter'.
!--- On Class B Flash file systems, the router gives you the option of erasing
!--- the existing contents of Flash memory before writing to it. If no free Flash
!--- memory is available, or if no files have ever been written to Flash memory,
!--- the erase routine is required before new files can be copied. If there is
!--- enough free Flash memory, the router gives you the option of erasing the
!--- existing Flash memory before writing to it. The system will inform you
!--- of these conditions and prompt you for a response.
!--- If you enter 'n' after the "Erase flash before writing?" prompt, the copy
!--- process continues. If you enter 'y' and confirm the erasure, the erase
!--- routine begins. Make sure to have ample Flash memory space before entering "n"
!--- at the erasure prompt. Copy 'c1600-y-l.122-10d.bin' from server as 'c1600-y-l.122-10d.bin' into Flash WITH erase? [yes/no]yes
!--- Entering 'yes' erases all the files in Flash.
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased Loading
c1600-y-l.122-10d.bin from 10.77.233.94 (via Ethernet0):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!
[OK - 7220632/16777216 bytes]Verifying checksum... OK (0x6526) Flash device copy took 00:05:57 [hh:mm:ss] Router(boot)#
-
다음 다시 로드하는 동안 라우터가 새로 다운로드한 Cisco IOS 이미지로 부팅하도록 컨피그레이션 레지스터 값을 2102로 다시 변경합니다.
Router(boot)#configure terminal
Router(boot)(config)#config-register 0x2102
Router(boot)(config)#exit
Router(boot)#
-
reload 명령으로 라우터를 다시 로드합니다.
Router(boot)#reload
System configuration has been modified. Save? [yes/no]: no
Building configuration...
[OK]
Proceed with reload? [confirm]
!--- Press 'Enter'.
%SYS-5-RELOAD: Reload requested
System Bootstrap, Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
Copyright (c) 1997 by cisco Systems, Inc.
C1600 processor with 18432 Kbytes of main memory
program load complete, entry point: 0x4018060, size: 0x1e1568
.
.
!--- Output omitted.
.
.
Router>
-
라우터에 올바른 이미지가 로드되었는지 확인하려면 show version 명령을 사용하여 라우터에서 Cisco IOS 이미지 버전을 확인합니다.
Router>show version
Cisco Internetwork Operating System Software
Cisco IOS (tm) 1600 Software (C1600-Y-L), Version 12.2(10d), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Wed 14-May-03 01:04 by pwade
Image text-base: 0x0803A510, data-base: 0x02005000
ROM: System Bootstrap, Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
ROM: 1600 Software (C1600-BOOT-R), Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE
SOFTWARE (fc1)
1603 uptime is 19 hours, 26 minutes
System returned to ROM by reload
System image file is "flash:c1600-y-l.122-10d.bin"
cisco 1603 (68360) processor (revision C) with 13824K/4608K bytes of memory.
Processor board ID 10240382, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
Basic Rate ISDN software, Version 1.1.
1 Ethernet/IEEE 802.3 interface(s)
1 ISDN Basic Rate interface(s)
System/IO memory with parity disabled
2048K bytes of DRAM onboard 16384K bytes of DRAM on SIMM
System running from FLASH
7K bytes of non-volatile configuration memory.
16384K bytes of processor board PCMCIA flash (Read ONLY)
Configuration register is 0x2102
Router>
이제 TFTP 서버에서 로드된 새 Cisco IOS 이미지가 실행됩니다.
관련 정보