[Lab1]-EIGRP试验
650) this.width=650;” height=”176″ title=”clip_image002″ style=”margin:0px;border:0px;padding-top:0px;padding-right:0px;padding-left:0px;background-image:none;” src=”http://www.fwqtg.net/wp-content/uploads/2015/06/wKioL1V1DS3DRetnAABgXOMy5-o262.jpg” border=”0″ alt=”[Lab1]-EIGRP试验” />
3.3.3.3是internet
1.4.1 重分布方法
把静态路由重分布进eigrp
R2(config)#ip route 0.0.0.0 0.0.0.0 s1/0
R2(config)#router ei 90
R2(config-router)#redistribute static
650) this.width=650;” height=”75″ title=”clip_image006″ style=”margin:0px;border:0px;padding-top:0px;padding-right:0px;padding-left:0px;background-image:none;” src=”http://www.fwqtg.net/wp-content/uploads/2015/06/wKioL1V1DS6x5MG3AACiQNv0lIs085.jpg” border=”0″ alt=”[Lab1]-EIGRP试验” />
R2 上配置如下
ip default-network 3.0.0.0
ip route 3.0.0.0 255.0.0.0 Serial1/0
R2#sh run | se router ei
router eigrp 90
network 3.0.0.0
network 12.0.0.0
no auto-summary
650) this.width=650;” height=”220″ title=”clip_image010″ style=”margin:0px;border:0px;padding-top:0px;padding-right:0px;padding-left:0px;background-image:none;” src=”http://www.fwqtg.net/wp-content/uploads/2015/06/wKioL1V1DTGi85HRAACSUHCFrWk828.jpg” border=”0″ alt=”[Lab1]-EIGRP试验” />
1.5.1等价负载均衡
默认eigrp是开启等价负载均衡,因为 variance的值为1
EIGRP maximum metric variance 1
为了方便算metric值我们用命令修改该K值
R1/2/3/4(config-if)#router eig 90
R1/2/3/4 (config-router)#metric weight 0 0 0 1 0 0
默认metric计算公式:metric= [10^7 /bandwidth (min) + delay(sum)/10] * 256
在R1上看3.3.3.3的路由表
D 3.3.3.0 [90/665600] via 14.1.1.4, 00:00:58, FastEthernet0/1
[90/665600] via 12.1.1.2, 00:00:58, FastEthernet0/0
下面我们来计算下665600是怎么来的?
Show inter f0/0 s1/0 lo0
可以看到个个接口的延迟 那么我们把这些接口的延迟加起来
metric计算的方向为路由进接口的方向 (interface in 方向 )
6656600 = (20000 + 1000 + 5000 )/10 * 256
1.5.2 非等价负载均衡
如何开启负载均衡?
首先负载均衡是发生在 s 与 fs 之间,所以开启它的条件为:
1 AD < (S)FD ===>也是成为fs的条件
2 FS FD < S FD * V 值
我们先把R2的延迟改高些,R4的延迟改低一些
R2(config)#int s1/0
R2(config-if)#delay 15 (实际上为150 微妙 ,10倍的倍数关系)
R4 (config-if)#delay 10
同时在R1上让v值不等于1
R1(config)#router ei 90
R1(config-router)#variance 2
在R1上看拓扑表
R1#sh ip eigrp topology
P 3.3.3.0/24, 1 successors, FD is 156160
via 14.1.1.4 (156160/130560), FastEthernet0/1
via 12.1.1.2 (157440/131840), FastEthernet0/0
条件1:131840 < 156160 符合成为fs的条件
条件2: FD(主)*variance >FD(备份)时
156160 * 2 > 157440
Show ip route可以查看结果
1.6 eigrp的路由过滤
试验要求:用上图的试验拓扑图,全网跑 eigrp
在r1 开三个lookback 口 , 地址分别是 1.1.1.1 10.1.1.1 100.1.1.1
650) this.width=650;” height=”137″ title=”clip_image014″ style=”margin:0px;border:0px;padding-top:0px;padding-right:0px;padding-left:0px;background-image:none;” src=”http://www.fwqtg.net/wp-content/uploads/2015/06/wKioL1V1DTSClB47AADXnpln7r0193.jpg” border=”0″ alt=”[Lab1]-EIGRP试验” />
1.7 offset-list 在 eigrp中的使用
接上图试验,我们使从23.1.1.2过来的100.1.1.0的路由的metric的值瞬间增加改为600000
命令:
R3#sh ip access-lists
Standard IP access list 20
10 permit 100.1.1.0, wildcard bits 0.0.0.255 (4 matches)
R3(config)#router ei 90
R3(config-router)# offset-list 20 in 600000 Serial1/0
再次查看r3的路由表,发现metric 变为1265600 ( 665600+600000)
D 100.1.1.0 [90/1265600] via 23.1.1.2, 00:00:24, Serial1/0
1.8 eigrp stub
Eigrp stub是避免sia的一个比较好的方式,因为它可以限制查询范围
拓扑图如下:
650) this.width=650;” height=”226″ title=”clip_image018″ style=”border:0px;padding-top:0px;padding-right:0px;padding-left:0px;background-image:none;” src=”http://www.fwqtg.net/wp-content/uploads/2015/06/wKioL1V1DTbhaB46AAE7sSBQGgg759.jpg” border=”0″ alt=”[Lab1]-EIGRP试验” />
1.9 EIGRP 常用命令
show ip eigrp neighbors 查看EIGRP 邻居表
show ip eigrp topology 查看EIGRP 拓扑结构数据库
show ip eigrp interface 查看运行EIGRP 路由协议的接口的状况
show ip eigrp traffic 查看EIGRP 发送和接收到的数据包的统计情况
debug eigrp neighbors 查看EIGRP 动态建立邻居关系的情况
debug eigrp packets 显示发送和接收的EIGRP 数据包
ip hello-interval eigrp 配置EIGRP 的HELLO 发送周期
ip hold-time eigrp 配置EIGRP 的HELLO hold 时间
router eigrp 启动EIGRP 路由进程
no auto-summary 关闭自动汇总
ip authentication mode eigrp 配置EIGRP 的认证模式
ip authentication key-chain eigrp 在接口上调用钥匙链
variance 配置非等价负载均衡
delay 配置接口下的延迟
bandwidth 配置接口下的带宽
offset-list [access list number] in [values] [interface] 调整metric值
ip summary-address eigrp 手工路由汇总
本文出自 “Erick WAY” 博客,谢绝转载!
发表回复