본문 바로가기
자격증공부/CCNA

CCNA - 230514 - 4주차 일요일[1] (다음 주는 휴강.)

by bestchoco 2023. 5. 14.

1. RIP의 경우 다른 장비에서 업데이트를 해도 즉각 반영되지 않는다.

이유: RIP은 기본으로 30초마다 갱신되기 때문이다.

-> 갱신이 끝나도 이전 값이 잔류하고 있을 경우 재기동한다. 

 

show ip route

C: connected

L: local


possibly down, -> show ip route 에서 정보가 사라지고 있는 중.


172.16.0.0/24 is subnetted, 4 subnets                                               -> 172.16.0.0/16 으로 나와야 함 (시뮬레이터 오류)

R 172.16.1.0/24 [120/1] via 10.1.1.14, 00:00:22, GigabitEthernet0/0/0

R 172.16.2.0/24 [120/1] via 10.1.1.14, 00:00:22, GigabitEthernet0/0/0

R 172.16.3.0/24 [120/1] via 10.1.1.14, 00:00:22, GigabitEthernet0/0/0

R 172.16.4.0/24 [120/1] via 10.1.1.14, 00:00:22, GigabitEthernet0/0/0


rip 재분배 (R3에서)

-> Router(config-router)#redistribute rip subnets

 

R2에서 변동사항: E2가 생김 (External, metric-type 2) => metric-type 1은 변동, 2는 고정(기본값)

Router>show 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

 

1.0.0.0/8 is variably subnetted, 7 subnets, 3 masks

O 1.1.1.1/32 [110/65] via 1.1.12.1, 00:01:57, Serial0/1/0

C 1.1.12.0/24 is directly connected, Serial0/1/0

L 1.1.12.2/32 is directly connected, Serial0/1/0

C 1.1.23.0/30 is directly connected, Serial0/1/1

L 1.1.23.1/32 is directly connected, Serial0/1/1

O IA 1.1.34.0/30 [110/128] via 1.1.23.2, 00:01:42, Serial0/1/1

O IA 1.1.45.0/24 [110/192] via 1.1.23.2, 00:01:42, Serial0/1/1

2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C 2.2.2.0/24 is directly connected, Loopback0

L 2.2.2.2/32 is directly connected, Loopback0

3.0.0.0/32 is subnetted, 1 subnets

O IA 3.3.3.3/32 [110/65] via 1.1.23.2, 00:01:42, Serial0/1/1

4.0.0.0/32 is subnetted, 1 subnets

O IA 4.4.4.4/32 [110/129] via 1.1.23.2, 00:01:42, Serial0/1/1

5.0.0.0/32 is subnetted, 1 subnets

O IA 5.5.5.5/32 [110/193] via 1.1.23.2, 00:01:42, Serial0/1/1

10.0.0.0/29 is subnetted, 1 subnets

O E2 10.1.1.8/29 [110/20] via 1.1.23.2, 00:00:06, Serial0/1/1

172.16.0.0/24 is subnetted, 4 subnets

O E2 172.16.1.0/24 [110/20] via 1.1.23.2, 00:00:06, Serial0/1/1

O E2 172.16.2.0/24 [110/20] via 1.1.23.2, 00:00:06, Serial0/1/1

O E2 172.16.3.0/24 [110/20] via 1.1.23.2, 00:00:06, Serial0/1/1

O E2 172.16.4.0/24 [110/20] via 1.1.23.2, 00:00:06, Serial0/1/1

 


[외부 네트워크 연동 R3 - R10] -> R2에서 적용되었는지 확인.

 

metric은 link speed: 가까울수록 값이 작음. (R2 IA 기준)

-> R2의 E2는 외부에 값 전달 시 고정값에 따라서 똑같은 값(METRIC)을 전달한다. (기본은 20)

 

-> metric값을 50으로 변경하여 준다면?

R3(config-router)#redistribute rip metric 50 subnets

이거 먼저 해주기.

 

R2>show ip route

..

O E2 10.1.1.8/29 [110/50] via 1.1.23.2, 00:00:27, Serial0/1/1

172.16.0.0/24 is subnetted, 4 subnets

O E2 172.16.1.0/24 [110/50] via 1.1.23.2, 00:00:27, Serial0/1/1

O E2 172.16.2.0/24 [110/50] via 1.1.23.2, 00:00:27, Serial0/1/1

O E2 172.16.3.0/24 [110/50] via 1.1.23.2, 00:00:27, Serial0/1/1

O E2 172.16.4.0/24 [110/50] via 1.1.23.2, 00:00:27, Serial0/1/1

..

 

R3(config-router)#redistribute ospf 1 metric 1

그 다음 두 번째 명령어.

R5(config-router)#router ospf 1

Router(config-router)#redistribute eigrp 100 metric ?

<0-16777214> OSPF default metric

R5(config-router)#redistribute eigrp 100 metric 1 subnets

 

router eigrp 100
redistribute ospf 1 metric 1000000[metric 값 = BW] 10[delay] 255[신뢰도] 1[load] 1500[MTU]

이유는?
Router(config)#do show inter gig0/0/0

MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, reliability 255/255, txload 1/255, rxload 1/255

K1: 10Gbps / BW : 10,000,000 / 1000000
K2: Load : 1
K3: DLY (Delay) : 10
K4: 신뢰도 : 255
K5: MTU: 1500

Major -> ~의 몇 번째 Octet이 고정

 

0 ~ 127.x.x.x/8 -> 255.0.0.0 => 1~126

128 ~ 191.x.x.x/16 -> 255.255.0.0

192~223.x.x.x/24 -> 255.255.255.0