前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ccnp第3讲之笔记 (eigrp)

ccnp第3讲之笔记 (eigrp)

作者头像
py3study
发布2020-01-14 10:21:23
3300
发布2020-01-14 10:21:23
举报
文章被收录于专栏:python3python3

一、eigrp是高级的距离矢量协议。

eigrp传送的是路由条目,但是接受到了路由条目的路由器并不会马上将条目加入路由表,而是根据接受到的所有路由条目构建一个全网拓扑,然后在计算出最佳路由,再将这个最佳路由放入路由表。

eigrp只支持增量更新。路由只传一次,之后稳定了下来,只传增量更新。

eigrp是唯一的支持非等价负载均衡的协议。

二、eigrp的三张表

A、邻居表

B、拓扑表

C、路由表

三、EIGRP的度量值

带宽、延迟、可靠性、负载。

带宽:所有网段的最小值

延迟:所有网段的汇总

可靠性:所有网段的最小值

负载:所有网段的最大值

四、EIGRP常用命令

no  autosummary

eigrp  router-id 最大环回口地址

show  ip  protocols

show  ip  eigrp  interface

show  ip  eigrp  neighbors

五、实验:EIGRP的等价负载均衡

实现R1有到R5的2条等价路由。

1、基本配置完成后,查看R1路由 1.0.0.0/24 is subnetted, 1 subnets C       1.1.1.0 is directly connected, Loopback0 5.0.0.0/24 is subnetted, 1 subnets D       5.5.5.0 [90/158720] via 11.1.1.3, 00:05:16, FastEthernet0/0 10.0.0.0/24 is subnetted, 1 subnets C       10.1.1.0 is directly connected, Serial0/0 11.0.0.0/24 is subnetted, 1 subnets C       11.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnets D       12.1.1.0 [90/35840] via 11.1.1.3, 00:05:16, FastEthernet0/0 13.0.0.0/24 is subnetted, 1 subnets D       13.1.1.0 [90/30720] via 11.1.1.3, 00:05:18, FastEthernet0/0 14.0.0.0/24 is subnetted, 1 subnets D       14.1.1.0 [90/2565120] via 10.1.1.2, 00:00:06, Serial0/0

其中到5.5.5.5的路由,是通过R3转发的,度量值是158720。

然后查看默认的度量参考值为 1  0  1  0  0,命令是show  ip  protocols

EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0

然后通过show  interface  xx  查看具体接口的带宽和延迟:

R1:

s0/0: 1544kb/s   延迟20000us             f0/0:100000kb/s   延迟100us

R2:

f0/0:100000kb/s   延迟100us

R3:

f0/1:100000kb/s   延迟100us

R4:

f0/1:100000kb/s   延迟100us

R5:

loopback0:80000000kb/s   延迟5000us

所以可以知道256(10000000/100000+100/10+100/10+5000/10)=158720

现在为了实现2条等价路由,所以要使上路和下路的度量值一样,我通过修改带宽来达到这个目的。

对于R1,假如S0/0的带宽为BWs,F0/0的带宽为BWf,我们可以让2个带宽都取一个合适的值来到达上下两路的度量值一样。

(注1:BWs和BWf都要确保为整条链路的最小带宽)

(注2:可以在接口下用bandwidth来修改,但不要担心这个修改的数值会真正影响带宽,它并没有实际意义,只是影响eigrp选路而已)

所以可以得到下面这样的一个表达式:

256[10000000/BWf+100/10+100/10+5000/10]=256[10000000/ BWs+20000/10+100/10+100/10+5000/10]

所以简化之后可以得到:

[10000000/BWf] – [10000000/BWs]=2000

所以假如让BWf=1000 ,BWs=1250,那么上面的表达式是可以成立的,所以我就这样做了

R1(config)#interface s0/0 R1(config-if)#ban R1(config-if)#bandwidth 1250 R1(config-if)#int f0/0 R1(config-if)#ban R1(config-if)#bandwidth 1000 R1(config-if)#end

然后查看路由:

1.0.0.0/24 is subnetted, 1 subnets C       1.1.1.0 is directly connected, Loopback0 5.0.0.0/24 is subnetted, 1 subnets D       5.5.5.0 [90/2693120] via 11.1.1.3, 00:00:17, FastEthernet0/0 [90/2693120] via 10.1.1.2, 00:00:17, Serial0/0 10.0.0.0/24 is subnetted, 1 subnets C       10.1.1.0 is directly connected, Serial0/0 11.0.0.0/24 is subnetted, 1 subnets C       11.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnets D       12.1.1.0 [90/2562560] via 10.1.1.2, 00:00:18, Serial0/0 13.0.0.0/24 is subnetted, 1 subnets D       13.1.1.0 [90/2565120] via 11.1.1.3, 00:00:18, FastEthernet0/0 14.0.0.0/24 is subnetted, 1 subnets D       14.1.1.0 [90/2565120] via 10.1.1.2, 00:00:21, Serial0/0

发现到达5.5.5.5已经有了2条等价路由了。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-07-12 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
负载均衡
负载均衡(Cloud Load Balancer,CLB)提供安全快捷的流量分发服务,访问流量经由 CLB 可以自动分配到云中的多台后端服务器上,扩展系统的服务能力并消除单点故障。负载均衡支持亿级连接和千万级并发,可轻松应对大流量访问,满足业务需求。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档