GHOST系统之家 - Windows系统光盘下载网站!
当前位置:GHOST系统之家>电脑百科 > Cisco网络协议:EIGRP向本区域下放默认路由的设置方法

Cisco网络协议:EIGRP向本区域下放默认路由的设置方法

来源:Ghost系统之家浏览:时间:2022-11-06 14:39:29

  EIGRP的定义

  EIGRP:Enhanced Interior Gateway Routing Protocol 即 增强内部网关路由线路协议。也翻译为 加强型内部网关路由协议。 EIGRP是Cisco公司的私有协议。Cisco公司是该协议的发明者和唯一具备该协议解释和修改权的厂商。 EIGRP结合了链路状态和距离矢量型路由选择协议的Cisco专用协议,采用弥散修正算法(DUAL)来实现快速收敛,可以不发送定期的路由更新信息以减少带宽的占用,支持Appletalk、IP、Novell和NetWare等多种网络层协议。

  默认路由

  默认路由是一种特殊的静态路由,指的是当路由表中与包的目的地址之间没有匹配的表项时路由器能够做出的选择·如果没有默认路由,那么目的地址在路由表中没有匹配表项的包将被丢弃· 默认路由在某些时候非常有效,当存在末梢网络时,默认路由会大大简化路由器的配置,减轻管理员的工作负担,提高网络性能。

 实验拓扑如下,路由器R1、R2、R3为内部路由器,而R4为外部路由,实验目的为AS内部路由器发放默认路由,那么如何实现呢,请看下面步骤。

Cisco网络协议:EIGRP向本区域下放默认路由的设置方法


  基础配置如下:

  R1:

  interface Loopback0

  ip address 1.1.1.1 255.255.255.0

  !

  interface FastEthernet0/0

  ip address 12.1.1.1 255.255.255.0

  !

  router eigrp 90

  network 0.0.0.0

  no auto-summary

  !

  ========================================================

  R2:

  interface Loopback0

  ip address 2.2.2.2 255.255.255.0

  !

  interface FastEthernet0/0

  ip address 23.1.1.2 255.255.255.0

  !

  interface FastEthernet0/1

  ip address 12.1.1.2 255.255.255.0

  !

  router eigrp 90

  network 0.0.0.0

  no auto-summary

  ========================================================

  R3:

  interface Loopback0

  ip address 3.3.3.3 255.255.255.0

  !

  interface FastEthernet0/1

  ip address 23.1.1.3 255.255.255.0

  !

  interface Serial1/0

  ip address 34.1.1.3 255.255.255.0

  !

  router eigrp 90

  network 23.1.1.3 0.0.0.0

  no auto-summary

  =========================================================

  R4:

  interface Loopback0

  ip address 4.4.4.4 255.255.255.0

  !

  interface Serial1/1

  ip address 34.1.1.4 255.255.255.0

  !

  ip route 0.0.0.0 0.0.0.0 Serial1/1 34.1.1.3

  方法1:通过在AS边界路由器R3上重分发静态的方式引入默认路由

  在R3配置如下:

  R3:

  ip route 0.0.0.0 0.0.0.0 Serial1/0 34.1.1.4

  Router eigrp 90

  Redistribute static

  R1:

  R1#show ip rou

  Gateway of last resort is 12.1.1.2 to network 0.0.0.0

  1.0.0.0/24 is subnetted, 1 subnets

  C 1.1.1.0 is directly connected, Loopback0

  2.0.0.0/24 is subnetted, 1 subnets

  D 2.2.2.0 [90/409600] via 12.1.1.2, 00:15:47, FastEthernet0/0

  23.0.0.0/24 is subnetted, 1 subnets

  D 23.1.1.0 [90/307200] via 12.1.1.2, 00:14:57, FastEthernet0/0

  12.0.0.0/24 is subnetted, 1 subnets

  C 12.1.1.0 is directly connected, FastEthernet0/0

  D*EX 0.0.0.0/0 [170/2221056] via 12.1.1.2, 00:03:44, FastEthernet0/0

  方法2:通过手工宣告默认静态路由,只是该路由不能指定下一跳

  R3:

  Ip route 0.0.0.0 0.0.0.0 serial 1/0

  Router eigrp 90

  Network 0.0.0.0

  R1:

  R1#show ip rou

  Gateway of last resort is 12.1.1.2 to network 0.0.0.0

  34.0.0.0/24 is subnetted, 1 subnets

  D 34.1.1.0 [90/2221056] via 12.1.1.2, 00:02:57, FastEthernet0/0

  1.0.0.0/24 is subnetted, 1 subnets

  C 1.1.1.0 is directly connected, Loopback0

  2.0.0.0/24 is subnetted, 1 subnets

  D 2.2.2.0 [90/409600] via 12.1.1.2, 00:23:44, FastEthernet0/0

  3.0.0.0/24 is subnetted, 1 subnets

  D 3.3.3.0 [90/435200] via 12.1.1.2, 00:02:57, FastEthernet0/0

  23.0.0.0/24 is subnetted, 1 subnets

  D 23.1.1.0 [90/307200] via 12.1.1.2, 00:22:55, FastEthernet0/0

  12.0.0.0/24 is subnetted, 1 subnets

  C 12.1.1.0 is directly connected, FastEthernet0/0

  D* 0.0.0.0/0 [90/2221056] via 12.1.1.2, 00:00:03, FastEthernet0/0

  方法3:使用ip default-network x.x.x.x,注意在使用该方法时边界路由器上要满足三个条件,条件一:路由表中必须要有该主类路由条目(该主类的子网路由不算),条件二:宣告时要同RIP一样宣告该主类网络,条件三:ip default-netwok 后的网络也必须是主类网络

  D* 0.0.0.0/0 [90/2221056] via 12.1.1.2, 00:00:03, FastEthernet0/0

  R3:

  Ip default-network 34.0.0.0

  Ip route 34.0.0.0 255.0.0.0 serial 1/0 34.1.1.4 //R3并没有该主类网络路由

  Router eigrp 90

  Network 34.0.0.0

  R1:

  R1#show ip route

  Gateway of last resort is 12.1.1.2 to network 34.0.0.0

  34.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

  D 34.1.1.0/24 [90/2221056] via 12.1.1.2, 00:02:11, FastEthernet0/0

  D* 34.0.0.0/8 [90/2221056] via 12.1.1.2, 00:00:14, FastEthernet0/0

  1.0.0.0/24 is subnetted, 1 subnets

  C 1.1.1.0 is directly connected, Loopback0

  2.0.0.0/24 is subnetted, 1 subnets

  D 2.2.2.0 [90/409600] via 12.1.1.2, 00:02:11, FastEthernet0/0

  23.0.0.0/24 is subnetted, 1 subnets

  D 23.1.1.0 [90/307200] via 12.1.1.2, 00:02:11, FastEthernet0/0

  12.0.0.0/24 is subnetted, 1 subnets

  C 12.1.1.0 is directly connected, FastEthernet0/0

  其实我们不一定非要指定外网出接口作为默认网络,可以使用环回接口作默认网络可可控性也很强,只写出简单配置:

  C 12.1.1.0 is directly connected, FastEthernet0/0

