EIGRP路由协议配置实验
- 格式:doc
- 大小:871.50 KB
- 文档页数:10
一、实验目的掌握EIGRP的配置掌握EIGRP负载均衡的配置掌握EIGRP中地址的手工汇总二、实验内容与实验要求实验内容、原理分析及具体实验要求。
实现网络的互连互通,从而实现信息的共享和传递。
R1和R2之间连接的两条线路形成负载均衡关系;进行指定的地址手工汇总。
三、实验环境实验所使用的设备名称及规格、网络结构图。
路由器3台四、实验过程与分析根据具体实验,记录、整理相应命令、运行结果等。
详细记录在实验过程中发生的故障和问题,并进行故障分析,说明故障排除的过程及方法。
1.在所有路由器上进行IP地址基本配置,并测试直连链路的连通性。
R1:F0/0Router>ENRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface F0/0Router(config-if)#ip address 21.21.21.1 255.255.255.0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up Router(config-if)#exitS0/2/0Router(config)#int s0/2/0Router(config-if)#ip address 12.12.12.1 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/2/0, changed state to downRouter(config-if)#exitLo1Router(config)#int lo1Router(config-if)#ip address 1.1.1.1 255.255.255.0Router(config-if)#no shutR2:F0/0Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#ip address 21.21.21.2 255.255.255.0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitS0/2/0Router(config)#int s0/2/0Router(config-if)#ip add 12.12.12.2 255.255.255.0Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/2/0, changed state to upS0/2/1Router(config)#int s0/2/1Router(config-if)#ip add 23.23.23.2 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/2/1, changed state to upRouter(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/2/1, changed state to upLo1Router(config)#int lo 1Router(config-if)#%LINK-5-CHANGED: Interface Loopback1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to upRouter(config-if)#ip add 2.2.2.2 255.255.255.0Router(config-if)#no shutRouter(config-if)#exitR3:S0/2/0Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int s0/2/0Router(config-if)#ip address 23.23.23.3 255.255.255.0Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/2/0, changed state to downRouter(config-if)#exitLo1Router(config)#int lo 1Router(config-if)#ip address 3.3.3.3 255.255.255.0Router(config-if)#no shutRouter(config-if)#exit测试连通性R1 ping R2Router>ping 12.12.12.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.12.12.2, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 3/5/6 ms Router>ping 21.21.21.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 21.21.21.2, timeout is 2 seconds: .!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 20/20/20 ms R3 ping R2Router>ping 23.23.23.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 23.23.23.2, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/21/26 ms 2.在各路由器上用eigrp进行配置R1:Router(config)#router eigrp 1Router(config-router)#network 12.12.12.0 0.0.0.255Router(config-router)#network 21.0.0.0Router(config-router)#network 1.0.0.0R2:Router(config)#router eigrp 1Router(config-router)#network 23.0.0.0Router(config-router)#network 12.0.0.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 12.12.12.1 (Serial0/2/0) is up: new adjacencyRouter(config-router)#network 21.0.0.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 21.21.21.1 (FastEthernet0/0) is up: new adjacencyRouter(config-router)#network 2.0.0.0R3:Router(config)#router eigrp 1Router(config-router)#network 3.0.0.0Router(config-router)#network 23.0.0.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 23.23.23.2 (Serial0/2/0) is up: new adjacency3.用show ip route命令检查路由是否正确,查看关键信息R1R2R34.用show ip eigrp topology、show ip eigrp neighbor查看拓扑表和邻居表R1R2R35.关闭R1的f0/0,在R1上查看到达3.0.0.0/8的metric值,在R1上配置正确的variance值,以达到不等价负载平衡(可以在s0/0接口上调整bandwidth值)。
计算机网络技术及应用课程实验报告班级:学号:姓名:任课教师:实验教师:成绩:一、试验名称:EIGRP注入缺省路由二、试验目的、要求:1、 R1和R2连接的LAN模拟为一个公司的内部网络,该内部网络使用的地址为B类地址172.168.0.0、162、按照所给出的表配置拓扑中的设备IP地址3、公司内部使用EIGRP协议(R1和R2之间),AS号为1,公司到INTERNET之间使用静态路由协议(R2和R3之间)4、 R2为边界路由器,配置redistribute命令使公司内部的路由器(R1)能够学习到EIGRP注入进来的缺省路由三、试验要求、环境:1、PC1(所在子网有15台PC)、PC2(所在子网有100台PC)、PC3(所在子网有200台PC),运行Windows操作系统,装有超级终端程序。
2、Cisco1248路由器3台(R1、R2、R3)。
3、2950T交换机3台4、Console控制线三根。
5、v.35dte电缆一根,v.35dce电缆一根,交叉网线6根。
四、试验内容:1、模拟一个公司的内部网络,是R1和R2连接的LAN所模拟的。
且使用B类地址。
2、配置所需要的IP地址。
3、需要所配置时注意公司内部使用EIGRP协议,公司到INTERNET之间使用静态路由协议。
五、试验过程:任务一:配置路由器的IP信息步骤一、配置R1设备的IP信息步骤二:配置R2设备的IP信息步骤三、配置R3设备的IP信息任务二:配置PC机的IP 信息步骤一、配置PC1的IP信息步骤二:配置PC2的IP信息步骤三、配置PC3的IP信息任务三:使用EIGRP协议启动路由器的网络接口步骤一、使用EIGRP协议启动R1的网络接口步骤二、使用EIGRP协议启动R2的网络接口步骤三、使用EIGRP协议启动R3的网络接口任务四:配置时钟步骤一、配置R2上的s0/0/0接口的时钟任务五:使用show命令检查路由器步骤一、使用show ip route 和 show ip protocols命令检查R1步骤二、使用show ip route 和 show ip protocols命令检查R2步骤三、使用show ip route 和 show ip protocols命令检查R3到任务结束时任务也该通过的(100%):六、试验总结:1、能使用拓扑图中显示的网络学习如何配置使用EIGRP协议2、能模拟一个较大型的内部网络进行配置3、学会了配置REDISTRIBUTE命令使网络的路由器能够学习到EIGRP注入进来的缺省路由实验室:计算机网络实验室实验时间:2011年10。
配置EIGRP协议实验目的:1、了解混合路由选择协议的工作原理,使用的度量值,2、了解EIGRP协议的优点,掌握eigrp路由协议的配置方法。
实验设备:三台cisco路由器,三台pc,三根双绞线,两根serial连线。
实验内容与步骤:1、首先熟悉书上关于EIGRP路由协议的知识,掌握EIGRP的度量方法,配置方法。
2、按上图将pc和路由器连接好。
3、按上图给各主机和路由器接口设置好IP地址。
IP地址的规划为:Pc1----192.168.1.2,网关:192.168.1.1Tom----f0:172.16.1.1,s0(DCE):172.16.2.1,s1:172.16.3.2Green----s0(DCE):172.16.3.1,s1:172.16.4.2Jackson----s0(DCE):172.16.4.1,s1:172.16.2.2,f0:172.16.5.1Student2----172.16.5.2,网关:172.16.5.1配置方法为:Router(config)#interface type port_#Router(config-if)#ip address ip_address subnet_maskRouter(config-if)#no shutdown例如配置快速以太网口:router(config)#interface fastethernet 0router(config)#ip address 192.168.1.2 255.255.255.0router(config)#no shutdown4、在路由器A、B、C上配置eigrp路由选择协议,自治系统号为10。
Router(config)#router eigrp autonomous_system_#Router(config-router)#network ip_network wildmask //指定与路由器直接相连的网络例如:router(config)#router eigrp 10router(config)#network 172.16.6.0 0.0.0.2555、给DCE接口设置时钟速率。
EIGRP路由协议的配置一、实验目的1、在路由器上启动EIGRP进程2、启动参与路由协议的接口,并且通告网路其所在区域3、可行距离FD、通告距离RD及其可行性条件FC4、EIGRP自动汇总5、EIGRP手工汇总6、查看和调试EIGRP路由协议二、实验要求本实验要求达到如下要求:1、给出具体实验步骤2、给出某个路由器上路由表的内容3、给出调试信息4、给出某个路由器到目的网段FD和RD三、实验拓扑四、实验设备(环境、条件)1、路由器3台2、交叉线3条五、实验涉及到的基本概念和理论EIGRP特性:EIGRP使用DUAL,具有传统距离矢量路由协议所不具备的新功能,不会发送定期更新路由条目也不会过期,而且使用Hello协议来监控他与邻居的连接状态,仅当路由信息变化时,才会产生路由更新。
可行距离FD:到达目标网络最小的度量值通告距离RD:邻居路由器通告它到达目标网络的距离可行性条件:RD<FD可行后继、后继:通过指定可行后继路由器,EIGRP路由器在后继路由器失效时,能够马上将该路由安装到路由表可行后继是备份路由。
后继路由器是到达指定目的最优的下一跳邻居路由器。
后继路由是主要路由。
六、实验过程和主要步骤(1)由拓扑可知,该网路需要4个子网段,可分别取:192.168.1.0/24、10.168.2.0/24、192.168.2.0/24和202.196.32.1/30。
各路由器接口基本信息如下所示:(2)配置EIGRP网络:EIGRP使用一个进程ID来代表各自在路由器上运行的协议实例,路由器上任何符合network命令中的接口都将被启用。
例如对Router0的配置Router0(config)#router eigrp 1Router0(config-router)#network 192.168.1.0Router0(config-router)#network 10.168.2.0Router0(config-router)#network 202.196.32.0注意所有路由器的ID必须一致,这样才可以实现网络资源共享。
【实验内容】
配置EIGRP协议
【实验环境】
1、硬件环境
路由器4 台,同步串行线3 条
2、软件环境
WindowsXP 操作系统、pcaket tracer 仿真软件3、拓扑结构图
【实验步骤】
1、配置并打开各路由器的IP 及时钟频率
2、配置路由协议EIGRP
3、测试网络连通性
4、查看路由协议、路由表、邻居表和拓扑表
1) 查看路由协议R1#show ip protocols
2) 查看路由表R1#show ip route
3) 查看eigrp 邻居表R2#show ip eigrp neighbors
【实验总结】
通过本实验我们掌握了EIGRP的基本配置,怎样启动EIGRP路由进程,如何进行查看邻居表、路由协议以及路由表的方法和相关信息。
了解到EIGRP是一种混合型的路由协议,具有链路状态和距离矢量路由协议的优点,能够快速收敛和易于配置等优点。
本实验为我们以后的学习打下了坚实的基础。
EIGRP动态路由协议实验目的: (2)实验内容: (2)一、拓补图 (2)二、配置IP (2)三、设备配置代码 (2)1、交换机MS0配置代码 (2)2、路由器R7配置代码 (4)3、路由器R8配置代码 (4)四、配置结果 (5)1、交换机MS0查看路由表 (5)2、路由器R7查看路由表 (6)3、交换机M0查看EIGRP拓补表 (7)4、路由器R7查看EIGRP拓补表 (8)5、Ping各网段结果 (9)实验目的:将多处的计算机通过交换机和路由器将不同的网段组成一个互联网络,为了提高网络的可靠性且便于维护,用EIGRP路由协议。
实验内容:一、拓补图三、设备配置代码1、交换机MS0配置代码Switch>enaSwitch#conf tSwitch(config)#vlan 10创建VLANSwitch(config-vlan)#exSwitch(config)#vlan 20Switch(config-vlan)#exSwitch(config)#vlan 30Switch(config-vlan)#exSwitch(config)#vlan 40Switch(config-vlan)#exSwitch(config)#int f0/1将VLAN划分到端口Switch(config-if)#sw ac vl 10Switch(config-if)#exSwitch(config)#int f0/2Switch(config-if)#sw ac vl 20Switch(config-if)#exSwitch(config)#int f0/3Switch(config-if)#sw ac vl 30Switch(config-if)#exSwitch(config)#int f0/4Switch(config-if)#sw ac vl 40Switch(config-if)#exSwitch(config)#int vl 10Switch(config-if)#ip add 192.168.10.254 255.255.255.0配置SVI地址Switch(config-if)#no shuSwitch(config-if)#exSwitch(config)#int vl 20Switch(config-if)#ip add 192.168.20.254 255.255.255.0Switch(config-if)#no shuSwitch(config-if)#exSwitch(config)#int vl 30Switch(config-if)#ip add 192.168.30.254 255.255.255.0Switch(config-if)#no shuSwitch(config-if)#exSwitch(config)#int vl 40Switch(config-if)#ip add 192.168.40.254 255.255.255.0Switch(config-if)#no shuSwitch(config-if)#exSwitch(config)#ip routing开启路由Switch(config)#router eigrp 100开启EIGRP协议进程号100(1~65535) Switch(config-router)#network 192.168.10.0声明直连网络号Switch(config-router)#network 192.168.20.0Switch(config-router)#network 192.168.30.0Switch(config-router)#network 192.168.40.0Switch(config-router)#no auto-summarySwitch(config-router)#exSwitch(config)#ip route 0.0.0.0 0.0.0.0 192.168.40.2配置默认路由2、路由器R7配置代码Router>enaRouter#conf tRouter(config)#int f0/0配置端口IP,启动端口Router(config-if)#ip address 192.168.40.2 255.255.255.0Router(config-if)#no shuRouter(config-if)#exRouter(config)#int f1/0Router(config-if)#ip address 172.30.200.254 255.255.255.0Router(config-if)#no shuRouter(config)#int s2/0Router(config-if)#ip address 200.1.1.1 255.255.255.0Router(config-if)#clo ra 64000 DCE口串行通信同步时钟64000bps Router(config-if)#no shuRouter(config-if)#exRouter(config)#router eigrp 100开启EIGRP协议进程号100(1~65535) Router(config-router)#network 192.168.40.0声明直连网络号Router(config-router)#network 172.30.200.0Router(config-router)#network 200.1.1.0Router(config-router)#no auto-summaryRouter(config-router)#exRouter(config)#ip route 0.0.0.0 0.0.0.0 200.1.1.2配置默认路由3、路由器R8配置代码Router>enaRouter#conf tRouter(config)#int s2/0配置端口IP,启动端口(S2/0口为DTE类型不需配置时钟)Router(config-if)#ip address 200.1.1.2 255.255.255.0Router(config-if)#no shutRouter(config)#int f1/0Router(config-if)#ip add 202.108.22.254 255.255.255.0Router(config-if)#no shutRouter(config-if)#exRouter(config)#ip route 0.0.0.0 0.0.0.0 200.1.1.1配置默认路由四、配置结果1、交换机MS0查看路由表2、路由器R7查看路由表5、Ping各网段结果。
实验十EIGRP路由协议阶段一:基本的EIGRP配置实验要求:1.完成路由器基本参数配置;2.在sibo1上创建4个环回口;在sibo3上创建1个环回口;IP地址如图所示;3.所有路由器参与EIGRP,AS号为100。
实验过程:1.启动EIGRP进程sibo1(config)#router eigrp 100sibo1(config-router)#network 192.168.12.0sibo1(config-router)#network 172.16.0.0sibo1(config-router)#network 172.16.1.0sibo1(config-router)#network 172.16.2.0sibo1(config-router)#network 172.16.3.0sibo2(config)#router eigrp 100sibo2(config-router)#network 192.168.12.0sibo2(config-router)#network 192.168.23.0sibo3(config)#router eigrp 100sibo3(config-router)#network 192.168.23.0sibo3(config-router)#network 10.0.0.02.查看sibo2的路由表sibo2#show ip routeGateway of last resort is not setD 172.16.0.0/16 [90/2297856] via 192.168.12.1, 00:01:11, Serial0D 10.0.0.0/8 [90/2297856] via 192.168.23.3, 00:01:11, Serial1C 192.168.12.0/24 is directly connected, Serial0C 192.168.23.0/24 is directly connected, Serial1注:EIGRP的代号为D,来源与它的核心算法:DUAL 。
基本EIGRP 配置实验学习目标在路由器上进行基本配置任务配置并激活接口。
在所有路由器上配置EIGRP 路由。
使用show 命令检验EIGRP 路由。
禁用自动总结。
配置手动总结。
记录EIGRP 配置。
场景在本实验练习中,您将学习如何使用拓扑图中所示的网络配置路由协议EIGRP。
将在路由器R2 上使用一个环回地址来模拟通向ISP的连接,所有发往本地网络外的通信都将被发送到该地址。
某些网段使用VLSM 划分了子网。
EIGRP 是一种无类路由协议,可用于在路由更新中提供子网掩码信息。
这将使VLSM 子网信息可传播到整个网络。
任务1:准备网络。
步骤1:根据拓扑图所示完成网络电缆连接。
任务2:进行基本路由器配置。
根据下列指导原则在路由器R1、R2 和R3 上进行基本配置:配置路由器主机名。
配置执行模式口令。
任务3:配置并激活串行地址和以太网地址。
步骤1:配置路由器R1、R2 和R3 的接口。
使用拓扑图下方的表中的IP地址在路由器R1、R2 和R3 上配置接口。
步骤2:检验IP 地址和接口。
使用show ip interface brief 命令检验IP地址是否正确以及接口是否已激活。
完成后,确保将运行配置保存到路由器的NVRAM 中。
步骤3:配置PC1、PC2 和PC3 的以太网接口。
使用拓扑图下方的表格中的IP地址和默认网关配置PC1、PC2 和PC3 的以太网接口。
任务4:在路由器R1 上配置EIGRP。
步骤1:启用EIGRP。
在路由器R1 上,在全局配置模式下使用router eigrp 命令启用EIGRP。
输入进程ID 1 作为autonomous-system 参数值。
R1(config)#router eigrp 1步骤2:配置有类网络172.16.0.0。
一旦您处于EIGRP 配置子模式后,请将有类网络172.16.0.0 配置为包括在从R1 发出的EIGRP 更新中。
R1(config-router)#network 172.16.0.0该路由器将开始通过属于网络172.16.0.0 的每个接口发出EIGRP 更新消息。
实验4:EIGRP协议配置实验4.1 实验相关知识(1)EIGRP协议是思科专属协议,其余厂商设备不支持EIGRP。
(2)EIGRP一种增强型距离矢量路由协议,采用复合度量,默认使用带宽和延时,带宽使用的是到达目标网络链路中的最低带宽,延时是到达目标网络中每条链路的延时总和。
(3)在Cisco设备上,EIGRP在动态路由协议中的优先级较高,管理距离为90,另外EIGRP的总结路由管理距离为5,外部引入路由的管理距离为170,实验中这三类都会出现。
(4) EIGRP的配置比较简单,主要是在路由上通告自己想要广播的网络,并可以采用通配符掩码来限定通告网络的范围,当然也可以在必要的接口上关闭网络通告。
(6)EIGRP支持手动汇总,基于接口的手动汇总可以将本地可汇总多个网络路由汇总成较少条目的汇总路由更新出去,从而减少其它设备学习到的路由条目。
(5) EGIRP配置中常见的错误包括EIGRP自治系统号不一致、路由通告错误、自动汇总错误等,可使用show命令查看并纠正。
4.2 实验目的及要求(1) 掌握动态路由协议EIGRP工作原理,理解EIGRP的DUAL算法,掌握可行性条件的判断、路由表项、拓扑表项的生成。
(2) 掌握EIGRP的基本配置,理解并掌握EIGRP的手动汇总配置,掌握EIGRP的静态路由重分布。
(3) 了解EIGRP的参数调整,包括K值、带宽、计时调整等。
(4) 掌握如何检查EIGRP路由和排除路由故障。
4.3 实验内容及步骤第一部分路由器基本配置第一步:完成设备基本配置根据拓扑图4-1,检查设备连接,完成设备更名,enable、VTY口令配置。
参考指令如下:Router>enableRouter# configure terminalRouter(config)# hostname hostname //请参照拓扑图4-1中设备上的字母提示来命名Router(config)# enable secret ciscoRouter(config)# line vty 0 15Router(config-line)# password ciscoRouter(config-line)# loginRouter(config-line)# exitRouter1(config)# service password-encryption图4-1 RIP实验拓扑结构图说明:1、此处Router3模拟的外网接口Fa0/1也接入交换机即可,2、Loopback接口为网络测试用的回环接口,是虚拟的接口,主要用来测试网络,不需要网络线缆连接第二步:完成设备接口地址及描述的配置完成设备接口配置,包括接口IP地址配置、接口描述和接口开启。
一、实验目的掌握EIGRP的配置掌握EIGRP负载均衡的配置掌握EIGRP中地址的手工汇总二、实验内容与实验要求实验内容、原理分析及具体实验要求。
实现网络的互连互通,从而实现信息的共享和传递。
R1和R2之间连接的两条线路形成负载均衡关系;进行指定的地址手工汇总。
三、实验环境实验所使用的设备名称及规格、网络结构图。
路由器3台四、实验过程与分析根据具体实验,记录、整理相应命令、运行结果等。
详细记录在实验过程中发生的故障和问题,并进行故障分析,说明故障排除的过程及方法。
1.在所有路由器上进行IP地址基本配置,并测试直连链路的连通性。
R1:F0/0Router>ENRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface F0/0Router(config-if)#ip address 21.21.21.1 255.255.255.0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up Router(config-if)#exitS0/2/0Router(config)#int s0/2/0Router(config-if)#ip address 12.12.12.1 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/2/0, changed state to downRouter(config-if)#exitLo1Router(config)#int lo1Router(config-if)#ip address 1.1.1.1 255.255.255.0Router(config-if)#no shutR2:F0/0Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#ip address 21.21.21.2 255.255.255.0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitS0/2/0Router(config)#int s0/2/0Router(config-if)#ip add 12.12.12.2 255.255.255.0Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/2/0, changed state to upS0/2/1Router(config)#int s0/2/1Router(config-if)#ip add 23.23.23.2 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/2/1, changed state to upRouter(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/2/1, changed state to upLo1Router(config)#int lo 1Router(config-if)#%LINK-5-CHANGED: Interface Loopback1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to upRouter(config-if)#ip add 2.2.2.2 255.255.255.0Router(config-if)#no shutRouter(config-if)#exitR3:S0/2/0Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int s0/2/0Router(config-if)#ip address 23.23.23.3 255.255.255.0Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/2/0, changed state to downRouter(config-if)#exitLo1Router(config)#int lo 1Router(config-if)#ip address 3.3.3.3 255.255.255.0Router(config-if)#no shutRouter(config-if)#exit测试连通性R1 ping R2Router>ping 12.12.12.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.12.12.2, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 3/5/6 ms Router>ping 21.21.21.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 21.21.21.2, timeout is 2 seconds: .!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 20/20/20 ms R3 ping R2Router>ping 23.23.23.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 23.23.23.2, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/21/26 ms 2.在各路由器上用eigrp进行配置R1:Router(config)#router eigrp 1Router(config-router)#network 12.12.12.0 0.0.0.255Router(config-router)#network 21.0.0.0Router(config-router)#network 1.0.0.0R2:Router(config)#router eigrp 1Router(config-router)#network 23.0.0.0Router(config-router)#network 12.0.0.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 12.12.12.1 (Serial0/2/0) is up: new adjacencyRouter(config-router)#network 21.0.0.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 21.21.21.1 (FastEthernet0/0) is up: new adjacencyRouter(config-router)#network 2.0.0.0R3:Router(config)#router eigrp 1Router(config-router)#network 3.0.0.0Router(config-router)#network 23.0.0.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 23.23.23.2 (Serial0/2/0) is up: new adjacency3.用show ip route命令检查路由是否正确,查看关键信息R1R2R34.用show ip eigrp topology、show ip eigrp neighbor查看拓扑表和邻居表R1R2R35.关闭R1的f0/0,在R1上查看到达3.0.0.0/8的metric值,在R1上配置正确的variance值,以达到不等价负载平衡(可以在s0/0接口上调整bandwidth值)。
R1Router(config)#int f0/0Router(config-if)#shutdownRouter(config-if)#exit配置variance 值Router(config)#router eigrp 1Router(config-router)#variance 10Router(config-router)#exit6.在R2上关闭自动汇总,在R1、R2、R3上再次查看路由掩码的变化Router(config)#router eigrp 1Router(config-router)#no auto-summary%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 21.21.21.1 (FastEthernet0/0) is up: new adjacency%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 12.12.12.1 (Serial0/2/0) is up: new adjacency%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 23.23.23.3 (Serial0/2/1) is up: new adjacency7.在R2上s0/2/1接口上进行手工汇总,汇总地址为:12.12.0.0 255.255.0.0,在R3上查看路由的变化。