案例19:配置EIGRP-1

2019-04-21 19:12

《网络工程》教学案例—基于PT

案例19:配置EIGRP—基本配置

1. 案例目标

通过本案例,你可以掌握如下技能: 1) 在路由器上启动EIGRP路由进程 2) 启用参与路由协议的接口,并且通告网络 3) EIGRP度量值的计算方法

4) 可行距离(FD)、通告距离(AD)和可行性条件 5) 邻居表、拓扑表以及路由表的含义 6) 查看和调试EIGRP路由协议相关信息

2. 设备与拓扑

设备:4台2811路由器。 拓扑:如下图。

3. 操作步骤

步骤1:按拓扑图配置好各路由器的主机名和显示名,包括回环口IP地址和串口IP地址。

广东韶关学院 王为群编

1

《网络工程》教学案例—基于PT

步骤2:配置R1路由器

R1#conf t

Enter configuration commands, one per line. End with CNTL/Z. R1(config)#router eigrp 1

R1(config-router)#no auto-summary //禁止自动汇总

R1(config-router)#network 1.1.1.0 0.0.0.255 //回环口网络 R1(config-router)#network 192.168.12.0 //串行口网络 R1(config-router)#exit

%SYS-5-CONFIG_I: Configured from console by console R1(config)#int s0/0/0 R1(config-if)#bandwidth 128

//设置接口带宽,将影响度量计算

步骤3:配置R2

R2#conf t

Enter configuration commands, one per line. End with CNTL/Z. R2(config)#router eigrp 1 R2(config)#no auto-summary

R2(config-router)#network 192.168.12.0 R2(config-router)#network 192.168.23.0 R2(config-router)#exit R2(config)# int s0/0/0

R2(config-if)#bandwidth 128 步骤4:配置R3

R3#conf t

Enter configuration commands, one per line. End with CNTL/Z. R3(config)#router eigrp 1

R3(config-router)#no auto-summary R3(config-router)#network 192.168.23.0 R3(config-router)#network 192.168.34.0 R3(config-router)#end

%SYS-5-CONFIG_I: Configured from console by console

2

广东韶关学院 王为群编

《网络工程》教学案例—基于PT

R3#

步骤5:配置R4

R4(config)#router eigrp 1

R4(config-router)#no auto-summary

R4(config-router)#network 4.4.4.0 0.0.0.255 R4(config-router)#network 192.168.34.0 R4(config-router)#end

%SYS-5-CONFIG_I: Configured from console by console

R4#

注意:EIGRP协议在通告网段时,如果是主类网络(即标准A、B、C类的网络,或者说没有划分子网的网络),输入此网络地址即可;如果是子网的话,则最好在网络号后面写通配符掩码(反掩码),这样可以避免将所有的子网都加入EIGRP进程中。通配符掩码是用广播地址(255.255.255.255)减去子网掩码所得到。如掩码地址是255.255.248.0,则反掩码地址是0.0.7.255。运行EIGRP的整个网络AS号码必须一致,其范围为1-65535之间。

步骤6:在R2上验证路由表

R2#sh ip ro

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set

1.0.0.0/24 is subnetted, 1 subnets

D 1.1.1.0 [90/20640000] via 192.168.12.1, 00:28:38, Serial0/0/0 4.0.0.0/24 is subnetted, 1 subnets

D 4.4.4.0 [90/2809856] via 192.168.23.3, 00:00:33, Serial0/0/1

3

广东韶关学院 王为群编

《网络工程》教学案例—基于PT

C 192.168.12.0/24 is directly connected, Serial0/0/0 C 192.168.23.0/24 is directly connected, Serial0/0/1

D 192.168.34.0/24 [90/2681856] via 192.168.23.3, 00:00:33, Serial0/0/1 R2#

注意:以上输出表明路由器R2通过EIGRP学到了3条EIGRP路由条目,管理距离是90,注意EIGRP协议代码用字母“D”表示,通过重分布方式进入EIGRP网络的路由条目,默认管理距离为170,路由代码用“D EX”表示。 EIGRP度量值的计算公式=[ K1 * Bandwidth + (K2 * Bandwidth)/(256-Load) + K3*Delay ]*[K5/(Reliability + K4) ] *256

默认情况下,K1 = K3 = 1,K2 = K4 = K5 = 0 。

Bandwidth =107/所经由链路中入口带宽(单位为Kbps)的最小值 Delay=所经由链路中入口的延迟之和(单位为μs)/10

路由器R2中的“1.1.1.0”路由条目的度量值是如何计算的?

首先看带宽应该是从R1的Loopback0到R2最小的,应该是R2的s0/0/0接口的带宽,为128K,而延迟是路由器R1的 Loopback0和路由器R2的s0/0/0接口的延迟之和,所以最后的度量值应该是

[107/128+(5000+20000)/10]*256=20640000,和路由器计算的结果是一致 的。(接口的带宽和延迟可以通过“show interface”命令来查看)

步骤7:在R2上验证EIGRP路由协议 R2#sh ip protocols

Routing Protocol is \ 1 \

// AS号码为1

Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 // 显示计算度量值所用的K值

广东韶关学院 王为群编

4

《网络工程》教学案例—基于PT

EIGRP maximum hopcount 100 // EIGRP支持的最大跳数

EIGRP maximum metric variance 1

// variance值默认为1,即默认时只支持等价路径的负载均衡 Redistributing: eigrp 1

Automatic network summarization is not in effect // 显示自动汇总已经关闭,默认自动汇总是开启的 Maximum path: 4

Routing for Networks: 192.168.12.0 192.168.23.0

Routing Information Sources:

Gateway Distance Last Update 192.168.23.3 90 3530000 192.168.12.1 90 7812425 Distance: internal 90 external 170 R2#

步骤8:在R2上验证EIGRP邻居

R2#sh ip eigrp neighbors

IP-EIGRP neighbors for process 1

H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 192.168.23.3 Se0/0/1 11 01:33:12 40 1000 0 18 1 192.168.12.1 Se0/0/0 12 00:21:50 40 1000 0 18

R2#

//以上输出各字段的含义如下:

① H: 表示与邻居建立会话的顺序; ② Address: 邻居路由器的接口地址; ③ Interface: 本地到邻居路由器的接口;

④ Hold: 认为邻居关系不存在所能等待的最大时间; ⑤ Uptime: 从邻居关系建立到目前的时间;

广东韶关学院 王为群编

5


案例19:配置EIGRP-1.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2018年教科版小学科学三年级下册教案(含教学反思)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: