< Cisco Router ISO Upgrade방법 >
 
2 대의 Cisco Router을 이용하는 방법
1 ea: Source Router --> tftp server 역활.
1 ea: Target Router --> Upgrade할 Router.

1. 우선 Flash Memory의 용량 Check

xx#show flash

2. Souce Router를 tftp server로 만듬

xx#conf t

xx(config)#tftp f file_name


xx(config)#tftp-server flash:c4500-i-mz_113-5.bin



3. Target Router에서는

xx#copy tftp flash

ip add:souce router ip add

file_name:file_name입력

4. Download 후 Target Router에서

xx#conf t

xx(config)#boot system flash file_name

5. Target Router를 재부팅시킴

xx#reload




[ROUTER의 Image-file 업그레이드]

라우터에 전원을 넣으면 Boot image file 을 ROUTER내 ROM, Flash MEMORY, 또는
TFTP 서버에서 가지고 온다.


[ TFTP서버(151.151.151.151)를 이용한 IMAGE의 UPGRADE하기-CISCO 7000미만의 경우 ]

(1) 먼저 만약을 대비해 기존의 CONFIGURATION을 백업한다.

seoul#
seoul#
seoul#
seoul#
seoul#copy startup-config tftp
Remote host []? 151.151.151.151
Name of configuration file to write [seoul-confg]?
Write file seoul-confg on host 151.151.151.151? [confirm]
Writing seoul-confg !! [OK]
seoul#
seoul#

(2) 다음에 기존의 IMAGE를 백업한다.

seoul#
seoul#
seoul#
seoul#
seoul#sh flash (이미지의 크기를 확인한다.아래는 2.2M임)

System flash directory:
File Length Name/status
1 2269584 c4500-i-mz.111-7
[2269648 bytes used, 1924656 available, 4194304 total]
4096K bytes of processor board System flash (Read/Write)

seoul#
seoul#
seoul#
seoul#copy flash tftp

System flash directory:
File Length Name/status
1 2269584 c4500-i-mz.111-7
[2269648 bytes used, 1924656 available, 4194304 total]
Address or name of remote host [255.255.255.255]? 151.151.151.151
Source file name? c4500-i-mz.111-7
Destination file name [c4500-i-mz.111-7]?
Verifying checksum for \'c4500-i-mz.111-7\' (file # 1)... OK
Copy \'c4500-i-mz.111-7\' from Flash to server
as \'c4500-i-mz.111-7\'? [yes/no]yes
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Upload to server done
Flash copy took 00:06:38 [hh:mm:ss]
seoul#
seoul#

(3)새로운 버전의 Image-file을 업로딩한다.
(업로딩시 기존의 이미지는 자동으로 지워진다.)
seoul#
seoul#
seoul#
seoul#copy tftp flash

System flash directory:
File Length Name/status
1 2269584 c4500-i-mz.111-7
[2269648 bytes used, 1924656 available, 4194304 total]
Address or name of remote host [151.151.151.151]151.151.151.151
Source file name? c4500-i-mz_113-5.bin
Destination file name [c4500-i-mz_113-5.bin] c4500-i-mz_113-5.bin
Accessing file \'c4500-i-mz_113-5.bin\' on 151.151.151.151...
Loading c4000-i-mz_113-5.bin from 151.151.151.151 (via Ethernet0): ! [OK]

Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]

Copy \'c4000-i-mz_113-5.bin\' from server
as \'c4000-i-mz_113-5.bin\' into Flash

WITH erase? [yes/no]yes
Erasing device... eeeeeeeeeeeeeeee ...erased
Loading c4500-i-mz_113-5.bin from 151.151.151.151 (via Ethernet0): !!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 2338933/4194304 bytes]

Verifying checksum... OK (0xAB23)
Flash copy took 00:05:27 [hh:mm:ss]
seoul#
seoul#
seoul#sh flash (새로운 이미지가 로딩되었는지 확인한다.)

System flash directory:
File Length Name/status


1 2338933 c4500-i-mz_113-5.bin
[2339000 bytes used, 1855304 available, 4194304 total]
4096K bytes of processor board System flash (Read/Write)

seoul#
seoul#
seoul#conf t (전원 기동시 최초부팅 설정을 한다.)
Enter configuration commands, one per line. End with CNTL/Z.
seoul(config)#
seoul(config)#no boot system
seoul(config)#boot system flash:c4500-i-mz_113-5.bin
seoul(config)#boot system rom
seoul(config)#^Z
seoul#
seoul#
seoul#reload
Proceed with reload? [confirm]



[참 고]
: cisco 7507등의 경우 새로운 flash card를 장착한 때에는 먼저 format을
해야 Image-file를 업로딩할 수 있다.

san#format slot0:
All sectors will be erased, proceed? [confirm]
Enter volume id (up to 30 characters):
Formatting sector 1
Format device slot0 completed



: Privileged EXEC모드 관련 COMMAND

- CD
- PWD
- COPY
- DIR
- PARTITION
- FORMAT
- VERIFY
- ERASE
- DELETE / UNDELETE
- SQUEEZE

[참 고2]

1. Image-file의 종류

GD(Generally Deployment) - 안정화된 s/w set이다
LD(Limited Deployment) - GD보다 덜 안정화된 s/w set이다
ED(Early Deployment) - 가장 먼저 나오는 s/w set으로 새로운 기능을 도입한다

이미지를 업(다운)그레이드할 때는 되도록 GD를 선택한다.

2. Image-file의 구조

aaaa-bbbb-cccc.nnn-n

aaaa : platform
bbbb : feature
cccc : 어디로부터 IOS가 실행되는가,또는 압축 유무를 나타낸다.
nnn-n :Image-file 의 version을 뜻한다.

이미지를 업(다운)그레이드할 때는 기존의 이미지와 bbbb, cccc는 같거나 최소한

비슷한 것을 맟추어 고르고 Image-file 의 version이 높거나 낮은 것을 택한다.