네트워크/CCNA 2016. 3. 25. 10:11

@ CCNA - 11. EIGRP

 

 

 

@CCNA Preconfig.txt

@EIGRP.txt

@EIGRP 동작 과정.ppt

@EIGRP 캡처 내용.pcap

@EIGRP 균등&비균등 로드 분산.pkt

@EIGRP 균등&비균등 로드 분산(기본 설정 완료).pkt

@VLSM 환경 EIGRP AS100 설정.pkt

@EIGRP 균등 로드 분산.pdf

@EIGRP 기능 실습.pdf

 

@EIGRP 시뮬레이션.pkt

@EIGRP 심렛.pkt

 


[유튜브] 동영상 강의 링크 (구독! 좋아요!!!)


IP Routing 기초 - EIGRP 설정 및 정보 확인   https://youtu.be/RhDlHAhY4AU


IP Routing 기초 - EIGRP 이론(1편)   https://youtu.be/r8Wr-MD4jlM

 

IP Routing 기초 - EIGRP 이론(2편)   https://youtu.be/ONEEgSZVtzo

 

 

 

 

 

 

[실습 환경]

 

 

 

 

0. EIGRP(Enhanced Interior Gateway Routing Protocol)

 

 - Cisco 전용 라우팅 프로토콜
 - Advanced Distance Vector
 - Classless Routing Protocol
 - VLSM, CIDR
 - auto-summary -> no auto-summary
 - IGP

 

 

 


1. EIGRP 설정

 

Router(config)# router eigrp [1~65535 AS Number]
Router(config-router)# no auto-summary
Router(config-router)# network A.0.0.0
Router(config-router)# network B.B.0.0
Router(config-router)# network C.C.C.0
Router(config-router)# passive-interface [Interface Name]

 

 - 설정시 주의 사항 : AS 번호가 동일해야지만, 네이버 성립 및 라우팅 업데이트 가능

 

@ R1, R3

 

router eigrp 100
 no auto-summary
 network 13.0.0.0
 network 172.16.0.0
 passive-interface fa0/0
 passive-interface lo172

 

@ R2

 

router eigrp 100
 no auto-summary
 network 13.0.0.0
 passive-interface fa0/0

 

 

R1,R2,R3#show run
R1,R2,R3#show ip eigrp neighbor
R1,R2,R3#show ip route

 

 - EIGRP 설정이 완료되었다면, 네이버 테이블 확인 -> 라우팅 테이블 확인 -> Ping 테스트 실시

 

R1#ping 13.13.20.1 source fa0/0
R1#ping 13.13.30.1 source fa0/0
R1#ping 172.16.3.1 source lo172

 

R2#ping 13.13.10.1 source fa0/0
R2#ping 172.16.1.1 source fa0/0
R2#ping 13.13.30.1 source fa0/0
R2#ping 172.16.3.1 source fa0/0

 

R3#ping 13.13.20.1 source fa0/0
R3#ping 13.13.10.1 source fa0/0
R3#ping 172.16.1.1 source lo172

 

 

 

 

2. 네이버 성립 및 라우팅 업데이트

 

 - 네이버 성립 -> 라우팅 업데이트 실시
 - 주기적인 전체 라우팅 업데이트 X -> 추가된 부분만 라우팅 업데이트 실시(증분 업데이트)

 

 

 


3. 네이버 성립 조건

 

 - AS 번호 동일
 - K 상수 동일

 

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
  EIGRP maximum hopcount 100
~ 중간 생략 ~

 

 

 


4. EIGRP 패켓 유형

 

 - Hello : 네이버 관계 성립하기 위해서 교환하는 패켓, 주기적인 교환으로 네이버 관계 유지
 - Update : 네이버 관계를 성립한 라우터 간에 라우팅 업데이트를 실시할때 사용하는 패켓
 - Query : EIGRP 네트워크 장애 발생시, 네이버 라우터에게 도달 불가능한 정보 및 대체 경로를 질의 패켓
 - Reply : Query 패켓에 대한 응답을 할때 사용하는 패켓
 - Ack : Update, Query, Reply 수신을 확인하기 위해서 전송하는 패켓

 

 

 


