기본적인 라우터 실행

Download Report

Transcript 기본적인 라우터 실행

Router 동작 mode (1/2)

User Mode



Router 동작 상태, Interface의 상태, 현황등을 check 할 수 있는
command 사용 가능
Router Configuration 의 변경은 불가
Privileged Mode


Router 의 Full Command가 사용 가능한 Mode
Router Configuration, Setup이 가능한 Mode
Connected to 10.2.2.1.
User Access Verification
Password:
ROUTER>
ROUTER>enable
Password:
ROUTER#
ROUTER#
User Mode Prompt
Privileged Mode Prompt
1
Router 동작 mode (2/2)
user mode
Router>
previledged mode
Router#
제한된 명령어만을 이용
모든 명령어를 이용할 수 있고
configuration file 조정할 수 있음
setup mode
RXBOOT mode
초기 환경설정previledged mode에서
명령어 setup을 입력하면 됨
비밀번호를 잃어버렸거나 Flash의
OS가 지워지는 등의 경우 이용
global configuration mode
Router(config)#
하위 configuration mode
Router(config-???)#
라우터운영 전체에 영향을 미치는
요소들을 조정할 수 있음. 하위
configuration mode로 전환할 수 있음
영역별 환경 설정
2
Command Help 사용법 – 1

현재 사용 mode prompt상에서 ‘?’를 type


User mode, priviledged mode, global configuration mode에 따라
다름
예> Previledged mode의 command help
3
Command help 특징




Symbolic translation
Keyword completion
Command prompting
Syntax checking
ROUTER#c?
calendar cd
clear
configure connect copy
clock
ROUTER#cale
ROUTER#calendar ?
set Set the time and date
cmt
Press [TAB]
ROUTER#calendar set ?
hh:mm:ss Current Time
ROUTER#calendar set 12:10:12 ?
<1-31> Day of the month
MONTH Month of the year
ROUTER#calendar set 12:10:12 128
^
% Invalid input detected at '^' marker.
ROUTER#
4
Command edit 사용법

Router Edit key 사용법







Ctrl-A : Command line의 시작점으로 이동
Ctrl-E : Command line의 끝으로 이동
Esc-F : One word 앞으로 이동
Esc-B : One word 뒤로 이동
Ctrl-F : One character 앞으로 이동
Ctrl-B : One character 뒤로 이동
Command 관련 key 사용법



Ctrl-P (or ↑ key) : 바로 전에 Type한 word를 recall
Ctrl-N (or ↓ key) : 가장 최근에 Type한 command를 recall
Tab : 입력한 문자열에 해당하는 Command로 완결
5
Router 내부 configuration 구성
Console
Interface
Auxiliary
ROM
Flash
[ ROM ]
Bootstrap
program&
Sub-OS
NVRAM
[ NVRAM ]
[ Flash ]
OS
Backup
Configuration
File
6
RAM
[ RAM ]
IOS
실행command
실행configuration file
Routing Table
Buffers
Router 구성
NVRAM
RAM
Flash
ROM
bootstrap program
실행
명령어
IOS(Internetwork OS)
active
program config
file
tables buffers
backup
config
file
Interfaces
LAN Interfaces
(e, t, f)
WAN Interfaces
(s, hssi)
7
IOS
bootstrap
program
subset
IOS
Console
Auxiliary
Router 상태 확인 명령어
RAM
Router#show version
NVRAM
Flash
ROM
bootstrap program
실행
명령어
Router#show process [cpu]
Router#show protocols
program
IOS(Internetwork OS)
active
config
file
tables buffers
backup
config
file
subset
IOS
Interfaces
Router#show running-config
Router#show memory
Router#show stacks
Router#show buffers
LAN Interfaces
(e, t, f)
IOS
bootstrap
program
WAN Interfaces
(s, hssi)
Console
Auxiliary
Router#show interface
Router#show flash
Router#show interface serial 0
Router#show startup-config
Router#show config
8
Router 동작 mode에 따른 특징