R3:

  Ip default-network 192.168.10.0

  Interface loopback 1

  Ip address 192.168.10.1 255.255.255.0

  Router eigrp 90

  Network 192.168.10.0

  R1:

  R1#show ip rou

  Gateway of last resort is 12.1.1.2 to network 192.168.10.0

  1.0.0.0/24 is subnetted, 1 subnets

  C 1.1.1.0 is directly connected, Loopback0

  2.0.0.0/24 is subnetted, 1 subnets

  D 2.2.2.0 [90/409600] via 12.1.1.2, 00:08:12, FastEthernet0/0

  D* 192.168.10.0/24 [90/435200] via 12.1.1.2, 00:00:08, FastEthernet0/0

  23.0.0.0/24 is subnetted, 1 subnets

  D 23.1.1.0 [90/307200] via 12.1.1.2, 00:08:12, FastEthernet0/0

  12.0.0.0/24 is subnetted, 1 subnets

  C 12.1.1.0 is directly connected, FastEthernet0/0

  和上面做出比较,环回接口更加稳定,此外可以减小一个路由条目,内网不需要公网的参与,编址也有所优化,在网络中只有使用ip defaul-netwok下放的不是全0的默认路由

  方法4:由于EIGRP支持CIDR,而CIDR的极限就是0.0.0.0/0

  C 12.1.1.0 is directly connected, FastEthernet0/0

  R3:

  Interface fastethernet 0/1

  Ip summary-address eigrp 90 0.0.0.0 0.0.0.0

  R1:

  R1#show ip rou

  Gateway of last resort is 12.1.1.2 to network 0.0.0.0

  1.0.0.0/24 is subnetted, 1 subnets

  C 1.1.1.0 is directly connected, Loopback0

  2.0.0.0/24 is subnetted, 1 subnets

  D 2.2.2.0 [90/409600] via 12.1.1.2, 00:16:44, FastEthernet0/0

  23.0.0.0/24 is subnetted, 1 subnets

  D 23.1.1.0 [90/307200] via 12.1.1.2, 00:16:44, FastEthernet0/0

  12.0.0.0/24 is subnetted, 1 subnets

  C 12.1.1.0 is directly connected, FastEthernet0/0

  D* 0.0.0.0/0 [90/332800] via 12.1.1.2, 00:00:02, FastEthernet0/0

  以上就是Cisco网络协议EIGRP向本区域下放默认路由的设置方法,谢谢阅读,希望能帮到大家,请继续关注,我们会努力分享更多优秀的文章。

标签:

