5 분 소요

EIGRP

  • EIGRP(Enhanced Interior Gateway Routing Protocol)는 시스코에서 개발한 Distance Vector Routing Protocol 이다.
  • Auto-summary (Classless) , Split-horizon 현상이 있다.
  • Hybrid -> Distance Vector routing protocol의 장점과 Link state routing protocol의 장점을 취했다.
  • Multicast 224.0.0.10 과 IP 포트 88번 사용.
  • Metric은 Bandwidth, Delay, Reliability, Load, MTU를 사용하고, 위 각각의 Metric을 Vector Metric이라고 하고 K 상수값으로 가중치를 부여하여 Composite Metric을 산출한다.
  • 언이퀄 코스트 부하 분산(Unequl cost load balancing)을 지원하여 메트릭 값이 다른 복수 개의 경로를 동시에 사용할 수 있다.
  • Hello time : 90초
  • Hop-count 제한 : 기본 100개 . 최대 255개 증가 가능.

K상수 기본값

k1(bandwidth), k2(load), k3(delay), k4-5(Reliability) 
K1=K3=1
K2=K4=K5=0

# K5=0 일 경우
 Composite Metric = [(K1*BW)+(K2*BW)/(256-load)+(K3*DLY)]*256

# K5=0 이 아닌 경우
[(K1*BW)+(K2*BW)/256-load)+(K3*DLY)]*256*K5/ (Reliability+K4)

# EIGRP BW = 10^10 / 최저 BW 값
# EIGRP Delay = Delay/10 의 합

EIGRP DUAL 알고리즘

  • EIGRP는 인접 라우터와 Neighbor를 맺은 후 DUAL(disffusing update algorithm)을 이용하여 목적지까지의 최단 거리 경로를 계산한다.

FD1: Feasible Distance

  • 현재 라우터에서 특정 목적지까지의 최단 거리 경로 값

FD2: Feasible Distance

  • 현재 라우터에서 특정 목적지까지의 백업 경로 값

RD1: Reported Distance

  • Succerssor를 경유하는 현재 라우터의 넥스트홉 라우터에서 목적지까지의 경로 값

RD2: Reported Distance

  • Feasible Succerssor를 경유하는 현재 라우터의 넥스트홉 라우터에서 목적지까지의 경로 값

Succerssor

  • 현재 라우터에서 목적지까지의 최단 거리상에 있는 넥스트홉 라우터

Feasible Succerssor

  • 현재 라우터에서 목적지까지의 백업 경로상의 넥스트홉 라우터

Topology table

  • 인접 라우터에게서 수신한 네트워크와 그 네트워크의 메트릭 정보를 저장하는 데이터베이스를 의미한다.
  • Show ip eigrp topology 명령어를 사용.

EIGRP Neighbor

  • RIP을 제외한 이후 개발된 다른 라우팅 프로토콜들은 라우팅 정보를 전송하기 전에 먼저 상대방 라우터와 Neighbor를 맺은 후 라우팅 정보를 전송한다.
  • 따라서 이와 같은 라우팅 프로토콜들은 네이버 관계가 만들어지지 않으면, 라우팅 정보를 전송하지 않는다.
  • EIGRP는 라우팅 프로세스에 포함된 인터페이스로 헬로(Hello)라는 패킷을 전송한다. (Ethernet 5초, NBMA 60초)
  • 헬로 패킷을 수신하면 패킷에 포함된 정보 중에서 AS 번호, 인터페이스의 서브넷 마스크 길이, 암호 및 ‘K’상수 값이 자신과 동일하면 바로 헬로를 보낸 라우터를 네이버로 간주하고, 자신의 라우팅 정보를 전송한다.
  • Triggered update => EIGRP는 인터페이스에 변화가 생겼을때 Update를 한다.
  • Hold time => Ethernet 15초, NBMA 180초
    • *NBMA(Not Broadcast Multi Access)
      • 브로드캐스트인것 같지만 아닌 멀티액세스이다. (프레임릴레이 구조에 해당됨.)
  • EIGRP AD 값
    • Internal(내부) : 90
    • externeal(외부) : 170
    • summary(축약) : 5

EIGRP Neighbor의 관계 형성

  • AS 번호
  • K-value(상수)
  • authentication(인증)
  • 동일 subnet 대역

EIGRP 실습 (1)

image

# 공통 설정

En
conf t
no ip domain lookup
line c 0
logg syn
exec-timeout 0
exit
hostname 

int s1/0
no shut
encap fram
no fram inver
clock rate 64000
exit
# IP Address & Mapping (27.27.0.0/16)

R1]
conf t
int l0
ip add 27.27.1.1 255.255.255.0
exit
int s1/0
ip add 27.27.12.1 255.255.255.0
fram map ip 27.27.12.2 102 br

R2]
conf t
int l0
ip add 27.27.2.2 255.255.255.0
exit
int s1/0.12 m
ip add 27.27.12.2 255.255.255.0
fram map ip 27.27.12.1 201 br
exit
int s1/0.23 m
ip add 27.27.23.2 255.255.255.0
fram map ip 27.27.23.3 203 br

R3]
conf t
int l0
ip add 27.27.3.3 255.255.255.0
exit
int s1/0.23 m
ip add 27.27.23.3 255.255.255.0
fram map ip 27.27.23.2 302 br
exit
int s1/0.34 p
ip add 27.27.34.3 255.255.255.0
fram inter 304

R1]
conf t
int l0
ip add 27.27.4.4 255.255.255.0
exit
int s1/0.34 p
ip add 27.27.34.4 255.255.255.0
fram inter 403
# EIGRP

