본문 바로가기

IT STUDY/CCNA

[Router] 1. 라우터 상태를 확인하는 명령어 show

반응형

 

이번 시간에는 라우터의 상태를 확인하는 명령어인 show 명령어 중 관리를 하면서 가장 많이 사용되는 

show version, show ip interface brief , show flash, show processes cpu, show ip interface breif, show run

에 대해서 포스팅 하겠습니다.

 

 

 

 

 

 

Chapter 1 - Show version

 S/W 버전, 인터페이스 종류, IOS 부팅정보 등을 보여 준다.

Router#show version
Cisco Internetwork Operating System Software
IOS (tm) PT1000 Software (PT1000-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)     ← IOS 정보
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 27-Apr-04 19:01 by miwang
Image text-base: 0x8000808C, data-base: 0x80A1FECC
ROM: System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
Copyright (c) 2000 by cisco Systems, Inc.
ROM: PT1000 Software (PT1000-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
System returned to ROM by reload
System image file is "flash:pt1000-i-mz.122-28.bin"     ← IOS 플래시 이미지 저장 위치 및 파일 이름
PT 1001 (PTSC2005) processor (revision 0x200) with 60416K/5120K bytes of memory
.
Processor board ID PT0123 (0123)
PT2005 processor: part number 0, mask 01
Bridging software.
X.25 software, Version 3.0.0.
4 FastEthernet/IEEE 802.3 interface(s)     ← 4개의 Fast Ethernet 과 2개의 serial을 가지고 있다.
2 Low-speed serial(sync/async) network interface(s)
 

32K bytes of non-volatile configuration memory. ← NVRAM = 29KB
63488K bytes of ATA CompactFlash (Read/Write)  ← 용량 = 62MB
Configuration register is 0x2102

 

 

 

 

Chapter 2 - Show flash

플래쉬 메모리, 플래쉬 파일이름, 사이즈등을 확인하는 명령어(IOS 이미지 정보)

Router#show flash:
System     flash                 directory:
File          Length       Name/status
  3           5571584      pt1000-i-mz.122-28.bin
  2           28282        sigdef-category.xml
  1           227537       sigdef-default.xml
[5827403 bytes used, 58188981 available, 64016384 total]
63488K bytes of processor board System flash (Read/Write)

 

 

 

Chapter 3 - Show ip interface brief

라우터에 장착된 모든 인터페이스의 물리 계층, 데이터 링크 계층에 up, down 상태 및 IP주소 정보를 확인 하는 명령어

Router#show ip interface brief
Interface              IP-Address      OK?        Method          Status  Protocol
 
FastEthernet0/0        unassigned      YES unset  administratively         down     down
 
FastEthernet1/0        unassigned      YES unset  administratively         down     down
 
Serial2/0                 unassigned      YES unset  administratively         down     down
 
Serial3/0                  unassigned      YES unset  administratively         down     down
 
FastEthernet4/0        unassigned      YES unset  administratively         down     down
 
FastEthernet5/0        unassigned      YES unset  administratively         down     down


- show ip interface brief의 상태창 확인하기

 Physical Layer

 DataLink Layer

 인터페이스 상태

 문제 원인

 up

up 

  - 정상

  - 이상 없음

 up

 down

  - 데이터링크 계층 문제

  - 캡슐화의 실수, Clock Rate 문제, Keep alive 교환 실패

 down

 down

  - 물리 계층 문제

  - 케이블 손상, 케이블 배선 및 인터페이스 손상

 administratively down

 down

  - 관리자가 의도적으로 Down시킴

  - 관리의 목적으로 관리자가 shutdown 시킨 상태

 down

 up

  - 불가능

  - 물리계층이 Down되면 데이터링크도 반드시 Down

 

 

 

 

Chapter 4 - Show ip route

플래쉬 메모리, 플래쉬 파일이름, 사이즈등을 확인하는 명령어(IOS 이미지 정보)

Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP       ← 사용할 수 있는 모드에 대한 설명
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route
Gateway of last resort is not set      ← 현재 routing table 정보
C    210.210.2.0/24 is directly connected, Serial0
C    210.210.1.0/24 is directly connected, Ethernet0

 

 

 

 

 

 

Chapter 5 - Show running-config, Show startup-config

라우터 작업을 하면서 가장 중요한 명령어인 구성파일을 보는 명령어로 구성파일의 종류로는 현재 구성 파일백업 구성파일이 있다.
현재 구성파일을 보려면 show run이라는 명령어를 백업 구성 파일을 보려면 show start라고 치면 된다.

Router#show run   ←show run(메모리), show start(NVRAM)에 저장되며, start는 백업 구성파일이기때문에 개인적으로 저장하지 않으면 갱신되지 않는다. 

Building configuration...
Current configuration : 643 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
.... 생략 ....
!
!
interface FastEthernet5/0
 no ip address
 shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 Serial2/0
!
!
line con 0
line vty 0 4
login

end

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

반응형