[IT Trend]/Network

[펌] [CCNA] Configuration Methods and Modes

하늘을닮은호수M 2005. 7. 20. 13:08
반응형

Configuration Methods and Modes

Chap 6. Configuration Methods and Modes
-참고 : 시스코 라우터는 Auto install 기능이 있다.
S0에 근접한 라우터로부터 serarp(Serial arp)을 이용 자체적으로 IP setting,
IP Helper Address로부터 tftp정보를 받는다.

- 라우터 시스템 Start Up 절차
1. check hardware
2. Find and load Cisco IOS software image --> fallback operation을 한다. (다음 그림참조)
3. Find and apply router configuration information

- Startup Sequence (fallback operation)



- Startup 관련 명령어
Router# show startup-config --> NVRAM
Router# show running-config --> RAM
Router# erase startup-config * running config는 지울수 없다.(당연하겠죠)
Router# reload --> warm start, IOS만 재부팅
Router# setup

- SETUP : The system configuration Dialog (대화형 설정기능)
* 진행중 '?'넣으면 언제든지 Help가 가능
* ctrl + C 언제든지 setup모드 종료가능. 그러나 그 동안 작업한 내용은 모두 cancel됨
* 디폴트 셋팅은 '[ ]'안에 나온다. 이것을 선택하려면 enter만 누르면 됨.
이미 설정된 사항(NVRAM에 이미 정의된 내용)이 디폴트로 나온다.
그러나 나서 기존에 setting된 내용이 없으면 기본 router default값이 뜬다.
* 끝까지 진행되야만 저장, 반영된다.

- Setup모드 : Global Parameter들이 주로 설정된다. 물론 모든기능을 다 설정할 수는 없다.
password - enable secret <-- 암호화되어 show running-config로 보이지 않는다.
- enable password <-- plain text
- virtual terminal password <-- 설정이 되어야만 telnet접속이 가능.
(.. 뒤에 다시 나온다)

: Interface Parameter도 설정 가능.
* 위에서 설정된 사항들은 NVRAM에 직접 backup 된다. (Setup mode특징이다.)

- Config file다루기. (Privileged mode : Router# configure )


- Router# copy running-config tftp --> Remote host_name을 묻는다.
- Router# copy tftp running-config 주의:복사되자마자 즉시 반영된다.

┏━ a host configuration file : 한라우터에 적용될 명령. host-config
┗━ Network configuration file : 모든 라우터들과 터미널 서버들에 적용될 명령. network-config


-라우터의 EXEC mode
Router>
Router# 주의 : ctrl + Z config mode 끝낸다.
Router(config)# Exit 한단계씩 위 level로 올라간다.
--------------------------------- specific configuration modes
Router(config-if)#
Router(config-subif)#
Router(config-map-list)#
Router(config-map-class)#
Router(config-line)#
Router(config-router)#
Router(config-ipx-router)#
Router(config-controller)#
Router(config-router-map)#
등등이있다.....

- Router# config term 하면 기본적으로 global configuration mode가 된다.
━┳━
┗━ configuration source를 지정 ( 터미널(default) , NVRAM, Network file(tftp)서버 )

Router(config)# router protocol ..... other Configuration modes가 된다.
예) Router(config)# router rip
Router(config)# router ospf.. 등 (라우팅 프로토콜 관련)

Router(config)# interface type port -> 인터페이스 관련.
예) Router(config)# interface e 0
Router(config)# interface s 0
Router(config)# interface s0 -> 붙여써도된다.

- Global 설정에서 # line console 0 를 해서 설정을 해야 콘솔에 직접 연결이 가능해 진다.
# line vty 0 4 0번 line에서부터 4번 line(5개)이 접속가능하다.
(뒤에 다시 나온다)

- IP Routing Protocol Mode
Router(config)# router ?
bgp, egp, eigrp, igrp, isis, iso-igrp, mobile, odr 등등 가능...
"Router(config)# router rip" 하면 "Router(config-router)#"으로 프롬프트가 바뀐다.

- Interface Configuration Mode
Router(config)# interface type port
Router(config)# interface type slot/port <= 라우터 모델(2524,3600시리즈)에 따라 slot module방식임.
serial
ethernet
tokenring
fddi
hssi
loopback
dialer
null
async
atm
bri
tunnel

