CCNP3实验:EIGRP——增强型内部网关路由协议
文章目录
CCNP3实验:EIGRP——增强型内部网关路由协议
如果实验有不理解的可以查看我这篇博客:CCNP3:EIGRP——增强型内部网关路由协议
该实验采用的模拟器是Webiou,该实验和要求如图所示:
其中:R1为ISP,其余所有路由器均运行EIGRP
一、规划IP:
二、配置:
1、底层:
这里的底层IP根据上图进行配置,因此不再累赘。
2、路由:
(1)宣告路由:
建议这个直接粘贴复制,我这里只演示了一个,其它都这样。
R8(config)#router eigrp 90
R8(config-router)#no auto-summary
R8(config-router)#network 172.16.0.0
当所有的网段都宣告完成之后,可以检查EIGRP的邻居关系,来判断路由宣告的是否顺利。
(2)拨号:
R1(config)#username ccna password cisco123
R1(config)#int s0/0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication chap
R2(config)#int s1/0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp chap hostname ccna
R2(config-if)#ppp chap password cisco123
(3)缺省:
R2(config)#ip route 0.0.0.0 0.0.0.0 12.1.1.1
R2(config)#router eigrp 90
R2(config-router)#redistribute static
(4)NAT:
R2(config)#access-list 1 permit 172.16.0.0 0.0.255.255
R2(config)#ip nat inside source list 1 interface s1/0 overload
R2(config)#int s1/0
R2(config-if)#ip nat outside
R2(config-if)#int e0/0
R2(config-if)#ip nat inside
检测:
(5)Telnet:
R8(config)#username ccie privilege 15 secret cisco123
R8(config)#line vty 0 4
R8(config-line)#login local
R2(config)#ip nat inside source static tcp 172.16.8.1 23 12.1.1.2 23
检测:
3、策略:
(1)修改带宽、非等开销负载均衡:
R4(config)#int s0/1
R4(config-if)#bandwidth 800
查看去往R2环回的拓扑表:
3865600 ➗ 2323456 向上取整为 2
R4(config)#router eigrp 90
R4(config-router)#variance 2
(2)在R2、R3、R5之间安全认证:
R2(config)#key chain ccnp
R2(config-keychain)#key 1 (邻居间必须保持一致)
R2(config-keychain-key)#key-string cisco123 (邻居间必须保持一致)
R2(config-keychain-key)#int e0/0
R2(config-if)#ip authentication key-chain eigrp 90 ccnp
R2(config-if)#ip authentication mode eigrp 90 md5
R3、R5同理,不再演示
(3)优化:汇总路由
R3(config)#int e0/0
R3(config-if)#ip summary-address eigrp 90 172.16.3.0 255.255.255.0
R3(config-if)#int s1/1
R3(config-if)#ip summary-address eigrp 90 172.16.3.0 255.255.255.0
其余路由器也按这样汇总,略……
做完之后,路由表就很干净……
(4)干涉选路:
R6到R8的环回通过R7进行:
首先我们在拓扑表中,找到了去往该网段的备份路径:
接下来,我们要计算R6到R8环回的度量,以及R6通过R7到R8环回的度量。
观察上述拓扑表,我们发现,两条路的度量值相差:
2809856-2297856=512000
那么我么们只需要使用偏移列表将R6直连R8的路加到比512000就可以了,我们取520000。
R6(config)#access-list 1 permit 172.16.8.0
R6(config)#router eigrp 90
R6(config-router)#offset-list 1 in 520000 s0/2
接着就成功了:
补充一下,拓扑表中度量为2809856的度量是这样来的:
EIGRP默认的度量=带宽+延时
带宽:
[ 10^7 / 1544 ] = 6476 x 256 =1657856
延时:
[(20000+20000+5000)/ 10 ] x 256=4500 x256 = 1152000
度量:
1657856+1152000=2809856(和上面拓扑表中的度量一致)
该度量指的就是R8的环回通过R7再到R6所消耗的度量。
到这里所有实验要求都完成了。