R1에 루프백 네트워크를 2개 연결해주고, R1 ~ R3 EIGRP 1000으로 라우팅을 진행할 것이다.
Default Routing 설정 방법
1. Static Default 재분배 방법
R1(config)#ip route 0.0.0.0 0.0.0.0 lo 0
R1(config)#do sh ip route
Codes: 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
i - IS-IS, su - IS-IS summary, 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 0.0.0.0 to network 0.0.0.0
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.0.0 is directly connected, Loopback0
C 172.16.1.0 is directly connected, Loopback1
10.0.0.0/24 is subnetted, 2 subnets
C 10.10.12.0 is directly connected, Serial0/0
D 10.10.23.0 [90/2681856] via 10.10.12.254, 00:12:59, Serial0/0
S* 0.0.0.0/0 is directly connected, Loopback0
R1(config)#router ei
R1(config)#router eigrp 1000
R1(config-router)#red
R1(config-router)#redistribute static
R1에서 디폴트ip는 모두 lo 0으로 가는 static 경로를 만들어 주고, eigrp 1000에 다시 static 재분배를 해주었다. S* 0.0.0.0/0 is directly connected, Loopback0 이렇게 정적경로를 확인할 수 있는데, 디폴트를 통해 모르는 주소를 lo 0으로 다 보낸다는 말이다.
결과)
R1에서 설정해준 것을 R2 라우팅 테이블을 확인해본 결과 D*EX로 static Default 라우팅 테이블을 볼 수 있었다. 그러면 R2에 들어가는 모든 모르는 IP는 모두 R1 인터페이스에 보내진다는 말이다. (결국에서는 lo 0으로 들어갈 것이다. )
2. EIGRP Default 설정 방법 (라우팅 테이블 줄일 때)
R1(config)#int s0/0
R1(config-if)#ip summary-address eigrp 1000 0.0.0.0 0.0.0.0
R1(config-if)#
*Mar 1 00:37:41.951: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1000: Neighbor 10.10.12.2 (Serial0/0) is resync: summary configured
R1(config-if)#do sh ip ro
Codes: 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
i - IS-IS, su - IS-IS summary, 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 0.0.0.0 to network 0.0.0.0
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.0.0 is directly connected, Loopback0
C 172.16.1.0 is directly connected, Loopback1
10.0.0.0/24 is subnetted, 2 subnets
C 10.10.12.0 is directly connected, Serial0/0
D 10.10.23.0 [90/2681856] via 10.10.12.2, 00:35:16, Serial0/0
D* 0.0.0.0/0 is a summary, 00:00:11, Null0
EIGRp에서 R1dl 기본경로(0.0.0.0/0)를 모든 이웃 라우터에 광고를 해주었다. 이렇게 광고를 해주면 다른 라우터들이 기본경로를 통해 나머지 모든 트래픽을 전달 받을 수 있다. 또한 요약한 경로를 사용하여 라우팅 테이블을 축소시켜 네트워크 효율성을 높여줬다.
R2 routing table (before)
R2 routing table (After)
'Network > Network[GNS3, Packet]' 카테고리의 다른 글
[OSPF] OSPF 실습 -2 (1) | 2024.10.10 |
---|---|
[OSPF] OSPF 실습 - 1 (0) | 2024.10.10 |
[EIGRP] 로드 밸런싱(Load Balancing) (1) | 2024.09.27 |
[EIGRP] Metric (0) | 2024.09.27 |
[실습] 정적 라우팅 - 1 (0) | 2024.09.11 |