5. EIGRP 동작 과정

 

 - 'EIGRP 동작 과정.ppt' 참고
 - '@ EIGRP 캡처 내용.pcap' 참고

 

 

 


6. EIGRP 토폴로지 테이블

 

 - 라우팅 테이블에 등록하기 이전에, EIGRP 경로가 관리되는 테이블
 - 토폴로지 테이블 등록된 경로 중에, 최적 경로만 라우팅 테이블에 등록됨

 

R1#show ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID(172.16.1.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - reply Status, s - sia Status

~ 중간 생략 ~

 

P 13.13.30.0/24, 1 successors, FD is 2707456
        via 13.13.12.2 (2707456/2195456), Serial1/0
P 172.16.1.0/24, 1 successors, FD is 128256
        via Connected, Loopback172
P 172.16.3.0/24, 1 successors, FD is 2809856
        via 13.13.12.2 (2809856/2297856), Serial1/0

 

 - P   : Passive 상태, 경로 계산이 완료된 상태 -> 라우팅 테이블 등록 O
 - A   : Active 상태, 경로 계산이 진행되는 상태 -> 라우팅 테이블 등록 X


 - 13.13.30.0/24  : 목적지 네트워크 이름
 - successors  : 최적 경로 상에 네이버 라우터 = 최적 경로
 - FD is 2707456  : 로컬 라우터에서 목적지까지 EIGRP 메트릭
 - via 13.13.12.2  : 경유하는 라우터 = 넥스트-홉 라우터
 - (2707456/  : FD 메트릭, 로컬 라우터에서 목적지까지 EIGRP 메트릭
 - /2195456) : AD 메트릭, 네이버 라우터에서 목적지까지 EIGRP 메트릭
 -Serial1/0 : 패켓을 출력하는 라우팅 인터페이스

 

 

 


7. EIGRP Dual 알고리즘

 

 - EIGRP 토폴로지 정보를 기반으로 경로를 선출하는 알고리즘
 - EIGRP 경로 선출 과정

 

 ① 최적 경로 선출 : FD 메트릭이 가장 작은 경로
 ② 후속 경로 선출 : 최적 경로 FD > AD 작은 경로

 

Ex) 다음 중 후속 경로가 있는 경우는 몇번인가? ②

 

Router#show ip eigrp topology all-link

① P 172.16.3.0/24, 1 successors, FD is 2809856
         via 13.13.12.2 (2809856/2297856), Serial1/0
         via 13.13.13.3 (2993144/2809856), Serial1/1

 

② P 172.16.3.0/24, 1 successors, FD is 2809856
         via 13.13.12.2 (2809856/2297856), Serial1/0
         via 13.13.13.3 (2993144/1809856), Serial1/1

 

③ P 172.16.3.0/24, 1 successors, FD is 2809856
         via 13.13.12.2 (2809856/2297856), Serial1/0
         via 13.13.13.3 (3193144/2909856), Serial1/1

 

④ P 172.16.3.0/24, 2 successors, FD is 2809856
         via 13.13.12.2 (2809856/2297856), Serial1/0
         via 13.13.13.3 (2809856/2297856), Serial1/1

 

 

 


8. 균등 로드 분산

 

 - 목적지에 대한 최적 경로가 여러 개가 있을 경우, 라우팅 테이블에 그 경로들을 등록시킴
 - 위에 ④ 같은 경우
 - '@EIGRP 균등&비균등 로드 분산.pkt' 파일 실습

 

Ex) R2 테스트

 

R2#show ip route

D 13.13.40.0, via 13.13.12.1
                   via 13.13.23.3

 

R2#ping 13.13.40.1

PC2>ping 13.13.40.2

 


Ex) R4 테스트

 

R4#show ip route

D 13.13.20.0, via 13.13.14.1
                   via 13.13.34.3

 

R4#ping 13.13.20.1

PC4>ping 13.13.20.2

 

 

 

 

