라우터 (Router)2015. 12. 24. 19:09

1. show version


라우터의 기본적 내용과 IOS 버전, 부팅을 어디서 했는지등 여러 상황을 보여주는 명령어 입니다.

Router#show  version
IOS (tm) 4000 Software (XX-IN-M), Version 11.0(10), RELEASE SOFTWARE (fc3)
Copyright 1986-1996 by cisco Systems, Inc.
Compiled Mon 05-Aug-96 20:20 by loreilly
Image text-base: 0x00012000, data-base: 0x003B31F4

ROM: System Bootstrap, Version 4.14(7), SOFTWARE

Router uptime is 8 weeks, 4 days, 21 hours, 23 minutes
System restarted by power-on
System image file is "xx-in-mz.110-10", booted via flash

cisco 4000 (68030) processor (revision 0xB0) with 8192K/4096K bytes of memory.
Processor board ID 5048940
G.703/E1 software, Version 1.0.
Bridging software.
X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.
2 Ethernet/IEEE 802.3 interfaces.
8 Serial network interfaces.
128K bytes of non-volatile configuration memory.
4096K bytes of processor board System flash (Read/Write)

Configuration register is 0x2102
                                                          
위에서 Router uptime 8week~~ 라고 나오는 부분 있죠?
이것은 라우터가 작동하기 시작한 시간을 나타내는 것입니다.
만약 이부분의 시간이 짧다면-몇 분 단위로 이러면 헐~^^- 라우터가 불안한 것이겠죠?
System restarted by power-on
라우터가 다시 작동을 하는데 어떻게 다시 작동을 했는냐를 나타내줍니다.
여기서는 power ON 에 의해 다시 시작되었네요.. ^^
그리고 Configuration register is 0x2102 는 부팅이 어디서 되었는지를 나타내줍니다. 앞에서 언급했는 내용입니다.



2. show configuration



라우터에서 작동되고 있는 configuration file 을 보는 명령어입니다. Configuration file 에는 두가지가 있습니다.

- show startup-config (sh conf)
    현재 Router NVRAM에 저장된 config 를 보여줍니다.
- Show running-config (sh run)
    현재 Router memory에서 수행중인 config 를 보여줍니다.

위에 두 configuration file 은 같을 수도 있고, 다를 수도 있습니다. 차이점은 아시겠습니까?
차이점을 아시는 분은 리플 달아주세요~
저두 첨에는 이 미세한 차이점 몰라서 낭패를 본 적이 있습니다.
음.. 됐구나 하다가.. 헐~ 그런 적이 있었죠~ ^^*


3. show interface



현재 Router의 모든 Interface들의 상황을 보여줍니다. 이 명령어는 실제로 많이 쓰이는 명령어 중에 하나일 것입니다.
라우터와 외부 망과의 연결 상태 등을 볼 수 있으며 장애처리 등을 할 때도 자주 쓰입니다.
세부적인 사항을 더 자세히 알아보겠습니다.

Router#sh int s1
  Serial1 is up, line protocol is up
  Hardware is HD64570
  MTU 512 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 22/255
  Encapsulation FRAME-RELAY, loopback not set, keepalive set (10 sec)
  LMI enq sent  114077, LMI stat recvd 114077, LMI upd recvd 0, DTE LMI up
  LMI enq recvd 0, LMI stat sent  0, LMI upd sent  0
  LMI DLCI 1023  LMI type is CISCO  frame relay DTE
  Broadcast queue 0/64, broadcasts sent/dropped 0/0, interface broadcasts 20633
  Last input 0:00:00, output 0:00:00, output hang never
  Last clearing of "show interface" counters 1w6d
  Input queue: 3/75/82 (size/max/drops); Total output drops: 0
  Output queue: 0/64/0 (size/threshold/drops)

     Conversations  0/38 (active/max active)
     Reserved Conversations 0/0 (allocated/max allocated)
  5 minute input rate 364000 bits/sec, 130 packets/sec
  5 minute output rate 136000 bits/sec, 112 packets/sec
     45825507 packets input, 1310217274 bytes, 82 no buffer
     Received 0 broadcasts, 0 runts, 0 giants
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     34783586 packets output, 2266750446 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets, 0 restarts
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up
Router#                  

- Serial1 is up, line protocol is up
시리얼 인터페이스 가 정상 작동한다는 것을 보여주는것입니다. 만약 하나라도 down 이 나온다면 문제가 있는것이니까 점검을 하셔야 합니다.
여기서 Serial 은 1계층 상태, 즉 물리적 상태를 나타내 주는것이고, line protocol 은 2계층 상태를 나타내는 것입니다.
- Serial1 is down, line protocol is down
회선이 정상적으로 구성되어 있지 않을때 발생합니다.
원인은 CSU 모뎀 OFF, V.35 케이블 불량, CSU V.35 포트 불량, CSU 불량, 라우터 시리얼 포트 불량 등이 있으니.. 이를 모두 점검해봐야 합니다.
- Serial1 is up, line protocol is down
2계층 상태가 down 이기 때문에.. 링크가 되지 않았을 경우 발생합니다.
전용회선 Loop Back 테스트로 회선점검, 라우터 시리얼 포트 교체 등...
- Serial1 is up, line protocol is up(loop)
회선 루프 상태입니다. 회선 구간 시험을 하면 이런 현상이 나타나는데.. 회선 테스트 후 loop 를 풀지 않아서 발생합니다
- Serial1 is administratively, line protocol is administratively
시리얼 포트가 shutdown 된 상태입니다. 이는 라우터 config 로 들어가 라우터 인터페이스를 no shutdown 시키면 됩니다.

rely 는 회선 신뢰도를 나타내는 것입니다.255/255 에서 255는 100% 신뢰성이고 앞 숫자가 떨어지면 WAN 구간이 문제입니다
              중간교환기 문제일 가능성이 큽니다.
              만약 이더넷 포트에서 숫자가 떨어진다면 S/W, HUB 장비 문제일 가능성이 큽니다.
load 는 인터페이스에 걸리는 부하를 나타내는 것입니다. 즉, LAN -> WAN 으로 나갈때의 부하입니다.
               로드값이 100 이상을 넘어가면 생각해봐야 할 문제입니다.
            
Input queue: 4/75/82 (size/max/drops); Total output drops: 0
  Output queue: 0/64/0 (size/threshold/drops)
에서 drops은 Queue가 차서 버리는 패킷의 수를 나타냅니다. 즉 처리하지 못한 데이터죠.
물론 적을 수록 좋겠죠? ^^

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
에서 CRC 에러는 회선상의 에러이므로 증가하면 회선 점검을 하셔야 합니다.

DCD=up  DSR=up  DTR=up  RTS=up  CTS=up 는 시리얼 인터페이스가 정상작동 될 때 모두 UP 입니다.
만약 하나라도 정상작동 되지 않는다면 down 이 됩니다.


그리고 특정 인터페이스를 지정해서 볼 수도 있습니다. 예를 들어

이더넷 인터페이스 0번 만 보고 싶다면  
     show interfaces ethernet 0      (sh int e0)

시리얼 인터페이스 1번 만 보고 싶다면  
     show interfaces serial 1        (sh int s1)

'라우터 (Router)' 카테고리의 다른 글

라우터 초기화  (0) 2015.12.24
라우터 트러블 슈팅  (0) 2015.12.24
시스코 네트워크 라우터 사용 매뉴얼  (0) 2015.12.24
Router Status Command #3  (0) 2015.12.24
Router Status Command #2  (0) 2015.12.24
Posted by 랩퍼우