engineering/Network Eng.2006. 4. 7. 01:14


ROUTER의 멀티부팅

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



ROM으로 부팅하기

san#conf t


Enter configuration commands, one per line. End with CNTL/Z.


san(config)#


san(config)#no boot system


san(config)#boot system rom


san(config)#^Z


san#wr m


san#reload


san#sh ver


~ running defailt software


1. ROM에서 부팅하도록 설정하면 일반적으로 bootflash memory에서 부팅하게 된다.


2. 부팅속도가 가장 빠르다


3. 일반적으로 ROM부팅은 비상시 이용하는 것이므로 완전한 S/W set을


제공하지는 않는다.


4. Boot field의 config-register값을 0x2101로 설정하면 부팅설정에 관계없이
ROM 부팅을 하게 된다.


san(config)#config-register 0x2101


참고

: Boot field의 config-register값을 0x2100로 설정하면 Bootstrap이 내장된

라우터 내의 boot ROM에서 직접 부팅을 한다.


san#conf t

Enter configuration commands, one per line. End with CNTL/Z.


san(config)#


san(config)#config-register 0x2100


san(config)#^Z


san#


san#wr m


san#reload


roceed with reload? [confirm]

%SYS-5-RELOAD: Reload requested

System Bootstrap, Version 4.14(7), SOFTWARE

Copyright (c) 1986-1994 by cisco Systems

4000 processor with 8192 Kbytes of main memory


rommon>


참고2

: 위의 ROM Monitor 모드에서 다시 필요에 따라 bootflash, flash, tftp서버등의 2차 부팅을 유도할수 있다.


1) rommon>

rommon>b <== bootflash memory에서 재부팅하기


2) rommon>

rommon>b flash <== flash memory에서 재부팅하기


3) rommon>


rommon>b xx-in-m.102-2 202.30.68.241

<== tftp서버(202.30.68.241)에서 재부팅하기

<== 여기서 xx-in-m.102-2는 읽어올 image-file이다.

: cisco 7000 이상은 위의 command와 조금 다르다.


5. bootflash memory 에 완전한 IMAGE S/W set을 넣어 정상적인
부팅을 시도할수 있다.



Flash Memory 로 부팅하기


san#conf t

Enter configuration commands, one per line. End with CNTL/Z.


san(config)#


san(config)#no boot system


san(config)#boot system flash


san(config)# ^Z


san#wr m


san#reload


san#sh ver

~ system image file is "flash:c4500-i-mz.111--7" booted via flash


1. Flash Memory 를 partition한 경우 특정 partition에서 부팅하고자 할 때는
다음과 같이 셋팅한다.

san(config)#boot system flash flash:1:rsp-jsv-mz.120-3c


2. CISCO 7507등의 경우 SLOT에 삽입된 카드타입의 Flash Memory로 부팅할 때는

다음과 같이 셋팅한다.

san(config)#boot system flash slot0:rsp-jsv-mz.120-3c


(3) TFTP 서버(202.30.68.241)로 부팅하기


san#


san#


san#conf t

Enter configuration commands, one per line. End with CNTL/Z.


san(config)#


san(config)#no boot system


san(config)#boot system tftp c4500-i-mz.111--7 202.30.68.241


san(config)#^Z


san#wr m


san#reload


san#sh ver


~ system image file is "c4500-i-mz.111--7" booted via tftp from 202.30.68.241

1. 위의 경우 라우터는 network내 tftp server (202.30.68.241)에서 image-file (c4500-i-mz.111--7)을 읽어서 부팅하게 된다.

2. LAN 구간에서 TFTP 서버 부팅이 가능하다.


3. WAN 구간을 경유한 경우에도 TFTP 서버 부팅이 가능하다.



멀티부팅 설정하기


san#conf t

Enter configuration commands, one per line. End with CNTL/Z.


san(config)#no boot system


san(config)#boot system flash


san(config)#boot system tftp c4500-i-mz.111-7 202.30.68.241


san(config)#boot system rom


san(config)#^Z


san#wr m


san#reload

1. 위의 경우 처음에 flash memory부터 부팅하게 되며 부팅 실패시 TFTP 서버로부터

부팅하게 되며 역시 부팅 실패시 마지막으로 ROM에서 부팅을 시도한다.



라우터를 TFTP 서버로 이용하기


-Server router설정하기


san#conf t

Enter configuration commands, one per line. End with CNTL/Z.


san(config)#


san(config)#int e 0


san(config-if)#ip addr 202.30.68.241 255.255.255.0


san(config-if)#exit


san(config)#


san(config)#tftp-server flash c4500-i-mz.111-7 1