Router(config-if)# shutdown : administrative turn off 인터페이스 셧다운.
Router(config-if)# no shutdown : turn on
Router(config)# interface type number.subinterface
: 하나의 물리적 인터페이스를 여러개의 virtual sub-interface로 나누어 사용할 수 있다.
logically 주로 frame relay에서 많이 사용한다.



참고: interface description block(IDB)은 최대 300개이다. 총 가능한 interface의 개수.


- interface configuration 예
* Serial interface (DCE:장비), clockrate 명령을 사용
예) DSU, MODEM, NT1 (ISDN)
참고 : DCE 장비의 최대목적은 CLOCK동기화이다.

Router(config)# interface serial 1/0
Router(config-if)# bandwidth 56(or 128kbps) --> IGRP등의 라우팅 protocol에서 사용 56K,128K는
실제 속도와 무관하며 기술안하면 서비스되는 속도로 자동지정된다.
라우팅 경로 결정시 속도 가중치를 적용위해 인식된다.
( 아니면 default T1(1.472Mbps?)으로 인식된다. ..OSPF등에서 )
Router(config-if)# clockrate 56000

- Token Ring 참고: 링스피드를 꼭 지정하여야 한다.
Router(config)# interface tokenring 2/0
Router(config-if)# early-token release
Router(config-if)# ring-speed 16(or 4)

- Cisco 4000 시리즈의 ethernet 참고: interface box에 AUI와 10BaseT가 2개 존재. default가 AUI이다.
Router(config)# interface ethernet 2
Router(config-if)# media-type 10baset <== 오직 4000시리즈만 해당. 미디어type을 setting

- subinterface를 만들기 전에 Primary interface를 설정하여야만 한다.
Router(config)# interface serial 0
Router(config-if)# int s 0.1 point-to-point
Router(config-if)# int s 0.2 point-to-point

참고: 시리얼 링크에서 clocking signal을 한편에서 제공해야하는데 이를 DCE라 하고 그반대편을 DTE라 한다.

- Configuration 방법
Router(Confing)# no .... : 해당 entry가 지워짐.
Router# config mem : NVRAM의 config가 다시 메모리에 로드. 기존 수정분 사라짐
Router# copy tftp running-config (현재설정에 즉시 반영된다. 만일 ip가 바뀐다면 설정중인 telnet세션이 끊긴다.)
Router# erase startup-config
Router# reload

* Power-ON시 Autoinstall이 행해진다.
( NVRAM에 Config정보가 없으므로)

- Password Configuration.
* 콘솔 password
Router(config)# line console 0 참고: 콘솔은 line 0 AUX는 line 1이다.
Router(config-line)# login
Router(config-line)# password cisco <== user mode로 들어갈때.

* Virtual Terminal Password
Router(config)# line vty 0 4 --> 5개 동시 seting
Router(config-line)# login
Router(config-line)# password cisco

- Password는 2단계 (user/privilleged)로 되어있다.
Router(config)# enable password san-fran ==> 단! show running-config시 다 보인다.

- Password encryption (잘안쓴다)
- Router(config)# service password-encryption
- Router(config)# no service password-encryption <== rollback이 안된다.

- enable secret를 주로 쓴다. 참고: assign the Privilleged level secret
system configuration Dialog의 password를 encryption한다.
위의 service password-envryption을 통해 display를 보호한다.
참고 : DES algorithm과 같지 않다.

- Configuration Router Identification (라우터이름이 곧 호스트 name이 된다)
* 라우터 이름 설정 (router name)
Router(config)# hostname abcde 하면
abcde# 으로 프롬프트가 바뀐다.

* Login Banner
abcde# banner motd # <━━━━━┳━ '#'으로 시작하고 '#'으로 끝난다.
Welcom to my Router World ┃
# 라인 첫글자에 '#' <━━━━━┛
항상 로그인시 설정한 배너문구가 화면에 나온다.

- interface description
abcde(config)# interface e 0
abcde(config-if)# description Engineering LAN.....
━━━━━━━━━━
인터페이스에 대한 description을 기술한다.

[인터넷 펌]

반응형

'[IT Trend] > Network' 카테고리의 다른 글

[펌] [CCNA] RIP  (0) 2005.08.01
[펌] IP 멀티캐스팅의 활용  (0) 2005.07.22
[펌] [CCNA] USER INTERFACE  (0) 2005.07.20
[펌] [CCNA] ROUTER BASICS  (0) 2005.07.20
[펌] [CCNA] 시스코 라우터는 이 장애를 처리하기  (0) 2005.07.20