9. 비균등 로드 분산

 

 - 후속 경로를 라우팅 테이블에 등록하여, 최적 경로와 후속 경로를 동시에 사용하는 기능
 - 'variance' 명령어 사용
 - '@EIGRP 균등&비균등 로드 분산.pkt' 파일 실습

 

@ R2

int s1/0
 bandwidth 2048

 

@ R3

int s1/0
 bandwidth 2048
!
int s1/1
 bandwidth 2048

 

@ R4

int s1/1
 bandwidth 2048

 

R2#show ip eigrp topology
IP-EIGRP Topology Table for AS 100

~ 중간 생략 ~

 

P 13.13.40.0/24, 1 successors, FD is 2276352
         via 13.13.23.3 (2276352/1764352), Serial1/0 <- 최적 경로
         via 13.13.12.1 (2684416/2172416), Serial1/1 <- 후속 경로
P 13.13.14.0/24, 1 successors, FD is 2681856
         via 13.13.12.1 (2681856/2169856), Serial1/1

 

R2#show ip route eigrp
     13.0.0.0/24 is subnetted, 6 subnets
D       13.13.14.0 [90/2681856] via 13.13.12.1, 00:58:34, Serial1/1
D       13.13.34.0 [90/2273792] via 13.13.23.3, 00:58:37, Serial1/0
D       13.13.40.0 [90/2276352] via 13.13.23.3, 00:58:34, Serial1/0

 

R2(config)#router eigrp 100
R2(config-router)#variance 2
R2(config-router)#end

 

R2#show ip route eigrp
     13.0.0.0/24 is subnetted, 6 subnets
D       13.13.14.0 [90/2681856] via 13.13.12.1, 00:01:15, Serial1/1
D       13.13.34.0 [90/2273792] via 13.13.23.3, 00:01:17, Serial1/0
D       13.13.40.0 [90/2276352] via 13.13.23.3, 00:01:17, Serial1/0
                         [90/2684416] via 13.13.12.1, 00:01:15, Serial1/1

 

 

Ex) R1에서 'variance 2'를 실시할 경우, 비균등 로드 분산이 가능한 경우는 몇번인가? ①

 

R1#show ip eigrp topology all-link
IP-EIGRP Topology Table for AS(100)/ID(13.13.1.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - reply Status, s - sia Status

P 13.13.0.0/16, 1 successors, FD is 28160, serno 9
          via Summary (128256/0), Null0

P 100.100.1.0/24, 1 successors, FD is 2807456, serno 186
         via 13.13.10.3 (2807456/2295456), Serial1/1 <---------- 최적 경로
         via 13.13.9.2 (3219456/2707456), Serial1/0 <----------- ①

 

P 198.198.1.0/24, 1 successors, FD is 2323456, serno 185
         via 13.13.10.3 (2323456/409600), Serial1/1 <---------- 최적 경로
         via 13.13.9.2 (2835456/2323456), Serial1/0 <----------- ②

 

P 128.128.1.0/24, 1 successors, FD is 2323456, serno 176
         via 13.13.10.3 (2323456/409600), Serial1/1 <---------- 최적 경로
         via 13.13.9.2 (2835456/2323456), Serial1/0 <----------- ③

 

 

 

 

10. EIGRP 메트릭

 

 - Bandwidth & Delay 값을 기반으로 계산함

 - Vector 메트릭 : MTU, Bandwidth, Delay, reliability, load
 - K 상수  : K1=1, K2=0, K3=1, K4=0, K5=0

 

R1#show int s1/0
Serial1/0 is up, line protocol is up
  Hardware is M4T
  Internet address is 13.13.12.1/24
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255

 

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

 


 - EIGRP 메트릭 계산 방법

 

[K1 x Bandwidth + K2 x Bandwidth / (256 - Load) + K3 x Delay] x 256

[1 x Bandwidth + 0 x Bandwidth / (256 - Load) + 1 x Delay] x 256

[Bandwidth + 0 + Delay] x 256

[Bandwidth + Delay] x 256

 

 Bandwidth = 10^10 / 목적지까지 가장 작은 Bandwidth(bps)
 Delay = 목적지까지 합산 Delay / 10

 


Ex) R1에서 '13.13.30.0/24' 메트릭 계산

 

    BW 1544k, DLY 20000 usec        BW 1544k, DLY 20000 usec     BW 10000k, DLY 1000 usec
