EIGRP

                 1.cisco私有

                 2.高级距离矢量型路由协议

                 3.采用DUAL算法

                 4.跨层封装,IP 协议号88

                 5.收敛速度最快

                 6.支持4-6条的负载均衡

                 7.VLSMCIDR

                 8采用组播更新,224.0.0.10

                 9.触发更新

                 11.管理距离,内部管理距离90,外部的管理距离为170,汇总为5

-------------------------

基本配置:

R2(config)#routereigrp 100

R2(config-router)#noauto-summary

R2(config-router)#net12.1.1.0 0.0.0.255

 

EIGRP的三张表:

                   1.邻居表

CCNP第三天_命名式EIGRP配置

·        H,邻居的序号,按照建立邻居的先后顺序排列

·        Address,邻居的的IP地址(邻居与我直连接口的IP,不是Router-id

·        Interface,这个邻居连接在本台设备的哪个接口上

·        Hold,邻居的超时时间,单位,这段时间内如果没有收到邻居发过来的Hello,邻居关系将断开,倒计时

·        Uptime,这个邻居与我建立了多长时间,

·        SRTTSmooth Round Trip Timeout)平滑往返超时时间,单位毫秒,从本台设备发送数据包,到对方返回确认的往返时间

·        RTORetry Timeout)重传超时时间,单位是毫秒,将重传队列的数据传出去之前的等待时间。

·        QcntQueue Count)队列数量,单位,还有多少个EIGRP数据包等待发送出去。正常应该为0,非0EIGRP出现了故障(参考:EIGRP的数据包为什么总是重传?)

·        Seq NumSequence Number)序列号,从邻居那里收到最后一个UpdateQueryReply中携带的序列号。

 

来自 <http://www.ctowhy.com/179.html>

 

 

建立邻居的必要条件:

                          1.相同的AS(auotonomous system)号码

                          2.参与metric计算的5个k值必须相同(k的范围为0-255)

                                   K1--带宽--1()

                                   K2--负载--0

                                   K3-延迟--1

                                   K4--可靠性--0

                                   K5-mtu--0

从源到目的的路径中,只有最低带宽最终决定传输时的带宽,而某条链路的高带宽是没有意义的,所以在EIGRPMetric计算中,只需要计算从源到目标的最低带宽即可,但是经过各个接口的延迟却是要累加的。

Metric=256*(10^7/bw+DY*10)

                       3.链路存在验证,验证密钥必须相同

 

