Skip to Content

IGRP와 EIGRP

IGRP(Interior Gateway Routing Protocol)는 Cisco가 RIP의 한계를 극복하기 위해 개발한 Distance-Vector 라우팅 프로토콜입니다. EIGRP(Enhanced IGRP)는 IGRP의 장점을 유지하면서 단점을 개선한 후속 프로토콜로, 현재 실무에서 사용됩니다.

IGRP는 Cisco IOS 12.2 이후 지원이 중단되었습니다. 여기서는 EIGRP의 메트릭 체계를 이해하기 위한 배경 지식으로 IGRP를 다룹니다.

핵심 요약

항목RIPIGRPEIGRP
알고리즘Distance-VectorDistance-VectorAdvanced Distance-Vector (DUAL)
메트릭홉 카운트Bandwidth, Delay, Reliability, Load, MTUBandwidth, Delay (기본)
최대 홉15255 (기본 100)255
업데이트 주기30초 (전체 테이블)90초 (전체 테이블)변화 시에만 (Incremental)
VLSM 지원v2만미지원지원
벤더표준 (모든 벤더)Cisco 전용Cisco 전용 (RFC 7868로 공개)
AD12010090 (내부) / 170 (외부)

AS 번호(Autonomous System Number)

IGRP와 EIGRP는 설정 시 AS 번호를 지정해야 합니다. AS(Autonomous System)는 동일한 관리 주체가 운영하는 라우터 그룹을 식별하는 번호입니다.

router eigrp 100 ← 100이 AS 번호
  • 같은 AS 번호를 가진 라우터끼리만 라우팅 정보를 교환합니다
  • AS 번호가 다르면 동일 프로토콜이어도 네이버를 형성하지 않습니다
  • RIP는 AS 번호가 필요 없지만(router rip), IGRP/EIGRP는 필수입니다

실제 인터넷에서 AS 번호는 IANA가 할당하며, BGP에서 ISP/조직을 식별하는 데 사용됩니다(예: KT, SKT, 삼성전자 각각 고유 AS 보유).

IGRP의 5가지 메트릭

IGRP/EIGRP는 홉 카운트 대신 5가지 요소를 종합하여 최적 경로를 결정합니다.

메트릭설명단위비고
Bandwidth경로의 최소 대역폭Kbps기본값: 시리얼 1.544Mbps (T1)
Delay경로의 누적 지연μs (마이크로초)1 ~ 16,777,215
Reliability경로의 신뢰성 (에러율)0~255 (255 = 최고)자동 계산
Load경로의 현재 부하1/255 ~ 255/255자동 계산
MTU최대 전송 단위Bytes타이브레이커로만 사용

기본적으로 EIGRP는 Bandwidth와 Delay만 사용하여 메트릭을 계산합니다. Reliability와 Load는 실시간으로 변하기 때문에 라우팅 불안정을 유발할 수 있어 기본 비활성화되어 있습니다.

Bandwidth 설정

Router(config)#interface serial 0 Router(config-if)#bandwidth 56
  • 이 명령은 실제 회선 속도를 변경하는 것이 아닙니다
  • 라우팅 프로토콜이 경로 선택 시 참고하는 값을 설정하는 것입니다
  • show interface 명령의 BW 필드에서 확인 가능:
Serial0 is up, line protocol is up MTU 1500 bytes, BW 56 Kbit, DLY 20000 usec, rely 255/255, load 1/255

RIP vs IGRP 경로 선택 비교

28.8 Kbps (1홉) [R-A] ─────────────────── [R-B] │ │ │ T1 1.544Mbps │ └── [R-C] ──── [R-D] ─────┘ (3홉)
프로토콜선택 경로이유
RIPR-A → R-B (위)1홉 < 3홉
IGRP/EIGRPR-A → R-C → R-D → R-B (아래)T1 대역폭이 28.8K보다 우수

EIGRP 설정

EIGRP는 IGRP의 모든 장점을 유지하면서 다음을 개선했습니다:

  • VLSM 지원: 서브넷 마스크 정보를 함께 전송
  • 빠른 컨버전스: DUAL 알고리즘으로 루프 없이 즉시 대체 경로 사용
  • Incremental 업데이트: 전체 테이블이 아닌 변경분만 전송
  • 네이버 테이블 유지: Hello 패킷으로 인접 라우터 상태 모니터링

기본 설정

Router(config)#router eigrp 100 Router(config-router)#network 192.168.1.0 Router(config-router)#no auto-summary

설정 예시

서울(R1)과 부산(R2)을 EIGRP로 연결하는 구성:

R1(config)#interface GigabitEthernet0/0 R1(config-if)#ip address 203.240.100.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface Serial0/0 R1(config-if)#ip address 203.240.150.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#router eigrp 100 R1(config-router)#network 203.240.100.0 R1(config-router)#network 203.240.150.0 R1(config-router)#no auto-summary
R2(config)#interface GigabitEthernet0/0 R2(config-if)#ip address 203.240.200.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface Serial0/0 R2(config-if)#ip address 203.240.150.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#router eigrp 100 R2(config-router)#network 203.240.200.0 R2(config-router)#network 203.240.150.0 R2(config-router)#no auto-summary

양쪽 라우터의 AS 번호(100)가 반드시 일치해야 합니다.

확인 명령어

show ip protocol

R1#show ip protocols Routing Protocol is "eigrp 100" Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 Automatic network summarization is not in effect Routing for Networks: 203.240.100.0 203.240.150.0 Routing Information Sources: Gateway Distance Last Update 203.240.150.2 90 00:01:19 Distance: internal 90 external 170
  • K1=1, K3=1: Bandwidth와 Delay만 메트릭 계산에 사용 (기본값)
  • internal 90 external 170: 내부 경로 AD 90, 외부(재분배) 경로 AD 170

show ip route

R1#show ip route eigrp D 203.240.200.0/24 [90/2170112] via 203.240.150.2, 00:01:19, Serial0/0
  • D: EIGRP로 학습한 경로
  • [90/2170112]: AD 90 / EIGRP 복합 메트릭
  • D EX: EIGRP External (재분배로 유입된 경로, AD 170)