《路由器 关于 eigrp实验与协议》

2023-12-02 09:40
文章标签 路由器 协议 实验 eigrp

本文主要是介绍《路由器 关于 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实验与协议》的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/444827

相关文章

HTTP 与 SpringBoot 参数提交与接收协议方式

《HTTP与SpringBoot参数提交与接收协议方式》HTTP参数提交方式包括URL查询、表单、JSON/XML、路径变量、头部、Cookie、GraphQL、WebSocket和SSE,依据... 目录HTTP 协议支持多种参数提交方式,主要取决于请求方法(Method)和内容类型(Content-Ty

一文带你迅速搞懂路由器/交换机/光猫三者概念区别

《一文带你迅速搞懂路由器/交换机/光猫三者概念区别》讨论网络设备时,常提及路由器、交换机及光猫等词汇,日常生活、工作中,这些设备至关重要,居家上网、企业内部沟通乃至互联网冲浪皆无法脱离其影响力,本文将... 当谈论网络设备时,我们常常会听到路由器、交换机和光猫这几个名词。它们是构建现代网络基础设施的关键组成

99%的人都选错了! 路由器WiFi双频合一还是分开好的专业解析与适用场景探讨

《99%的人都选错了!路由器WiFi双频合一还是分开好的专业解析与适用场景探讨》关于双频路由器的“双频合一”与“分开使用”两种模式,用户往往存在诸多疑问,本文将从多个维度深入探讨这两种模式的优缺点,... 在如今“没有WiFi就等于与世隔绝”的时代,越来越多家庭、办公室都开始配置双频无线路由器。但你有没有注

Java对接MQTT协议的完整实现示例代码

《Java对接MQTT协议的完整实现示例代码》MQTT是一个基于客户端-服务器的消息发布/订阅传输协议,MQTT协议是轻量、简单、开放和易于实现的,这些特点使它适用范围非常广泛,:本文主要介绍Ja... 目录前言前置依赖1. MQTT配置类代码解析1.1 MQTT客户端工厂1.2 MQTT消息订阅适配器1.

Linux中的自定义协议+序列反序列化用法

《Linux中的自定义协议+序列反序列化用法》文章探讨网络程序在应用层的实现,涉及TCP协议的数据传输机制、结构化数据的序列化与反序列化方法,以及通过JSON和自定义协议构建网络计算器的思路,强调分层... 目录一,再次理解协议二,序列化和反序列化三,实现网络计算器3.1 日志文件3.2Socket.hpp

Linux中的HTTPS协议原理分析

《Linux中的HTTPS协议原理分析》文章解释了HTTPS的必要性:HTTP明文传输易被篡改和劫持,HTTPS通过非对称加密协商对称密钥、CA证书认证和混合加密机制,有效防范中间人攻击,保障通信安全... 目录一、什么是加密和解密?二、为什么需要加密?三、常见的加密方式3.1 对称加密3.2非对称加密四、

小白也能轻松上手! 路由器设置优化指南

《小白也能轻松上手!路由器设置优化指南》在日常生活中,我们常常会遇到WiFi网速慢的问题,这主要受到三个方面的影响,首要原因是WiFi产品的配置优化不合理,其次是硬件性能的不足,以及宽带线路本身的质... 在数字化时代,网络已成为生活必需品,追剧、游戏、办公、学习都离不开稳定高速的网络。但很多人面对新路由器

升级至三频BE12000! 华硕ROG魔盒Pro路由器首发拆解评测

《升级至三频BE12000!华硕ROG魔盒Pro路由器首发拆解评测》华硕前两天推出新一代电竞无线路由器——ROG魔盒Pro(StrixGR7Pro),该产品在无线规格、硬件配置及功能设计上实现全... 作为路由器行业的T1梯队厂商,华硕近期发布了新旗舰华硕ROG魔盒Pro,除了保留DIY属性以外,高达120

三频BE12000国补到手2549元! ROG 魔盒Pro WIFI7电竞AI路由器上架

《三频BE12000国补到手2549元!ROG魔盒ProWIFI7电竞AI路由器上架》近日,华硕带来了ROG魔盒ProWIFI7电竞AI路由器(ROGSTRIXGR7Pro),目前新... 华硕推出了ROG 魔盒Pro WIFI7电竞AI路由器(ROG STRIX GR7 Phttp://www.cppcn

如何在Spring Boot项目中集成MQTT协议

《如何在SpringBoot项目中集成MQTT协议》本文介绍在SpringBoot中集成MQTT的步骤,包括安装Broker、添加EclipsePaho依赖、配置连接参数、实现消息发布订阅、测试接口... 目录1. 准备工作2. 引入依赖3. 配置MQTT连接4. 创建MQTT配置类5. 实现消息发布与订阅