EIGRP路由协议的简单理解及应用

1.EIGRP 增强型内部网关路由协议

他是动态路由协议,是思科私有的路由协议(2013年已经公有化)

特点:     1)路由更新:闪速更新;触发式更新;路由增量更新

      2)协议更新采用组播地址来维持EIGRP的路由信息传递;具有固定的组播地址来提供EIGRP通信

       (224.0.0.10  EIGRP的全球组播地址)

      3)EIGRP完成一次路由更新需要三张表来作为路由更新

               1*EIGRP邻居表

               2*EIGRP拓扑表(EIGRP学习到的可行路径)

               3*EIGRP路由表(EIGRP从可行路径中选出最优路由)

      4)EIGRP为路由分配了度量值的计算方式,从而可以计算出每条路由的开销值

       (即弥散更新算法→Metric值→DUAL算法)

      5)100%无环路由协议

      6)在EIGRP网络中可以存在255台路由器,相当于和TTL数量持平(TTL=255为最大值)

2.EIGRP的报文类型

      1)  Hello            (你好)         帮助EIGRP协议建立邻居

      2)  Update       (更新)         帮助EIGRP协议学习路由

      3)  Query          (查询)         帮助EIGRP协议在失去下一跳是进行重新查找路径

      4)  Reply           (回复)         帮助EIGRP协议回复Query

      5)  Ack               (确认)         帮助EIGRP协议完成RTP机制(确认可靠的分组)

在正常情况下,EIGRP协议网络中只显示三个报文(Hello,Update,Ack→ 你好,更新,确认)

3.EIGRP采用RTP来保证信息的传输

RTP可靠性传输----------使用Ack来确认可靠分组

可靠分组(Update,Query,Reply)

举例:R1→R2  Query

   R2→R1  Ack1

   R2→R1  Reply

   R1→R2  Ack2

4.EIGRP的特性

      1)  默认路由注入EIGRP域内(四种方法)

      2)  被动接口

      3)  非等价负载均衡

      4)  EIGRPstub

      5)  EIGRP路由手动汇总

      6)  EIGRP链路最大负载均衡

      7)  EIGRP链路认证(1.简单密码认证;2.MD5加密认证)

      8)  超网路由发布

      9)  EIGRP度量值偏移

      10)  EIGRP度量值(开销值)参数调整(带宽,延迟,可靠,负载,MTU)

5.EIGRP的配置

标准指令

router eigrp x(x代表AS,AS:自治系统;自治系统号必须一致才可以路由交互)

  network 网络号

  no auto-summary

例:   12.1.1.1/24 主类号(A类地址):12.0.0.0 网络号:12.1.1.0

       192.168.1.1/24 主类号(C类地址):192.168.1.0 网络号:192.168.1.0

检查路由:

1)查看邻居                   show ip eigrp neighbors

2)查看路由                   show ip route eigrp

3)查看EIGRP协议统计信息         show ip route traffic

6.实验拓扑

   

7.详细配置

R1:

enable

conf t

hostname R1

no ip domain-lookup

interface Loopback1

ip address 1.1.1.1 255.255.255.0

no shu

exit

interface FastEthernet0/0

ip address 192.168.12.1 255.255.255.0

no shu

exit

router eigrp 1

network 1.0.0.0

network 192.168.12.0

no auto-summary

exit

R2:

enable

conf t

hostname R2

no ip domain-lookup

interface Loopback1

ip address 2.2.2.2 255.255.255.0

no shu

exit

interface FastEthernet0/0

ip address 192.168.12.2 255.255.255.0

no shu

exit

interface FastEthernet0/1

ip address 192.168.23.1 255.255.255.0

no shu

exit

router eigrp 1

network 192.168.12.0

network 2.0.0.0

network 192.168.23.0

no auto-summary

exit

R3:

enable

conf t

hostname R3

no ip domain-lookup

interface Loopback1

ip address 3.3.3.3 255.255.255.0

no shu

exit

interface FastEthernet0/0

ip address 192.168.23.2 255.255.255.0

no shu

exit

interface FastEthernet0/1

ip address 192.168.34.1 255.255.255.0

no shu

exit

router eigrp 1

network 3.0.0.0

network 192.168.23.0

network 192.168.34.0

no auto-summary

exit

R4:

enable

conf t

hostname R4

no ip domain-lookup

interface Loopback1

ip address 4.4.4.4 255.255.255.0

no shu

exit

interface FastEthernet0/0

ip address 192.168.34.2 255.255.255.0

no shu

exit

interface FastEthernet0/1

ip address 192.168.45.1 255.255.255.0

no shu

exit

router eigrp 1

network 4.0.0.0

network 192.168.34.0

network 192.168.45.0

no auto-summary

exit

R5:

enable

conf t

hostname R5

no ip domain-lookup

interface Loopback1

ip address 5.5.5.5 255.255.255.0

no shu

exit

interface FastEthernet0/0

ip address 192.168.45.2 255.255.255.0

no shu

exit

router eigrp 1

network 5.0.0.0

network 192.168.45.0

no auto-summary

exit

原文地址:https://www.cnblogs.com/lilywhite/p/9997714.html