본문 바로가기

네트워크

[router] 라우팅 테이블 및 네트워크 인터페이스 관련 정보를 확인하기 위한 명령어

반응형

라우팅 테이블 및 네트워크 인터페이스 관련 정보를 확인하기 위한 명령어

1. 라우팅 테이블 확인 (show ip route)

show ip route 명령을 사용하여 현재 시스템의 라우팅 테이블 정보를 표시할 수 있습니다.

show ip route
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
S    192.168.10.0/24 [1/0] via 192.168.20.1
C    192.168.20.0/24 is directly connected, Serial0/0
C    192.168.30.0/24 is directly connected, FastEthernet0/0

이 명령은 라우팅 테이블의 경로 및 대상 네트워크 정보를 표시합니다.

2. 네트워크 인터페이스 요약 확인 (show ip interface brief)

show ip interface brief 명령을 사용하여 현재 시스템에 구성된 네트워크 인터페이스의 요약 정보를 표시할 수 있습니다.

show ip interface brief
Router#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
FastEthernet0/0        192.168.30.1    YES manual up                    up
Serial0/0              192.168.20.2    YES manual up                    up

이 명령은 인터페이스의 IP 주소, 상태, 프로토콜 등을 요약하여 표시합니다.

3. 특정 인터페이스 정보 확인 (show ip interface [인터페이스명])

show ip interface 명령을 특정 인터페이스 이름과 함께 사용하여 해당 인터페이스의 자세한 정보를 표시할 수 있습니다.

show ip interface serial 0/0
Router#show ip interface serial 0/0
Serial0/0 is up, line protocol is up (connected) //Serial0/0 ISO 1계층,line protocol is up 2계층
  Internet address is 192.168.20.2/24
  Broadcast address is 255.255.255.255
  Address determined by setup command
  MTU is 1500 bytes
  Helper address is not set
  Directed broadcast forwarding is disabled
  Outgoing access list is not set
  Inbound  access list is not set
  Proxy ARP is enabled
  Security level is default
  Split horizon is enabled
  ICMP redirects are always sent
  ICMP unreachables are always sent
  ICMP mask replies are never sent
  IP fast switching is disabled
  IP fast switching on the same interface is disabled
  IP Flow switching is disabled
  IP Fast switching turbo vector
  IP multicast fast switching is disabled
  IP multicast distributed fast switching is disabled
  Router Discovery is disabled
  IP output packet accounting is disabled
  IP access violation accounting is disabled
  TCP/IP header compression is disabled
  RTP/IP header compression is disabled
  Probe proxy name replies are disabled
  Policy routing is disabled
  Network address translation is disabled
  WCCP Redirect outbound is disabled
  WCCP Redirect exclude is disabled
  BGP Policy Mapping is disabled
Router#

이 명령은 지정한 인터페이스의 IP 주소, 상태, 프로토콜, 입력 및 출력 패킷 카운트 등의 자세한 정보를 표시합니다.

 

이러한 명령어는 네트워크 관리자나 시스템 관리자가 네트워크 상태 및 라우팅 정보를 확인하고 문제를 해결하는 데 도움을 줍니다. 명령어의 구체적인 사용 방법 및 출력 형식은 사용 중인 라우터 또는 스위치의 운영 체제에 따라 다를 수 있으므로 관련 문서나 운영 체제 매뉴얼을 참조하는 것이 좋습니다.

 

728x90
반응형