본문 바로가기

Ryu's Tech

라우터의 내부구조, IOS, setup mode

라우터의 내부구조



  • NVRAM [ Non-volatile random access memory ]
    • 컴퓨터의 Hard disk나 Floppy disk와 같이 데이터를 저장할 공간을 대신하는 부분이다.
    • 비 휘발성으로 전원을 꺼도 저장정보가 없어지지 않는다.
    • Router# show startup-config or Router# show config

 

  • Flash
    • IOS가 저장되는 공간이다.
      • IOS란 Internetwork Opertaion System 을 말하는 것으로 CISCO 장비로 O/S라고 생각하면 된다.
    • 메모리의 교체나 확장이 가능하다.
    • 플래시 메모리의 데이터는 부팅시 RAM으로 올라간다.
    • Router> show flash

Router#show flash

System flash directory:
File  Length   Name/status
  1   16425536  c2500-is-l.122-15.T17.bin 
[16425600 bytes used, 351616 available, 16777216 total]
16384K bytes of processor board System flash (Read ONLY)

Router#

  • RAM
    • 실제 IOS가 올라오는 위치이다.
    • 사용자의 설정된 값을 저장하는 공간, 휘발성이기 때문에 저장하지 않으면 사라진다.
    • 전원을 켤때 NVRAM의 config를 불러온다.
    • Router# show running-config
  • ROM
    • 라우터의 상태점검이나 IOS의 위치들과 같은 기본적인 정보를 기록해 둔 곳이다.
    • Bootstrap을 이용하여 Flash의 IOS를 RAM으로 이동시켜준다.


 

  • 부팅 순서
    • Power On Self Test
    • Bootstrap
    • IOS 위치 확인
    • IOS Loading
    • Configuration 확인
    • Configuration 적용, Loading
    • Run Cisco IOS Software
    • User Mode


 


도서관 - 메모리저장소
각 책들 - 메모리
책상으로 책을 가져온다 생각하면
책상 - cache






보너스로 라우터의 셋업 모드를 한번 봅시다.





Router#setup


         --- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]: yes

At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.


Basic management setup configures only enough connectivity
for management of the system, extended setup will ask you
to configure each interface on the system

Would you like to enter basic management setup? [yes/no]: yes
Configuring global parameters:

  Enter host name [Router]: TestR    

  The enable secret is a password used to protect access to
  privileged EXEC and configuration modes. This password, after
  entered, becomes encrypted in the configuration.
  Enter enable secret: cisco


  The enable password is used when you do not specify an

  enable secret password, with some older software versions, and
  some boot images.
  Enter enable password: cisco1

  The virtual terminal password is used to protect
  access to the router over a network interface.
  Enter virtual terminal password: cisco2
  Configure SNMP Network Management? [no]: no

Current interface summary

Interface                  IP-Address      OK? Method Status                Protocol
Ethernet0                  unassigned      YES NVRAM  administratively down down   
Serial0                    unassigned      YES NVRAM  administratively down down   
Serial1                    unassigned      YES NVRAM  administratively down down   
Virtual-Access1            unassigned      YES unset  up                    up     

Enter interface name used to connect to the
management network from the above interface summary: ethernet0

Configuring interface Ethernet0:
  Configure IP on this interface? [no]: yes
    IP address for this interface: 192.168.1.1
    Subnet mask for this interface [255.255.255.0] : 255.255.255.0
    Class C network is 192.168.1.0, 24 subnet bits; mask is /24

The following configuration command script was created:

hostname TestR
enable secret 5 $1$5uAG$UZR0y2lGMtveIgAiyLzsM.
enable password cisco1

line vty 0 4
password cisco2
no snmp-server
!
no ip routing

!
interface Ethernet0
no shutdown
ip address 192.168.1.1 255.255.255.0

!
interface Serial0
shutdown
no ip address
!
interface Serial1
shutdown 
no ip address
!
end


[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.

Enter your selection [2]: 0
% You can enter the setup, by typing setup at IOS command prompt
Router#

보시는대로 앞에서 이런 저런 설정한 부분들을 마지막에 보여주고
어떤 작업을 할지를 물어보는군요.