User Mode



일반적인 Router Monitor용 Command 사용가능
ex) ROUTER> show clock
Privileged Mode

Privileged 일반 Mode
 상세한 Monitor용 Command 사용가능
 Router debugging, testing 가능
 ex) ROUTER# show processes cpu

Global config Mode





Router의 전체적이고 일반적인 Configuration Command 가능
ex) ROUTER# (config)hostname samsung
세부 config Mode : Routing protocol setup, Interface setup 과 같은 부분별
setup Command가능
ex) ROUTER# (config-if)ip address 10.1.1.1 255.255.255.0
ROUTER# (config-router)network 10.0.0.0
9
Show command


‘Show’ command : Router에서 수행중인 Information을 출력
‘Show’ command 다음에 오는 중요 sub command들













access-lists : Packet Filtering 조건문을 보여주는 명령어
clock : System clock을 보여주는 명령어
configuration : 현재 router 설정 사항을 보여주는 명령어
history : 현재까지 입력한 command의 history를 보여주는 명령어
interfaces : Router에 장착된 LAN, WAN interface의 상황을 보여줌
ip : IP packet 서비스에 관련된 정보를 보여주는 명령어
line : Router에 설정된 VTY(가상터미널) line의 정보를 보여줌
logging : Router에 저장된 event 메세지를 보여주는 명령어
memory : Router의 Memory의 사용 현황을 보여주는 명령어
processes : Router의 수행중인 process 및 CPU사용현황을 보여줌
protocols : Router에서 수행중인 protocol들의 현황을 보여줌
users : Router에 login된 사용자 현황을 보여줌
version : Router의 ROM및 IOS의 정보를 보여주는 명령어
10
Show configuration



Show running-config : 현재 Router memory에 수행중인
configuration 출력
Show startup-config : NVRAM(Nonvolatile RAM)에 저장된
configuration
Show configuration = show startup-configuration
11
Show interfaces (1/3)


show interfaces : 현재 Router의 모든 Interface들의 상황
출력
show interfaces 해당 interface monitor 시



show interfaces fastethernet0/0 : FastEthernet type 0번 port
show interfaces serial 1 : Fast serial type 1번 port
show interfaces fastethernet 2/1 : FastEthernet type 2번 Slot의 1번
port
FastEthernet0/1
FastEthernet0/0 Console
12
Serial
Show interfaces (2/3)
13
Show interfaces (3/3)
14
Show ip


IP protocol과 관련된 정보를 보기위한 Pre command
show ip 다음의 중요 Sub command들





Show arp : Router의 ARP table의 내용을 보여줌 ( = show arp)
Show bgp, egp, eigrp, ospf : 각각의 Routing protocol에 대한
정보를 보여줌
Show interface : IP protocol이 수행되는 interface의 정보를 보여줌
Show route : Router의 IP정보에 대한 Routing table 정보를 보여줌.
Show traffic : Router에서의 IP packet의 traffic정보를 보여줌.
15
Show ip route


N/W address에 대한 Routing table의 Routing정보를
보여줌
특정 N/W address나 IP address의 Routing정보를 볼 경우

show ip route [ IP network address / IP address ]
OSPF
OSPF Inter Area
16
Show arp

Router의 ARP table 출력
17
Show ip traffic

IP packet에 대한 통계값 출력
18
Show logging

Router에 저장된 Router Event Message를 보여줌
Serial 1 Down
CISCO
Ethernet 0
Protocol Down
Router Config 변경
From IP :10.1.1.13
19
Other Network
Show processes (1/2)

show processes : Router의 수행 process들의 정보를
보여줌
20
Show processes (2/2)

show processes cpu : Router의 process별 CPU사용률을
보여줌
21
Show memory

Router memory의 사용내역, 현황 정보를 보여줌
22
Show protocols

현재 Router에서 수행되는 OSI 3 Layer protocol들의
상태를 출력

Ex) IP, DECnet, IPX, AppleTalk … protocols
23
Show version
24