第章多种路由协议重分布PPT课件.ppt_第1页
第章多种路由协议重分布PPT课件.ppt_第2页
第章多种路由协议重分布PPT课件.ppt_第3页
第章多种路由协议重分布PPT课件.ppt_第4页
第章多种路由协议重分布PPT课件.ppt_第5页
已阅读5页,还剩90页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

第6章多种路由协议重分布 主要内容 6 1 1路由重分布的基本概念6 1 2路由重分布的命令 重点 6 1 3在多路由协议中选择最佳路径 难点 6 1路由重分布概述 6 2静态路由 RIP OSPF和EIGRP路由重分布举例 重难点 6 3本章命令汇总 6 1路由重分布概述 6 1 1路由重分布的基本概念6 1 2路由重分布的命令6 1 3在多路由协议中选择最佳路径 6 1 1路由重分布的基本概念 路由重分布问题的提出 当许多运行不同路由协议的网络要集成到一起时 必须在这些不同的路由协议之间共享路由信息 问题提出 OSPF度量值 cost EIGRP度量值 带宽 延时 路由重分布的概念 在不同路由协议之间交换路由信息的过程称为路由重分布 它将一种路由选择协议获悉的路由信息告知给另一种路由选择协议 特点 1 单向 双向 2 只能由自治域边界路由器进行路由重分布 3 只能在同一种第三层协议的路由选择进程之间进行路由重分布 路由重分布的应用环境 因公司购并造成公司网络整合 且多家公司网络应用不同路由协议 如果要统一使用一种路由协议 重新配置工作量很大 且网络需要停止工作 实际上是不允许的 因公司某种业务或策略需要 配置多种路由协议 有些厂商设备只支持RIP或OSPF协议 使用多厂商设备时也需要配置路由重发布 路由重分布的条件 路由重发布的前提是两个路由协议必须是在一个网络体系结构内 如TCP IP 如果一个在TCP IP内 另一个在IPX内 二者是不允许路由重发布的 未配置路由重分布时 RIP不能学习到172 16 1 0 172 16 3 0网络路由 OSPF也不能学习到10 1 1 0 10 1 3 0网络的路由 如果在自治系统边界路由器 ASBR 上配置路由重发布 使得路由协议可以学习到其他路由域的路由信息 通过这种方式学习到的路由作为外部路由 路由器优先选择内部路由 路由重分布注意的问题 路由回环管理距离不同路由信息不兼容 度量标准不同收敛时间不一致不要重叠使用路由协议有多个边界路由器的情况下使用单向重分布在单边界的情况下使用双向重分布 6 1 2路由重分布的命令 路由重分布命令格式如下 Router config router redistributeprotocol protocol id level 1 level 2 level 1 2 metricmetric value metric typetype value match internal external1 external2 tagTag value route mapmap tag weightweight subnets 6 1 2路由重分布的命令 路由重分布命令格式如下 Router config router redistributeprotocol protocol id level 1 level 2 level 1 2 metricmetric value metric typetype value match internal external1 external2 tagTag value route mapmap tag weightweight subnets 仅用于IS IS协议 6 1 2路由重分布的命令 路由重分布命令格式如下 Router config router redistributeprotocol protocol id level 1 level 2 level 1 2 metricmetric value metric typetype value match internal external1 external2 tagTag value route mapmap tag weightweight subnets 6 1 2路由重分布的命令 路由重分布命令格式如下 Router config router redistributeprotocol protocol id level 1 level 2 level 1 2 metricmetric value metric typetype value match internal external1 external2 tagTag value route mapmap tag weightweight subnets 6 1 2路由重分布的命令 路由重分布命令格式如下 Router config router redistributeprotocol protocol id level 1 level 2 level 1 2 metricmetric value metric typetype value match internal external1 external2 tagTag value route mapmap tag weightweight subnets 6 1 2路由重分布的命令 路由重分布命令格式如下 Router config router redistributeprotocol protocol id level 1 level 2 level 1 2 metricmetric value metric typetype value match internal external1 external2 tagTag value route mapmap tag weightweight subnets 将过滤器用于源路由协议导入的路由 不指定该值则允许所有的路由被重发布 6 1 2路由重分布的命令 路由重分布命令格式如下 Router config router redistributeprotocol protocol id level 1 level 2 level 1 2 metricmetric value metric typetype value match internal external1 external2 tagTag value route mapmap tag weightweight subnets 给被重分发到BGP中的路由指定一个0 65535的整数 用以确定多条路径中的最佳路径 6 1 2路由重分布的命令 路由重分布命令格式如下 Router config router redistributeprotocol protocol id level 1 level 2 level 1 2 metricmetric value metric typetype value match internal external1 external2 tagTag value route mapmap tag weightweight subnets 用于重分发路由到OSPF时 重分发非标准子网 将其他路由重分发到RIP 例1将OSPF路由发布到RIP进程中 且种子度量值指定为2跳 Route config routerripRoute config router redistributeospf1metric2 将其他路由重分布到RIP时 直连路由 静态路由的默认度量值为1 OSPF EIGRP等路由的默认度量值为无穷大 将其他路由重分发到OSPF 例2将RIP路由重分发到OSPF进程中 并将种子度量值指定为100 RB config routerospf1RB config router redistributeripmetric100subnets Subnets 重分发非标准网络 例3默认路由重分布 RB config iproute0 0 0 00 0 0 0s0 0 在RB上指定一条默认路由 RB config routerripRB config router default informationoriginate 将默认路由重分发到RIP中 RB config routerospf1RB config router default informationoriginate 将默认路由重分发到OSPF中 例4静态路由重分布 RB config iproute199 198 197 0255 255 255 0200 199 198 2 RB上配置一条静态路由 RB config routerripRB config router redistributestatic metric2 RB config router redistributeconnected 将静态路由 直连路由重分发到RIP中 例4静态路由重分布 RB config routerospf1RB config router redistributestaticsubnets 将静态路由分发到OSPF中 6 1 3多路由协议中选择最佳路由 使用多路由协议 会产生两个或多个到达目的地的不同路径 确定到达目的地的最佳路径 必须基于管理距离administrativedistance和默认度量defaultmetric 重分布的关键 协调管理距离和度量值 管理距离越小 协议可信度越高 不同协议度量值不同 RIP度量是跳数 OSPF度量是带宽 EIGRP度量是带宽和延时 必须让执行路由重分布的路由器给被重分配的路由指定度量值 常用的路由协议其管理距离 例如 从某路由器到目的网络有RIP和EIGRP两条路径 EIGRP管理距离小 则EIGRP路由被放在路由表中 1使用distance改变管理距离 distance命令格式 weight变量 实际的管理距离 范围10 255 可选项address和mask 指匹配的网络 access list number或name变量 指定入站路由更新报文的访问列表编号或一个标准IP访问列表的名称 ip关键字 用于IS IS路由协议 Router config router distanceweight addressmask access list number name ip 例如 Router config router distanceweight addressmask access list number name ip routerEIGRP10 启动EIGRPnetwork192 168 1 0 宣告直连网络192 168 1 0network172 16 0 0 宣告直连网络172 16 0 0distance255 对已接收的路由 没有显式设置路由更新报文的管理距离时所有的路由都被忽略distance90192 168 31 00 0 0 255 由192 168 31 0网络更新的报文 其管路距离为90distance120172 28 0 00 0 255 255 由172 28 0 0网络更新的报文 其管路距离为120 2使用default metric修改缺省度量值 种子度量值 seedmetric 定义在路由重分布中 是一条从外部重分布进来的路由的初始度量值 各路由协议默认的种子度量值如表6 1 默认的种子度量值 2使用default metric修改缺省度量值 default metric命令修改默认度量值的两种格式 1 Router config router default metricnumber number变量范围 0到任意正整数 2 Router config router default metricbandwidthdelayreliabilityloadingmtu default metric第一种格式 1 Router config router default metricnumber 例如 路由器上同时运行RIP和OSPF 双向重分布 routerripdefault metric4 设置被重分布的OSPF路由的默认度量值为4 跳数 redistributeospf100 将OSPF路由重分布到RIP中routerospf100default metric10 设置被重分布的RIP路由的默认度量值为10 代价 redistributerip 将RIP路由重分布到OSPF中 default metric第二种格式 2 Router config router default metricbandwidthdelayreliabilityloadingmtu 主要用于IGRP和EIGRP 有5种度量值 带宽bandwidth 以kb s为单位 延时delay 以10ms为单位 实际的值是 delay值 39 1ns 的结果 可靠性reliability 范围0 255 值越大路由越可靠 负载loading 表示路由上有效带宽的百分比 范围0 255 最大传输单元mtu 以字节为单位 default metric第二种格式示例 2 Router config router default metricbandwidthdelayreliabilityloadingmtu routereigrpnetwork172 16 1 0redistributeripdefault metric100050255501500 将RIP路由重分布到eigrp路由中 5个默认参数如上 3使用distribute list过滤被重分布的路由 distribute list命令的两种格式 1 Router config router distribute list access list number name in typenumber 2 Router config router distribute list access list number name out interface name routing process autonomous system number 3使用distribute list过滤被重分布的路由 distribute list命令的两种格式 1 Router config router distribute list access list number name in typenumber 该命令用于IS IS和OSPF之外的所有路由协议 access list number name变量 指定哪个网络可以被接收 或者哪个在重分布之前被抑制 typenumber变量 识别分配列表使用哪个路由器接口 若不使用该变量 则使用所有接口 distribute list命令的第一种格式 1 Router config router distribute list access list number name in typenumber Routereigrp10network172 16 0 0distribute list1inaccess list1permit0 0 0 0access list1permit172 16 0 0access list1deny0 0 0 0255 255 255 255 access list1的内容 只允许默认网络0 0 0 0和172 16 0 0网络 其他任何入站路由更新报文都被deny distribute list命令的第二种格式 2 Router config router distribute list access list number name out interface name routing process autonomous system number routereigrp10network10 0 0 0redistributeeigrp110 路由重分布命令distribute list1outeigrp110routereigrp110network192 168 31 0network172 16 0 0access list1peimit192 168 31 0 access list1的内容 以上命令 只允许EIGRP110的192 168 31 0网络被重分布到eigrp10中 6 2静态路由 RIP OSPF EIGRP路由重分布举例 1 实验目的 1 种子度量值的配置 2 路由重分布参数的配置 3 静态路由重分布 4 RIP和EIGRP的重分布 5 EIGRP和OSPF的重分布 6 重分布路由的查看和调试 3 实验配置步骤如下 2 静态路由 RIP OSPF EIGRP路由重分布举例实验拓扑如图6 1所示 3 实验拓扑图和配置步骤如下 第一步 R1接口参数配置 Router enRouter conftRouter config hostnameR1R1 config intloopback0R1 config if ipadd1 1 1 1255 255 255 0R1 config if intloopback1R1 config if ipadd202 121 241 8255 255 255 0R1 config if ints0 0R1 config if ipadd192 168 12 1255 255 255 0R1 config if clockrate64000R1 config if noshutdown 第一步 R1的路由配置 R1 config routerripR1 config router version2R1 config router network192 168 12 0R1 config router noauto summaryR1 config router exitR1 config iproute0 0 0 00 0 0 0loopback1 R1上使用loopback1模拟Internet 注意 使用loopback1接口模拟Internet 第二步 R2的接口配置 Router enRouter conftRouter config hostnameR2R2 config intloopback0R2 config if ipadd2 2 2 2255 255 255 0R2 config if ints0 0R2 config if ipadd192 168 12 2255 255 255 0R2 config if noshutR2 config if ints0 1R2 config if ipadd192 168 23 2255 255 255 0R2 config if clockrate64000R2 config if noshut 第二步 R2的路由配置 R2 config routereigrp1R2 config router network192 168 23 0R2 config router noauto summaryR2 config routerripR2 config router version2R2 config router network192 168 12 0R2 config router noauto summary 第三步 R3的接口配置 Router enRouter conftRouter config hostnameR3R3 config intloopback0R3 config if ipadd3 3 3 3255 255 255 0R3 config if ints0 1R3 config if ipadd192 168 23 3255 255 255 0R3 config if noshutR3 config if ints0 0R3 config if ipadd192 168 34 3255 255 255 0R3 config if clockrate64000R3 config if noshut 第三步 R3的路由配置 R3 config routereigrp1R3 config router network3 3 3 0R3 config router network192 168 23 0R3 config router noauto summaryR3 config routerospf1R3 config router router id3 3 3 3R3 config router network192 168 34 00 0 0 255area0 第四步 R4的配置 Router enRouter conftRouter config hostnameR4R4 config intloopback0R4 config if ipadd4 4 4 4255 255 255 0R4 config if ints0 0R4 config if ipadd192 168 34 4255 255 255 0R4 config if noshutR4 config routerospf1R4 config router router id4 4 4 4R4 config router network4 4 4 00 0 0 255area0R4 config router network192 168 34 00 0 0 255area0 第五步 基本配置检测结果及说明 1 测试局部连通性 R1与R2互通 R2与R3互通 R3与R4互通 R1与R3 R4之间不通 2 显示各路由器的路由表如下 R1 showiproute 重分布前R1路由表 1 0 0 0 24issubnetted 1subnetsC1 1 1 0isdirectlyconnected Loopback0C192 168 12 0 24isdirectlyconnected Serial0 0C202 121 241 0 24isdirectlyconnected Loopback1S 0 0 0 0 0isdirectlyconnected Loopback1 R2 showiproute 重分布前R2路由表 C2 2 2 0isdirectlyconnected Loopback0D3 3 3 0 90 2297856 via192 168 23 3 00 15 18 S0 1C192 168 12 0 24isdirectlyconnected Serial0 0C192 168 23 0 24isdirectlyconnected Serial0 1 重分布前R3路由表 R3 showiproute C3 3 3 0isdirectlyconnected Loopback0O4 4 4 4 110 65 via192 168 34 4 00 13 19 S0 0C192 168 23 0 24isdirectlyconnected S0 1C192 168 34 0 24isdirectlyconnected S0 0 R4 showiproute 重分布前R4路由表 思考 为什么R4路由表中没有到3 3 3 0的路由 R3 config routereigrp1R3 config router network3 3 3 0 C4 4 4 0isdirectlyconnected Loopback0C192 168 34 0 24isdirectlyconnected Serial0 0 第六步 开始路由重分布配置 在R1上进行静态重分配 将静态路由的默认度量值为3 R1 config routerripR1 config router redistributestaticmetric3 R2的路由重分布配置 在R2上将RIP重分配到EIGRP中 在R2上将EIGRP重分配到RIP中 R2 config routereigrp1R2 config router redistributeripmetric100010025511500 R2 config routerripR2 config router redistributeeigrp1metric4 默认度量值 带宽 延迟 可靠性 负载 MTU值 R3上路由重分布配置 在R3上将OSPF重分配到EIGRP中 R3 config routereigrp1R3 config router redistributeospf1metric100010025511500R3 config router distanceeigrp90150 将R3接收的eigrp路由更新报文的管理距离设为90和150 R3上路由重分布配置 在R3上将EIGRP 默认路由重分配到OSPF中 R3 config routerospf1R3 config router redistributeeigrp1metric30metric type1subnetsR3 config router default informationoriginate 将默认路由 iproute0 0 0 00 0 0 0loopback1 重分布到OSPF中 Eigrp路由分配到OSPF中后获得的代价值为30 被重分布的EIGRP路由作为OSPF的外部路由E1类型 第七步 重分布检测结果 R1路由表 R1 showiproute C1 1 1 0isdirectlyconnected Loopback0R3 3 3 0 120 4 via192 168 12 2 00 00 23 S0 0R4 4 4 4 120 4 via192 168 12 2 00 00 23 S0 0C192 168 12 0 24isdirectlyconnected Serial0 0R192 168 23 0 24 120 4 via192 168 12 2 00 00 23 S0 0R192 168 34 0 24 120 4 via192 168 12 2 00 00 23 S0 0C202 121 241 0 24isdirectlyconnected Loopback1S 0 0 0 0 0isdirectlyconnected Loopback1 C2 2 2 0isdirectlyconnected Loopback0D3 3 3 0 90 2297856 via192 168 23 3 00 25 14 S0 1DEX4 4 4 4 170 3097600 via192 168 23 3 00 25 14 S0 1C192 168 12 0 24isdirectlyconnected Serial0 0C192 168 23 0 24isdirectlyconnected Serial0 1DEX192 168 34 0 24 170 3097600 via192 168 23 3 00 25 14 S0 1R 0 0 0 0 0 120 3 via192 168 12 1 00 00 21 S0 0 R2 showiproute R3发送的EIGRP路由 从R3重分布来的EIGRP外部路由 从R2重分布进来的默认静态路由 重分布后R2路由表 R3 showiproute 第七步 重分布检测结果 R3路由表 C3 3 3 0isdirectlyconnected Loopback0O4 4 4 4 110 65 via192 168 34 4 00 46 02 S0 0DEX192 168 12 0 24 150 3097600 via192 168 23 2 00 32 52 Serial0 1C192 168 23 0 24isdirectlyconnected Serial0 1C192 168 34 0 24isdirectlyconnected Serial0 0D EX0 0 0 0 0 150 3097600 via192 168 23 2 00 32 52 Serial0 1 R4发布的OSPF路由 从R2重分布进来的EIGRP外部路由 R4 showiproute 第七步 重分布后R4路由表 OE13 3 3 0 110 94 via192 168 34 3 00 39 35 Serial0 0C4 4 4 0isdirectlyconnected Loopback0OE1192 168 12 0 24 110 94 via192 168 34 3 00 39 35 S0 0OE1192 168 23 0 24 110 94 via192 168 34 3 00 39 35 S0 0C192 168 34 0 24isdirectlyconnected Serial0 0O E20 0 0 0 0 110 1 via192 168 34 3 01 18 27 Serial0 0 从R3的OSPF协议重分布进来的路由 为什么重分布进来的都是ospf路由 R4 ping202 121 241 8能通吗 能通 原因 R4上有重分布的到达202 121 241 0的默认路由 第八步 检测网络连通性 R3 showipprotocols 查看R3的路由协议信息RoutingProtocolis eigrp1 OutgoingupdatefilterlistforallinterfacesisnotsetIncomingupdatefilterlistforallinterfacesisnotsetDefaultnetworksflaggedinoutgoingupdatesDefaultnetworksacceptedfromincomingupdatesEIGRPmetricweightK1 1 K2 0 K3 1 K4 0 K5 0EIGRPmaximumhopcount100EIGRPmaximummetricvariance1Redistributing eigrp1 ospf1AutomaticnetworksummarizationisnotineffectMaximumpath 4 第九步 查看协议参数 R3 showipprotocols 查看R3上的路由协议信息 续 RoutingforNetworks 192 168 23 03 3 3 0 24RoutingInformationSources GatewayDistanceLastUpdate192 168 23 29015842756Distance internal90exte

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论