본문 바로가기

네트워크

Routing table(라우팅 테이블) 보는 법

Sungsu_R#sh 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

 

120.0.0.0/8 is variably subnetted, 6 subnets, 5 masks

C 120.1.2.0/25 is directly connected, FastEthernet0/0

S 120.1.2.128/26 [1/0] via 120.1.2.246

S 120.1.2.192/27 [1/0] via 120.1.2.246

S 120.1.2.224/28 [1/0] via 120.1.2.246

C 120.1.2.240/29 is directly connected, FastEthernet0/1

S 120.1.2.248/29 [1/0] via 120.1.2.246

 

 

[1/0]

AD value 신뢰도,우선순위 (낮을수록 더 높다)

Administrative Distance value

routing protocol

static AD value 1 (default)

 

C - connected 0

S - static 1

I - IGRP 100

O - OSPF 110

R - RIP 120

 

[1/0]

metric : network cost (비용)

라우터마다 비용 계산하는 방법이 다르다.

 

routing table :    S network address [1 / 0]  via gateway_ip

static route : ad value = 1

static route : metric = 0