R1]
conf t
router eigrp 27            =>AS번호 (autonomus system number)
eigrp router-id 27.27.1.1  => neighbor 관계가 끊기면 안되므로 loopback address를 사용.
network 27.27.1.1 0.0.0.0  =>Hello를 누가 보냈는지 식별하기 위해 host route를 사용.(hello할때는 wildmask와 같다)(24bit)
network 27.27.12.0 0.0.0.255
no auto-summary
passive-interface lo0

R2]
conf t
router eigrp 27          
eigrp router-id 27.27.2.2
network 27.27.2.2 0.0.0.0
network 27.27.12.0 0.0.0.255
network 27.27.23.0 0.0.0.255
no auto-summary
passive-interface lo0

R3]
conf t
router eigrp 27          
eigrp router-id 27.27.3.3
network 27.27.3.3 0.0.0.0
network 27.27.23.0 0.0.0.255
network 27.27.34.0 0.0.0.255
no auto-summary
passive-interface lo0

R4]
conf t
router eigrp 27          
eigrp router-id 27.27.4.4
network 27.27.4.4 0.0.0.0
network 27.27.34.0 0.0.0.255
no auto-summary
passive-interface lo0

R1]
Show ip eigrp neighbor

image

  • H- 맺은 순서.
  • Address- 인접라우터.
  • SRTT- 인접라우터로 갔다가 돌아오는데 걸리는 시간.(ms)
  • RTO - RIP과는 달리 ACK를 받는데 상대방에게 ACK가 없을경우, HELLO를 받는 시간을 뜻한다.
    • (헬로를 받지 못할 경우 네이버 관계가 끊어짐)
  • QCnt- Q에 대기하고있는 패킷의 수.
  • SeqNum 순서번호.

EIGRP 실습 (2)

image

#공통 설정

En
conf t
no ip domain lookup
line c 0
logg syn
exec-timeout 0
exit
hostname 

int s1/0
no shut
encap fram
no fram inver
clock rate 64000
exit
# IP address & Mapping

R1]
Conf t
Int l0
Ip 27.27.1.1 255.255.255.0
Exit
Int s1/0
Ip add 27.27.123.1 255.255.255.0
Fram map ip 27.27.123.2 102 br
Fram map ip 27.27.123.3 102 br
Exit

R2]
Conf t
Int l0
Ip add 27.27.2.2 255.255.255.0
Exit
Int s1/0.123 m
Ip add 27.27.123.2 255.255.255.0
Fram map ip 27.27.123.1 201 br
Fram map ip 27.27.123.3 203 br
Exit

R3]
Conf t
Int l0
Ip add 27.27.3.3 255.255.255.0
Exit
Int s1/0.123m
Ip add 27.27.123.3 255.255.255.0
Fram map ip 27.27.123.1 302 br
Fram map ip 27.27.123.2 302 br
Eixt
Int s1/0.34 p
Ip add 150.1.34.1 255.255.255.0
Fram inter 304
Exit

R4]
Conf t
Int l0
Ip add 150.1.4.4 255.255.255.0
Exit
Int s1/0.34 p
Ip add 150.1.34.254 255.255.255.0
Fram inter 403
Exit
# EIGRP & RIP

R1]
Conf t
Router EIGRP 27
EIGRP router-id 27.27.1.1
Network 27.27.1.1 0.0.0.0 
network 27.27.123.1 0.0.0.0
no auto
passive-interface lo0

R2]
conf t
router EIGRP 27
EIGRP router-id 27.27.2.2
network 27.27.2.2 0.0.0.0
network 27.27.123.2 0.0.0.0
no auto
passive-interface lo0
int s1/0.123
no ip split-horizon eigrp 27 =>기본값이 enable이기떄문에 disabled로 바꿔줘야 split-horizon 현상이 일어나기 때문.


R3]
conf t
router EIGRP 27
EIGRP router-id 27.27.3.3
network 27.27.3.3 0.0.0.0
network 27.27.123.3 0.0.0.0
no auto
passive-interface lo0
exit
router rip
ver 2
network 150.1.0.0
no auto


R4]
conf t
router rip
ver 2
network 150.1.0.0
no auto
passive-interface lo0
# redistribute EIGRP 

R3]
conf t
router eigrp 27
do show int s1/0.123   => 재분배에 필요한 값을 확인할 수 있다. 
redistribute rip metric 1544 2000 255 1 1500 =>차례대로 BW Delay Reliability Load MTU
exit


# redistribute RIP

R3]
conf t
ip prefix-list HOP1 permit 27.27.123.0/24
ip prefix-list HOP1 permit 27.27.3.0/24
ip prefix-list HOP2 permit 27.27.2.0/24
ip prefix-list HOP3 permit 27.27.1.0/24
!
route-map EIGRP_NET 10
match ip add prefix-list HOP1
set metric 1
exit
route-map EIGRP_NET 20
match ip add prefix-list HOP2
set metric 2
exit
route-map EIGRP_NET 30
match ip add prefix-list HOP3
set metric 3
exit
router rip
redistribute eigrp 27 route-map  EIGRP_NET

image

# 27.27.0.0/16 축약하라는 뜻.

R3]
int s1/0.34
ip summary-address ip rip 27.27.0.0 255.255.0.0

image

# R1, R2, R3를 거쳐 R4에서 다시 R1 - R3 정보를 뿌리는 오바이트 현상이 일어나는 경우가 있다.
그래서, 재분배를 할때 ACL, Prefix List 등 을 잘 활용해야 한다.

3줄 요약

  • Distence Vector 와 Link-State 장점을 취한 하이브리드 프로토콜이다.

  • Composite Metric을 사용한다.

  • 그래서 복잡하다.

댓글남기기