本文主要是介绍《路由器 关于 eigrp实验与协议》,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<pre class="html" name="code">EIGRP
EIGRP:Enhanced Interior Gateway Routing Protocol 即 增强内部网关路由线路协议。也翻译为 加强型内部网关路由协议。 EIGRP是Cisco公司的私有协议。Cisco公司是该协议的发明者和唯一具备该协议解释和修改权的厂商。 EIGRP结合了链路状态和距离矢量型路由选择协议的Cisco专用协议,采用弥散修正算法(DUAL)来实现快速收敛,可以不发送定期的路由更新信息以减少带宽的占用,支持Appletalk、IP、Novell和NetWare等多种网络层协议。
1.支持多种网络层协议
EIGRP使用协议无关模块来支持IPv4、IPv6、Apple Talk和IPX,以满足特定网络层需求。
2. 使用多播和单播
EIGRP在路由器之间通信时使用多播和单播而不是广播,因此终端站不受路由更新和查询的影响。EIGRP使用的多播地址是224.0.0.10
3. 支持变长子网掩码(VLSM)
EIGRP是一种无类路由协议,它将通告每个目标网络的子网掩码,支持不连续子网和VLSM
R1:R1#conf tR1(config)#int f0/0R1(config-if)#ip add 13.1.1.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exitR1(config)#int l 0R1(config-if)#ip add 1.1.1.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exitR1(config)#router eigrp 100R1(config-router)#no auto-summaryR1(config-router)#network 1.1.1.0 0.0.0.255R1(config-router)#network 13.1.1.0 0.0.0.255R1(config-router)#endR1#R1#show ip int b //查看路由接口Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 13.1.1.1 YES manual up upLoopback0 1.1.1.1 YES manual up upR1#show ip route //查看路由表Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS summary, 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 routeGateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback0 13.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, FastEthernet0/0R1#R2:R2#conf tR2(config)#int f0/0R2(config-if)#ip add 23.1.1.2 255.255.255.0R2(config-if)#no shutR2(config-if)#exitR2(config)#int l 0R2(config-if)#ip aR2(config-if)#ip add 2.2.2.2 255.255.255.0R2(config-if)#no shutR2(config-if)#exitR2(config)#router eigrp 100R2(config-router)#no auto-summaryR2(config-router)#network 2.2.2.0 0.0.0.255R2(config-router)#network 23.1.1.0 0.0.0.255R2(config-router)#exitR2(config)#R2(config)#do show ip int b //查看路由接口Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 23.1.1.2 YES manual up upLoopback0 2.2.2.2 YES manual up upR2(config)#do show ip rout //查看路由表Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS summary, 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 routeGateway of last resort is not set 2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0 23.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, FastEthernet0/0R2(config)#R2(config)#R3:R3#conf tR3(config)#int f0/0R3(config-if)#ip add 13.1.1.3 255.255.255.0R3(config-if)#no shutR3(config-if)#exitR3(config)#int f1/0R3(config-if)#ip add 23.1.1.3 255.255.255.0R3(config-if)#no shutR3(config-if)#exitR3(config)#int f2/0R3(config-if)#ip add 34.1.1.3 255.255.255.0R3(config-if)#no shutR3(config-if)#exitR3(config)#int f3/0R3(config-if)#ip add 35.1.1.3 255.255.255.0R3(config-if)#exitR3(config)#router eigrp 100R3(config-router)#no auto-summaryR3(config-router)#network 13.1.1.0 0.0.0.255R3(config-router)#network 13.1.1.0 0.0.0.255R3(config-router)#network 23.1.1.0 0.0.0.255R3(config-router)#network 34.1.1.0 0.0.0.255R3(config-router)#network 35.1.1.0 0.0.0.255R3(config-router)#exitR3(config)#do show ip int b //查看路由接口Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 13.1.1.3 YES manual up upFastEthernet1/0 23.1.1.3 YES manual up upFastEthernet2/0 34.1.1.3 YES manual up upFastEthernet3/0 35.1.1.3 YES manual up upR3(config)#R3(config)#do show ip rout //查看路由表Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS summary, 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 routeGateway of last resort is not set 34.0.0.0/24 is subnetted, 1 subnetsC 34.1.1.0 is directly connected, FastEthernet2/0 1.0.0.0/24 is subnetted, 1 subnetsD 1.1.1.0 [90/156160] via 13.1.1.1, 00:01:07, FastEthernet0/0 35.0.0.0/24 is subnetted, 1 subnetsC 35.1.1.0 is directly connected, FastEthernet3/0 2.0.0.0/24 is subnetted, 1 subnetsD 2.2.2.0 [90/156160] via 23.1.1.2, 00:00:51, FastEthernet1/0 4.0.0.0/24 is subnetted, 1 subnetsD 4.4.4.0 [90/156160] via 34.1.1.4, 00:00:37, FastEthernet2/0 5.0.0.0/24 is subnetted, 1 subnetsD 5.5.5.0 [90/156160] via 35.1.1.5, 00:00:25, FastEthernet3/0 23.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, FastEthernet1/0 13.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, FastEthernet0/0R3(config)#exitR3#ping 1.1.1.1 //ping通1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/39/56 msR3#ping 2.2.2.2 //ping通2.2.2.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/45/76 msR3#ping 4.4.4.4 //ping通4.4.4.4Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/39/56 msR3#ping 5.5.5.5 //ping通5.5.5.5Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/31/52 msR3#R4:R4#conf tR4(config)#int f0/0R4(config-if)#ip add 34.1.1.4 255.255.255.0R4(config-if)#no shutR4(config-if)#exitR4(config)#int l 0R4(config-if)#ip add 4.4.4.4 255.255.255.0R4(config-if)#no shutR4(config-if)#R4(config-if)#exitR4(config)#R4(config)#router eigrp 100R4(config-router)#no auto-summaryR4(config-router)#network 4.4.4.0 0.0.0.255R4(config-router)#network 34.1.1.0 0.0.0.255R4(config-router)#exitR4(config)#do show ip int b //查看路由接口Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 34.1.1.4 YES manual up upLoopback0 4.4.4.4 YES manual up upR4(config)#do show ip rout //查看路由表Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS summary, 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 routeGateway of last resort is not set 34.0.0.0/24 is subnetted, 1 subnetsC 34.1.1.0 is directly connected, FastEthernet0/0 4.0.0.0/24 is subnetted, 1 subnetsC 4.4.4.0 is directly connected, Loopback0R4(config)#R5:R5#conf tR5(config)#int f0/0R5(config-if)#ip add 35.1.1.5 255.255.255.0R5(config-if)#no shutR5(config-if)#exiR5(config)#int l 0R5(config-if)#ip addR5(config-if)#ip add 5.5.5.5 255.255.255.0R5(config-if)#no shutR5(config-if)#exitR5(config)#router eigrp 100R5(config-router)#no auto-summaryR5(config-router)#netR5(config-router)#network 5.5.5.0 0.0.0.255R5(config-router)#network 35.1.1.0 0.0.0.255R5(config-router)#exitR5(config)#do show ip int b //查看路由接口Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 35.1.1.5 YES manual up upLoopback0 5.5.5.5 YES manual up upR5(config)#R5(config)#do show ip rout //查看路由表Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS summary, 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 routeGateway of last resort is not set 35.0.0.0/24 is subnetted, 1 subnetsC 35.1.1.0 is directly connected, FastEthernet0/0 5.0.0.0/24 is subnetted, 1 subnetsC 5.5.5.0 is directly connected, Loopback0R5(config)#
这篇关于《路由器 关于 eigrp实验与协议》的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!