Passion/Programming

Cisco ISO 변경하기

sunshout 2007. 8. 8. 17:31
Cisco 의 IOS버전을 변경하는 방법

1. 현재 라우터의 ISO 확인하기 (show version)

show version 결과 (Language : text)
  1. c7200_S1#show version
  2. Cisco Internetwork Operating System Software
  3. IOS (tm) 7200 Software (C7200-P-M), Version 12.0(27)S5, RELEASE SOFTWARE (fc1)
  4. Technical Support: http://www.cisco.com/techsupport
  5. Copyright (c) 1986-2005 by cisco Systems, Inc.
  6. Compiled Mon 09-May-05 11:28 by kellythw
  7. Image text-base: 0x60008C64, data-base: 0x613E6000
  8.  
  9. ROM: System Bootstrap, Version 12.2(4r)B2, RELEASE SOFTWARE (fc2)
  10. BOOTLDR: 7200 Software (C7200-BOOT-M), Version 12.0(13)S, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
  11.  
  12. c7200_S1 uptime is 7 weeks, 4 days, 2 hours, 22 minutes
  13. System returned to ROM by power-on
  14. System restarted at 14:11:43 KST Fri Jun 15 2007
  15. System image file is "slot0:c7200-p-mz.120-27.S5.bin"
  16.  
  17. cisco 7204VXR (NPE400) processor with 114688K/16384K bytes of memory.
  18. R7000 CPU at 350Mhz, Implementation 39, Rev 3.3, 256KB L2, 4096KB L3 Cache
  19. 4 slot VXR midplane, Version 2.7
  20.  
  21. Last reset from power-on
  22. X.25 software, Version 3.0.0.
  23. 4 FastEthernet/IEEE 802.3 interface(s)
  24. 125K bytes of non-volatile configuration memory.
  25.  
  26. 16384K bytes of Flash PCMCIA card at slot 0 (Sector size 128K).
  27. 4096K bytes of Flash internal SIMM (Sector size 256K).
  28. Configuration register is 0x2102
  29.  

3번 줄에 IOS 버전이 나오고, 15번 줄에 어떤 위치에 있는 IOS 파일을 로드했는지 알 수 있다.


2. 라우터가 가지고 있는 저장장치 리스트 보기 (cd ?)

cd ? (Language : text)
  1. c7200_S1#cd ?
  2.   bootflash:  Directory name
  3.   disk0:     Directory name
  4.   disk1:      Directory name
  5.   flash:      Directory name
  6.   null:       Directory name
  7.   nvram:      Directory name
  8.   slot0:     Directory name
  9.   slot1:      Directory name
  10.   system:    Directory name
  11.   <cr>
  12.  
  13. c7200_S1#cd
  14.  

2번줄의 bootflash 디렉토리는 라우터가 디폴트 IOS가 저장되어 있는 곳
3번줄의 disk0: 는 내장 하드 디스크를 위미
5번줄의 flash: 는 8번줄의 slot0: 와  동일하다.
7번줄의 nvram: 은 startup-config 등의 저장을 위한 곳
10번줄의 system: 는  running-config 를 저장하는 곳

주) cd disk0: 를 하고 나면 disk0 디렉토리로 들어가고, dir 을 하면 해당 디렉토리 안의 파일들을 보여 준다.

3. 다른 이미지로 부팅하기


IOS 이미지 변경 (Language : text)
  1. pmj#conf t
  2. Enter configuration commands, one per line.  End with CNTL/Z.
  3. pmj(config)#boot system flash slot0:c7000-js-mz_13%-21.bin   ->  boot System 지정
  4. pmj(config)#config-register 0x2102  ->  레지스터값 설정
  5. pmj(config)#^Z
  6. pmj#wr   ->  저장
  7. Building configuration...
  8. [OK]
  9. pmj#reload   -> 재부팅
  10. Proceed with reload? [confirm]


3번 줄에서 새로 변경하고 픈 IOS 이미지를 지정한다.
4번 줄에서 레지스터값을 변경하고 빠져 나온 후 9번 줄에서 reload를 실행하면 된다.