개요
시스코 장비의 라우팅 목록을 해석하는 방법입니다. 아래 명령을 통해 목록 확인 가능합니다. 까먹지 않기 위해 작성하는 메모성 글입니다.
en
sh ip route
출력 예제 :
Codes: L - local, C - connected, S - static, 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
10.0.0.0/8 is variably subnetted, 12 subnets, 2 masks
C 10.0.0.0/24 is directly connected, FastEthernet0/0
L 10.0.0.1/32 is directly connected, FastEthernet0/0
C 10.0.1.0/24 is directly connected, FastEthernet0/1
L 10.0.1.1/32 is directly connected, FastEthernet0/1
C 10.0.2.0/24 is directly connected, FastEthernet1/0
L 10.0.2.1/32 is directly connected, FastEthernet1/0
C 10.0.3.0/24 is directly connected, FastEthernet1/1
L 10.0.3.1/32 is directly connected, FastEthernet1/1
R 10.1.0.0/24 [120/1] via 10.0.0.2, 00:00:29, FastEthernet0/0
R 10.1.1.0/24 [120/2] via 10.0.0.2, 00:00:29, FastEthernet0/0
[120/2] via 10.0.3.2, 00:00:14, FastEthernet1/1
R 10.1.2.0/24 [120/2] via 10.0.3.2, 00:00:14, FastEthernet1/1
R 10.1.3.0/24 [120/1] via 10.0.3.2, 00:00:14, FastEthernet1/1
R, RIP, Routing Information Protocol
R 10.1.1.0/24 [120/2] via 10.0.0.2, 00:00:29, FastEthernet0/0
[120/2] via 10.0.3.2, 00:00:14, FastEthernet1/1
1. 나에게 오는 10.1.1.0/24 요청은 10.0.0.2 로 라우팅한다. 나의 FastEthernet 0/0 을 통해서
2. 나에게 오는 10.1.1.0/24 요청은 10.0.3.2 로 라우팅한다. 나의 FastEthernet 1/1을 통해서
3. RIP의 Metric 계산 방법은 hop의 갯수이므로, 둘 중 hop의 갯수가 낮은 루트로 라우팅된다.
'컴퓨터공학 & 정보통신 > 네트워크 & Cisco' 카테고리의 다른 글
[네트워크/Cisco] 시스코 명령어 모음집 (0) | 2025.04.22 |
---|---|
[네트워크/CIsco] enable secret 설정하기 (0) | 2025.04.13 |
[네트워크/Cisco] User, Privileged (Interface, Routing Engine, Line) Mode 정리 (0) | 2025.04.09 |
[네트워크/Cisco] CDP (Cisco Discovery Protocol) (0) | 2025.04.09 |
[네트워크/Cisco] Router ping 테스트 및 Router Table 업데이트 명령어 (0) | 2025.01.17 |