R1---------------------------R2---------------------------R3------------------------| 13.13.30.0/24

 

 

 Bandwidth = 10^10 / 1544000 = 6476
 Delay = 41000 / 10 = 4100

 EIGRP Metric = [6476 + 4100] x 256 = 10576 x 256 = 2707456

 

R1#show ip route 13.13.30.0
Routing entry for 13.13.30.0/24
  Known via "eigrp 100", distance 90, metric 2707456, type internal
  Redistributing via eigrp 100
  Last update from 13.13.12.2 on Serial1/0, 01:09:17 ago
  Routing Descriptor Blocks:
  * 13.13.12.2, from 13.13.12.2, 01:09:17 ago, via Serial1/0
      Route metric is 2707456, traffic share count is 1
      Total delay is 41000 microseconds, minimum bandwidth is 1544 Kbit
      Reliability 255/255, minimum MTU 1500 bytes
      Loading 1/255, Hops 2

 

 

 

 

11. 수동 요약 기능

 

 - 경로 개수를 최소화하여 라우팅 업데이트 실시
 - 장점 : 라우팅 테이블 크기 최소화 및 메모리 사용률 최소화


R1(config)#int lo 128
R1(config-if)#ip address 128.28.8.1 255.255.255.0
R1(config-if)#ip address 128.28.9.1 255.255.255.0 secondary
R1(config-if)#ip address 128.28.10.1 255.255.255.0 secondary
R1(config-if)#ip address 128.28.11.1 255.255.255.0 secondary
R1(config-if)#ip address 128.28.12.1 255.255.255.0 secondary
R1(config-if)#
R1(config-if)#router eigrp 100
R1(config-router)#network 128.28.0.0
R1(config-router)#passive-interface lo128
R1(config-router)#end
R1#show run

 

 

R2#show ip route

 

R3#show ip route eigrp
     172.16.0.0/24 is subnetted, 2 subnets
D       172.16.1.0 [90/2809856] via 13.13.23.2, 01:15:28, Serial1/1
     128.28.0.0/24 is subnetted, 5 subnets
D       128.28.12.0 [90/2809856] via 13.13.23.2, 00:03:38, Serial1/1
D       128.28.8.0 [90/2809856] via 13.13.23.2, 00:03:38, Serial1/1
D       128.28.9.0 [90/2809856] via 13.13.23.2, 00:03:38, Serial1/1
D       128.28.10.0 [90/2809856] via 13.13.23.2, 00:03:38, Serial1/1
D       128.28.11.0 [90/2809856] via 13.13.23.2, 00:03:38, Serial1/1
     13.0.0.0/24 is subnetted, 5 subnets
D       13.13.10.0 [90/2707456] via 13.13.23.2, 00:53:24, Serial1/1
D       13.13.12.0 [90/2681856] via 13.13.23.2, 01:15:28, Serial1/1
D       13.13.20.0 [90/2195456] via 13.13.23.2, 01:15:28, Serial1/1

 

R3#sh ip route summary
IP routing table name is Default-IP-Routing-Table(0)
IP routing table maximum-paths is 16
Route Source    Networks    Subnets     Overhead    Memory (bytes)
connected       0           3           216         408
static          0           0           0           0
eigrp 100       0           9           648         1224
internal        3                                   3468
Total           3           12          864         5100

 

 

Ex) R2는 R3에게 '128.28.8.0/24 ~ 128.28.12.0/24'를 수동 요약하여 라우팅 업데이트하여라.

 

  128.28.00001 000.0
  128.28.00001 001.0
  128.28.00001 010.0
  128.28.00001 011.0
  128.28.00001 100.0
-----------------------------------------> 128.28.8.0/21
255.255.11111 000.0 <- 255.255.248.0 <- /21

 

 

R2(config)#int s1/0
R2(config-if)#ip summary-address eigrp 100 128.28.8.0 255.255.248.0
R2(config-if)#end
R2#show run

 