san(config)#access-list 1 permit 210.109.216.0 0.0.0.255


san(config)#^Z


san#wr m


san#reload

1. CISCO 7507등의 경우는 tftp-server 설정부분에서 조금 틀리다.

san(config)#tftp-server flash:rsp-jsv-mz.120-3c 1


2. CISCO 7507등의 경우 SLOT에 삽입된 카드타입의 Flash Memory를 이용할 때는
다음과 같이 셋팅한다.

san(config)#tftp-server slot0:rsp-jsv-mz.120-3c 1


-Client router 설정하기


san#conf t

Enter configuration commands, one per line. End with CNTL/Z.


san(config)#


san(config)#int e 0


san(config-if)#ip addr 210.109.216.241 255.255.255.0


san(config-if)#exit


san(config)#


san(config)#no boot system


san(config)#boot system tftp c4500-i-mz.111-7 202.30.68.241


san(config)#^Z


san#


san#wr m


san#reload

1. 위의 경우 Client router는 network에 연결된 Server router(202.30.68.241)의 image-file

(c4500-i-mz.111-7)을 읽어서 부팅하게 된다.



show version command 분석


san#sh ver

Cisco Internetwork Operating System Software

IOS (tm) 4500 Software (C4500-I-M), Version 11.1(7), RELEASE SOFTWARE (fc2)

:현재 동작하고 있는 Image version이 11.1(7)임을 의미한다.


Copyright (c) 1986-1996 by cisco Systems, Inc.


Compiled Wed 23-Oct-96 21:35 by tej


Image text-base: 0x600088A0, data-base: 0x60436000


ROM: System Bootstrap, Version 5.2(7b) [mkamson 7b],RELEASE


SOFTWARE (fc1)

: Boot ROM의 Bootstrap을 의미한다.


ROM: 4500 Bootstrap Software (C4500-BOOT-M), Version 10.3(7),


RELEASE SOFTWARE


(fc1):Bootflash Memory의 Image를 의미한다.


seoul uptime is 30 minutes


System restarted by power-on


System image file is "flash:c4500-i-mz.111-7", booted via flash

:flash에 의해 부팅되었으며 flash내 Image version이 11.1(7)임을 의미한다.


cisco 4500 (R4K) processor (revision D) with 8192K/4096K


bytes of memory.

:Main Memory가 8M이고 Shared Memory가 4M이다.


Processor board ID 04007035


R4700 processor, Implementation 33, Revision 1.0


G.703/E1 software, Version 1.0.


Bridging software.


X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.


1 Ethernet/IEEE 802.3 interface.


4 Serial network interfaces.


128K bytes of non-volatile configuration memory.


4096K bytes of processor board System flash (Read/Write)


4096K bytes of processor board Boot flash (Read/Write)

:위에서는 라우터의 전반적인 하드웨어/소프트웨어 사양을 보여주고 있다.


Configuration register is 0x2102

: Boot field의 config-register가 0x2102로 되어있다.





[참 고]


: Privileged EXEC모드 관련 COMMAND


- CD - PWD - COPY


- DIR - PARTITION - FORMAT


- VERIFY - ERASE - DELETE / UNDELETE


- SQUEEZE




[참고2]


: 라우터와 메모리


1. Boot ROM


: bootstrap이 내장되어 있다.


2. ROM( bootflash )


: 부팅에 필요한 최소한의 기능이 내장된 image-file set 이 들어있다.


: bootflash memory 에 완전한 image-file set을 넣어 정상적인 부팅을
시도할수 있다.


3. Flash( system Flash = embedded Flash = internal Flash )


: 정상적인 부팅에 필요한 모든 기능이 내장된 image-file set 이 들어있다


4. RAM( Main Memory와 Shared Memory로 나뉘며 DRAM, SIMM등
여러 타입이 있다. )


: Main Memory는 image, routing table, protocols,기타 등에 이용되며


Shared Memory는 buffer로 이용된다.



[참고3]


: 라우터의 부팅과정


1. 라우터에 전원을 넣으면 프로세서가 먼저 H/W를 인식한 후에


2. Boot ROM에서 bootstrap을 Main Memory로 로딩한다.


3. 로딩된 bootstrap은 보통의 경우 먼저 Flash Memory에서
image-file을 Main Memory로 로딩


4. 다시 bootstrap은 NVRAM에서 Configuration을 Main Memory로 로딩한다.


5. 이후 Main Memory로 로딩된 image-file에 의해 라우터가 부팅을 하며
부팅된 라우터의 프로세서가 전반적인 설정환경등을 인식하여 기능을 수행한다.

Posted by theYoungman