1. 이종 라우팅 프로토콜 간 재분배(Redistribution) 핵심 개념 및 구문 비교
서로 다른 라우팅 프로토콜(RIP, OSPF, EIGRP, Static)이 만나는 경계 라우터(ASBR)에서는 각 프로토콜이 사용하는 메트릭(Metric) 단위와 기본 속성이 다르므로, 상대방 프로토콜 영역으로 전달될 때 인식 가능한 메트릭 형태로 변환해 주는 재분배 설정이 필수적입니다.
📌 프로토콜별 재분배 명령어 및 구문 분석
| 대상 프로토콜 (수신측) | 재분배 명령 구문 | 핵심 매개변수 및 필수 키워드 설명 |
| RIP | redistribute [protocol] metric [시드 메트릭] | RIP은 메트릭 단위로 Hop Count를 사용합니다. 외부 경로를 들여올 때 metric 2 등으로 시드 메트릭(Seed Metric)을 직접 지정해야 정상 전파됩니다. |
| OSPF | redistribute [protocol] subnets | OSPF는 기본적으로 Classful 주소만 재분배하므로, Subnetting된 경로를 함께 넘겨주기 위해 subnets 키워드를 반드시 붙여야 합니다. 정적 디폴트 경로는 default-information originate로 전파합니다. |
| EIGRP | redistribute [protocol] metric [BW] [Delay] [Reliability] [Load] [MTU] | EIGRP는 Composite Metric을 사용하므로, 외부 경로 수신 시 5가지 K-Value 상수값(예: 10000 100 255 1 1500)을 시드 메트릭으로 반드시 명시해야 라우팅 테이블에 등록됩니다. |
2. 2종 프로토콜 상호 연동 실습 (R3 경계 라우터 중심)
① RIP $\leftrightarrow$ OSPF 상호 재분배 (R3 라우터)
Plaintext
! ===== [R3 라우터: RIP <-> OSPF 경계 설정] =====
enable
conf t
hostname R3
no ip domain-lookup
interface g0/1
ip address 23.1.1.3 255.255.255.0
no shutdown
interface g0/0
ip address 34.1.1.3 255.255.255.0
no shutdown
interface loopback0
ip address 10.10.10.1 255.255.255.0
exit
ip route 0.0.0.0 0.0.0.0 loopback0
! RIP 프로세스: OSPF 경로를 RIP으로 재분배 (Hop Count = 2)
router rip
version 2
no auto-summary
redistribute ospf 1 metric 2
network 23.1.1.0
network 34.1.1.0
network 10.10.10.0
! OSPF 프로세스: Static 및 Default Route 재분배
router ospf 1
network 23.1.1.3 0.0.0.0 area 0
network 34.1.1.3 0.0.0.0 area 0
network 10.10.10.1 0.0.0.0 area 0
redistribute static subnets
default-information originate
end
copy running-config startup-config
② RIP $\leftrightarrow$ EIGRP 상호 재분배 (R3 라우터)
Plaintext
! ===== [R3 라우터: RIP <-> EIGRP 경계 설정] =====
enable
conf t
hostname R3
! RIP 프로세스: EIGRP 경로를 RIP으로 재분배
router rip
version 2
no auto-summary
redistribute eigrp 100 metric 2
network 23.1.1.0
network 34.1.1.0
network 10.10.10.0
! EIGRP 프로세스: Static 경로 재분배
router eigrp 100
network 23.1.1.3 0.0.0.0
network 34.1.1.3 0.0.0.0
network 10.10.10.0 0.0.0.0
redistribute static
end
copy running-config startup-config
③ OSPF $\leftrightarrow$ EIGRP 상호 재분배 (R3 라우터)
Plaintext
! ===== [R3 라우터: OSPF <-> EIGRP 경계 설정] =====
enable
conf t
hostname R3
! OSPF 프로세스: EIGRP 경로를 OSPF로 재분배
router ospf 1
default-information originate
redistribute eigrp 100 subnets
network 12.1.1.0 0.0.0.0 area 0
network 23.1.1.0 0.0.0.0 area 0
! EIGRP 프로세스: OSPF 경로를 5개 시드 메트릭 지정 후 EIGRP로 재분배
router eigrp 100
no auto-summary
redistribute ospf 1 metric 10000 100 255 1 1500
network 23.1.1.3 0.0.0.0
network 34.1.1.3 0.0.0.0
network 10.10.10.0 0.0.0.0
end
copy running-config startup-config
3. 4대 프로토콜 통합 망(Static / RIP / OSPF / EIGRP) 중심 라우터(R0) 재분배
중심 라우터 R0가 Static, RIP, OSPF, EIGRP 4개 영역을 동시에 연결하고, 모든 라우팅 정보를 허브(Hub) 역할로서 상호 교환 및 재분배하는 토탈 실습 코드입니다 [cite: R0, redistribute ospf 1 metric 2, redistribute eigrp 100 metric 2, redistribute static metric 2, redistribute rip subnets, redistribute eigrp 100 subnets, redistribute static subnets, default-information originate, redistribute rip metric 10000 100 255 1 1500, redistribute ospf 1 metric 10000 100 255 1 1500, redistribute static metric 10000 100 255 1 1500].
Plaintext
! ===== [R0 중앙 경계 라우터 전체 재분배 설정] =====
enable
conf t
hostname R0
! 1. Static 경로 설정
ip route 1.1.1.0 255.255.255.0 g1/0
! 2. RIP 프로토콜 영역 설정 및 재분배
router rip
version 2
no auto-summary
network 10.1.1.0
network 20.1.1.0
network 30.1.1.0
network 40.1.1.0
redistribute ospf 1 metric 2
redistribute eigrp 100 metric 2
redistribute static metric 2
! 3. OSPF 프로토콜 영역 설정 및 재분배
router ospf 1
network 10.1.1.9 0.0.0.0 area 0
network 20.1.1.9 0.0.0.0 area 0
network 30.1.1.9 0.0.0.0 area 0
network 40.1.1.9 0.0.0.0 area 0
redistribute rip subnets
redistribute eigrp 100 subnets
redistribute static subnets
default-information originate
! 4. EIGRP 프로토콜 영역 설정 및 재분배
router eigrp 100
no auto-summary
network 10.1.1.9 0.0.0.0
network 20.1.1.9 0.0.0.0
network 30.1.1.9 0.0.0.0
network 40.1.1.9 0.0.0.0
redistribute rip metric 10000 100 255 1 1500
redistribute ospf 1 metric 10000 100 255 1 1500
redistribute static metric 10000 100 255 1 1500
end
copy running-config startup-config
📌 외곽 단말 라우터(R1~R4) 간략 구성
- R1 (Static 영역): ip route 0.0.0.0 0.0.0.0 g0/1 설정.
- R2 (RIP 영역): router rip 설정 및 PC 인터페이스 passive-interface g0/0 처리.
- R3 (OSPF 영역): router ospf 1 영역 설정 및 Area 0 할당.
- R4 (EIGRP 영역): router eigrp 100 설정 및 와일드카드 마스크 적용.