R3#sh ip route eigrp 
     172.16.0.0/24 is subnetted, 2 subnets
D       172.16.1.0 [90/2809856] via 13.13.23.2, 01:18:42, Serial1/1
     128.28.0.0/21 is subnetted, 1 subnets
D       128.28.8.0 [90/2809856] via 13.13.23.2, 00:00:35, Serial1/1
     13.0.0.0/24 is subnetted, 5 subnets
D       13.13.10.0 [90/2707456] via 13.13.23.2, 00:56:39, Serial1/1
D       13.13.12.0 [90/2681856] via 13.13.23.2, 01:18:43, Serial1/1
D       13.13.20.0 [90/2195456] via 13.13.23.2, 01:18:43, Serial1/1

 

R3#sh ip route summary
IP routing table name is Default-IP-Routing-Table(0)
IP routing table maximum-paths is 16
Route Source    Networks    Subnets     Overhead    Memory (bytes)
connected       0           3           216         408
static          0           0           0           0
eigrp 100       0           5           360         680
internal        3                                   3468
Total           3           8           576         4556

 

R3#ping 128.28.8.1
R3#ping 128.28.9.1
R3#ping 128.28.10.1
R3#ping 128.28.11.1
R3#ping 128.28.12.1

 

 

 

 

12. MD5 해시 함수를 이용한 인증 기능

 

 - EIGRP 패켓 변조 방지

 

R1[S1/0]-----------------------------------[S1/1]R2

 

 

R1(config)#key chain EIGRP_K
R1(config-keychain)#key 13
R1(config-keychain-key)#key-string cisco
R1(config-keychain-key)#
R1(config-keychain-key)#int s1/0
R1(config-if)#ip authentication mode eigrp 100 md5
R1(config-if)#ip authentication key-chain eigrp 100 EIGRP_K
R1(config-if)#end

R1#show run
R1#show ip eigrp neighbor

 

R2(config)#key chain EIGRP_K
R2(config-keychain)#key 13
R2(config-keychain-key)#key-string cisco
R2(config-keychain-key)#
R2(config-keychain-key)#int s1/1
R2(config-if)#ip authentication mode eigrp 100 md5
R2(config-if)#ip authentication key-chain eigrp 100 EIGRP_K
R2(config-if)#end

R2#show run
R2#show ip eigrp neighbor

 

 

 

 

13. EIGRP 외부 경로

 

 - D : 내부 경로(신뢰도 : 90), 같은 AS 안에서 라우팅 업데이트 경로
 - D EX : 외부 경로(신뢰도 : 170), 외부 네트워크로부터 라우팅 업데이트 경로

 

R3(config)#int lo 100
R3(config-if)#ip address 100.100.1.1 255.255.255.0
R3(config-if)#ip address 100.100.2.1 255.255.255.0 secondary
R3(config-if)#ip address 100.100.3.1 255.255.255.0 secondary
R3(config-if)#
R3(config-if)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 100.0.0.0
R3(config-router)#
R3(config-router)#router eigrp 100
R3(config-router)#redistribute rip metric 1544 2000 255 1 1500

 

 

R1,R2#show ip route

 

R1#show 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 not set

     100.0.0.0/24 is subnetted, 3 subnets
D EX    100.100.1.0 [170/3193856] via 13.13.12.2, 00:02:31, Serial1/0
D EX    100.100.2.0 [170/3193856] via 13.13.12.2, 00:02:31, Serial1/0
D EX    100.100.3.0 [170/3193856] via 13.13.12.2, 00:02:31, Serial1/0
~ 중간 생략 ~

 

 

 

 

 

 

 

 


 

'네트워크 > CCNA' 카테고리의 다른 글

CCNA - 13. ACL  (0) 2016.03.28
CCNA - 12. OSPF  (0) 2016.03.28
CCNA - 10. RIPv2  (0) 2016.03.22
CCNA - 09. RIPv1  (0) 2016.03.22
CCNA - 08. IP 라우팅 이해 & 다이나밉스 서버 활용  (0) 2016.03.22
Posted by 김정우 강사(카카오톡 : kim10322)
,


Q