eigrp的等价负载均衡方式:

        1.offset-list列表

                    R1(config-router#router eigrp100

                    R1(config-router)#offset-list 1 in231241241 f0/0

                                acl  偏移量   接口

查看路由条目的后继以及可行后继:show ip eigrp topology all-links

 

      2.修改接口的逻辑控制带宽以及延迟(delay)

               

                    R1(config-if)#bandwidth 1.544

                                           R1(config-if)#delay 1000    接口会自动将delay*10,接口显示delay已经是*10过的

 

(查看)

 

 

 

 2.拓扑表

                               show ip eigrp topology----最优路径以及备份路径(AD<FDmin)

                                show ip eigrp toplologyall-links | detail-links-------存放去往目的网段的所有路径

 

 

  3.路由表

                             show ip route----存放去往目的地网段的最优路径

 

-----------------------------------------------

eigrp的五个分组:

             Hello 是用来发现和维护EIGRP邻居关系的,目标地址为224.0.0.10Hello包在邻居收到后不需要确认。

                           >=1.544M,hello周期为5s,15s的hold time

            <1.544M,(包括帧中继接口)hello为30s,hold time180s

                   Update 发给邻居的路由表,通过单播发送Update数据包,邻居收到后必须回复确认消息

                         Query 当路由信息丢失并没有备用路由时,使用Query数据包向邻居查询,邻居必须回复确认 第一次向邻居发送,组播发送224.0.0.10 重传时单播发送

                        Reply 是对邻居Query数据包的回复,也需要邻居回复确认      

                   Ack :是对收到的数据包的确认,告诉邻居自己已经收到数据包了,收到Ack后,不需要再对Ack做回复,因为这是没有意义的,并且可能造成死循环。

 

    重传机制:16update,query,reply发送没有收到ack,将会重置邻居关系

 

 

Debugeigrp packets retry

Clear  ip eigrp neighbors:重新发送hello包,第一次组播包被放行,但是默认的deny any会把ack单播deny

access-list  100 permit ip any deny host 224.0.0.10

CCNP第三天_EIGRP _02

 

再R2上做acl,deny单播流量,在R1上清除邻居关系,R1会组播发送hello,可以收到R2发送的hello以及update,但是再对update做单播回应时会被deny,之后retry

CCNP第三天_STUB区域 _03

Stuck inactive--------SIA

            向邻居发送query报文,但是没有收到邻居发送的reply,则将从邻居学习到的条目至于active状态(不可用)。3分钟之后,重置邻居关系

            解决SIA:将路由器设为stub路由器,只会回应query,不但是自己本身不发送query

 

默认直接回车是加上   connected summary:即默认发送直连和汇总的路由条目

                                           receive-only:只接收,不发送

                                          redistribute-noly:只发送重分发的路由

tips:关于leak-map,我用这种方式泄露路由没有成功,在eigrp的接口汇总下调用可以成功

                                         

----------------------------

DUAL

       AD:davertise distance通告距离,邻居到达目标网络的metric

   FD:feasible distance,可行距离,本地到目标网段的metric

   S:successor,后继,去往目的网段最小的metrci的下一跳路由器

      FS:feasible successor,可行后继者

      FC:可行条件,AD<Fdmin,防止环路

---------------------------------------

命名式EIGRP的配置:

Tips这段为后来加上的,突然出现在这个位置比较突兀,不过这个笔记本来只是我自己学习时所记,确实有点凌乱,有时间我会慢慢整理的。在15.0版本之后的ISO开始支持,怎么说呢,开始像华为和H3C的配置方式,不过在MPLS ×××中配置vrf还是需要用到这种方式来配置EIGRP

R5(config)#routereigrp CCIE----virtual instance

R5(config-router)#address-familyipv4 unicast autonomous-system 100  ---  ipv4 单播地址簇 as100 

R5(config-router-af)#?

AddressFamily configuration commands:

  af-interface         Enter Address Family interfaceconfiguration

  default              Set a command to its defaults

  eigrp                EIGRP Address Family specificcommands

  exit-address-family  Exit Address Family configuration mode

  help                Description of theinteractive help system

  maximum-prefix       Maximum number of prefixes acceptable inaggregate

  metric               Modify metrics and parametersfor advertisement

  neighbor             Specify an IPv4 neighbor router

  network              Enable routing on an IP network

  no                   Negate a command or set itsdefaults

  shutdown             Shutdown address family

  timers               Adjust peering based timers

  topology             Topology configuration mode

 

af-interfaceeigrp中和接口相同的配置命令

R5(config-router-af)#af-interfaceserial 1/1

R5(config-router-af-interface)#?

AddressFamily Interfaces configuration commands:

  authentication      authentication subcommands

  bandwidth-percent   Set percentage of bandwidth percentage limit

  bfd                 Enable BidirectionalForwarding Detection

  dampening-change    Percent interface metric must change tocause update

  dampening-interval  Time in seconds to check interface metrics

  default             Set a command to its defaults

  exit-af-interface   Exit from Address Family Interfaceconfiguration mode

  hello-interval      Configures hello interval

  hold-time           Configures hold time

  next-hop-self       Configures EIGRP next-hop-self

  no                  Negate a command or set itsdefaults

  passive-interface   Suppress address updates on an interface

  shutdown            Disable Address-Family on interface

  split-horizon       Perform split horizon

  summary-address     Perform address summarization

 

egirp

R5(config-router-af)#eigrp?

  log-neighbor-changes   Enable/Disable EIGRP neighbor logging

  log-neighbor-warnings  Enable/Disable EIGRP neighbor warnings

  router-id              router id for this EIGRP process

  stub                   Set address-family instubbed mode

 

Maximum-prefix:最大路由条目数量

 

Topology base:和拓扑相关的配置

R5(config-router-af-topology)#?

AddressFamily Topology configuration commands:

  auto-summary         Enable automatic network number summarization

  default              Set a command to its defaults

  default-information  Control distribution of default information

  default-metric       Set metric of redistributed routes

  distance             Define an administrative distance

  distribute-list      Filter entries in eigrp updates

  eigrp                EIGRP specific commands

  exit-af-topology     Exit from Address Family Topologyconfiguration mode

  maximum-paths        Forward packets over multiple paths

  metric               Modify metrics and parametersfor advertisement

  no                   Negate a command or set itsdefaults

  offset-list          Add or subtract offset from EIGRPmetrics

  redistribute         Redistribute IPv4 routes from anotherrouting protocol

  summary-metric       Specify summary to applymetric/filtering

  timers               Adjust topology specific timers

  traffic-share        How to compute traffic share overalternate paths

  variance             Control load balancing variance