24
1 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 (1/2) User Mode Router 동작 상태, Interface 의 상태, 현황등을 check 할 수 있는 command 사용 가능 Router Configuration 의 변경은 불가 Privileged

Embed Size (px)

Citation preview

1

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>enablePassword:ROUTER#ROUTER#

User Mode PromptUser Mode Prompt

Privileged Mode PromptPrivileged Mode Prompt

2

Router 동작 mode (2/2)

user modeRouter>

제한된 명령어만을 이용

previledged modeRouter#

모든 명령어를 이용할 수 있고 configuration file 조정할 수 있음

setup mode

초기 환경설정 previledged mode 에서 명령어 setup 을 입력하면 됨

RXBOOT mode

비밀번호를 잃어버렸거나 Flash 의 OS 가 지워지는 등의 경우 이용

global configuration modeRouter(config)#

라우터운영 전체에 영향을 미치는 요소들을 조정할 수 있음 . 하위

configuration mode 로 전환할 수 있음

하위 configuration modeRouter(config-???)#

영역별 환경 설정

3

Command Help 사용법 – 1

현재 사용 mode prompt 상에서 ‘ ?’ 를 type User mode, priviledged mode, global configuration mode 에 따라

다름 예 > Previledged mode 의 command help

4

Command help 특징

Symbolic translation Keyword completion Command prompting Syntax checking

ROUTER#c?calendar cd clear clock cmtconfigure connect copy ROUTER#cale ROUTER#calendar ? set Set the time and date 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#

Press [TAB]Press [TAB]

5

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 로 완결

6

Router 내부 configuration 구성

ROM Flash NVRAM RAM

Auxiliary

ConsoleInterface

[ RAM ]IOS

실행 command실행 configuration file

Routing TableBuffers

[ NVRAM ]

BackupConfiguration

File

[ Flash ]

OS

[ ROM ]

Bootstrapprogram&Sub-OS

7

Router 구성

RAM

InterfacesLAN Interfaces

(e, t, f)WAN InterfacesWAN Interfaces

(s, hssi)(s, hssi)

ConsoleConsole

AuxiliaryAuxiliary

bootstrap program

IOS(Internetwork OS)실행실행명령어명령어

programactiveactiveconfig config

filefiletablestables buffersbuffers

NVRAM Flash ROM

backupconfig

file

IOSIOSbootstrapbootstrapprogramprogram

subsetsubsetIOSIOS

8

Router 상태 확인 명령어

RAM

InterfacesLAN Interfaces

(e, t, f)WAN InterfacesWAN Interfaces

(s, hssi)(s, hssi)

ConsoleConsole

AuxiliaryAuxiliary

bootstrap program

IOS(Internetwork OS)실행실행명령어명령어

programactiveactiveconfig config

filefiletablestables buffersbuffers

NVRAM Flash ROM

backupconfig

file

IOSIOS

bootstrapbootstrapprogramprogram

subsetsubsetIOSIOS

Router#show version

Router#show process [cpu]Router#show protocols

Router#show running-config

Router#show memoryRouter#show stacksRouter#show buffers Router#show startup-config

Router#show config

Router#show interface Router#show interface serial 0

Router#show flash

9

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

10

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 의 정보를 보여주는 명령어

11

Show configuration

Show running-config : 현재 Router memory 에 수행중인 configuration 출력

Show startup-config : NVRAM(Nonvolatile RAM) 에 저장된 configuration

Show configuration = show startup-configuration

12

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

Serial

13

Show interfaces (2/3)

14

Show interfaces (3/3)

15

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 정보를 보여줌 .

16

Show ip route

OSPF

OSPF Inter Area

N/W address 에 대한 Routing table 의 Routing 정보를 보여줌

특정 N/W address 나 IP address 의 Routing 정보를 볼 경우 show ip route [ IP network address / IP address ]

17

Show arp

Router 의 ARP table 출력

18

Show ip traffic

IP packet 에 대한 통계값 출력

19

Show logging

Router 에 저장된 Router Event Message 를 보여줌

CISCO

Serial 1 Down

Ethernet 0 Protocol Down

Router Config 변경From IP :10.1.1.13

Other Network

20

show processes : Router 의 수행 process 들의 정보를 보여줌

Show processes (1/2)

21

Show processes (2/2)

show processes cpu : Router 의 process 별 CPU사용률을 보여줌

22

Show memory

Router memory 의 사용내역 , 현황 정보를 보여줌

23

현재 Router 에서 수행되는 OSI 3 Layer protocol 들의 상태를 출력 Ex) IP, DECnet, IPX, AppleTalk … protocols

Show protocols

24

Show version