推荐系统

  • windows11中文版镜像 微软win11正式版简体中文GHOST ISO镜像64位系统下载

    windows11中文版镜像 微软win11正式版简体中文GHOST ISO镜像64位系统下载

    语言:中文版系统大小:5.31GB系统类型:Win11

    windows11中文版镜像 微软win11正式版简体中文GHOST ISO镜像64位系统下载,微软win11发布快大半年了,其中做了很多次补丁和修复一些BUG,比之前的版本有一些功能上的调整,目前已经升级到最新版本的镜像系统,并且优化了自动激活,永久使用。windows11中文版镜像国内镜像下载地址微软windows11正式版镜像 介绍:1、对函数算法进行了一定程度的简化和优化

  • 微软windows11正式版GHOST ISO镜像 win11下载 国内最新版渠道下载

    微软windows11正式版GHOST ISO镜像 win11下载 国内最新版渠道下载

    语言:中文版系统大小:5.31GB系统类型:Win11

    微软windows11正式版GHOST ISO镜像 win11下载 国内最新版渠道下载,微软2022年正式推出了win11系统,很多人迫不及待的要体验,本站提供了最新版的微软Windows11正式版系统下载,微软windows11正式版镜像 是一款功能超级强大的装机系统,是微软方面全新推出的装机系统,这款系统可以通过pe直接的完成安装,对此系统感兴趣,想要使用的用户们就快来下载

  • 微软windows11系统下载 微软原版 Ghost win11 X64 正式版ISO镜像文件

    微软windows11系统下载 微软原版 Ghost win11 X64 正式版ISO镜像文件

    语言:中文版系统大小:0MB系统类型:Win11

    微软Ghost win11 正式版镜像文件是一款由微软方面推出的优秀全新装机系统,这款系统的新功能非常多,用户们能够在这里体验到最富有人性化的设计等,且全新的柔软界面,看起来非常的舒服~微软Ghost win11 正式版镜像文件介绍:1、与各种硬件设备兼容。 更好地完成用户安装并有效地使用。2、稳定使用蓝屏,系统不再兼容,更能享受无缝的系统服务。3、为

  • 雨林木风Windows11专业版 Ghost Win11官方正式版 (22H2) 系统下载

    雨林木风Windows11专业版 Ghost Win11官方正式版 (22H2) 系统下载

    语言:中文版系统大小:4.75GB系统类型:

    雨林木风Windows11专业版 Ghost Win11官方正式版 (22H2) 系统下载在系统方面技术积累雄厚深耕多年,打造了国内重装系统行业的雨林木风品牌,其系统口碑得到许多人认可,积累了广大的用户群体,雨林木风是一款稳定流畅的系统,一直以来都以用户为中心,是由雨林木风团队推出的Windows11国内镜像版,基于国内用户的习惯,做了系统性能的优化,采用了新的系统

  • 雨林木风win7旗舰版系统下载 win7 32位旗舰版 GHOST 免激活镜像ISO

    雨林木风win7旗舰版系统下载 win7 32位旗舰版 GHOST 免激活镜像ISO

    语言:中文版系统大小:5.91GB系统类型:Win7

    雨林木风win7旗舰版系统下载 win7 32位旗舰版 GHOST 免激活镜像ISO在系统方面技术积累雄厚深耕多年,加固了系统安全策略,雨林木风win7旗舰版系统在家用办公上跑分表现都是非常优秀,完美的兼容各种硬件和软件,运行环境安全可靠稳定。win7 32位旗舰装机版 v2019 05能够帮助用户们进行系统的一键安装、快速装机等,系统中的内容全面,能够为广大用户

  • 番茄花园Ghost Win7 x64 SP1稳定装机版2022年7月(64位) 高速下载

    番茄花园Ghost Win7 x64 SP1稳定装机版2022年7月(64位) 高速下载

    语言:中文版系统大小:3.91GB系统类型:Win7

    欢迎使用 番茄花园 Ghost Win7 x64 SP1 2022.07 极速装机版 专业装机版具有更安全、更稳定、更人性化等特点。集成最常用的装机软件,集成最全面的硬件驱动,精心挑选的系统维护工具,加上独有人性化的设计。是电脑城、个人、公司快速装机之首选!拥有此系统

  • 番茄花园 Windows 10 极速企业版 版本1903 2022年7月(32位) ISO镜像快速下载

    番茄花园 Windows 10 极速企业版 版本1903 2022年7月(32位) ISO镜像快速下载

    语言:中文版系统大小:3.98GB系统类型:Win10

    番茄花园 Windows 10 32位极速企业版 v2022年7月 一、系统主要特点: 使用微软Win10正式发布的企业TLSB版制作; 安装过程全自动无人值守,无需输入序列号,全自动设置; 安装完成后使用Administrator账户直接登录系统,无需手动设置账号。 安装过程中自动激活

  • 新萝卜家园电脑城专用系统 Windows10 x86 企业版 版本1507 2022年7月(32位) ISO镜像高速下载

    新萝卜家园电脑城专用系统 Windows10 x86 企业版 版本1507 2022年7月(32位) ISO镜像高速下载

    语言:中文版系统大小:3.98GB系统类型:Win10

    新萝卜家园电脑城专用系统 Windows10 x86企业版 2022年7月 一、系统主要特点: 使用微软Win10正式发布的企业TLSB版制作; 安装过程全自动无人值守,无需输入序列号,全自动设置; 安装完成后使用Administrator账户直接登录系统,无需手动设置账号。 安装过程