使用路由分布列表发布RIP和OSPF路由

上传人:桔**** 文档编号:562460257 上传时间:2023-09-11 格式:DOCX 页数:6 大小:68.46KB
返回 下载 相关 举报
使用路由分布列表发布RIP和OSPF路由_第1页
第1页 / 共6页
使用路由分布列表发布RIP和OSPF路由_第2页
第2页 / 共6页
使用路由分布列表发布RIP和OSPF路由_第3页
第3页 / 共6页
使用路由分布列表发布RIP和OSPF路由_第4页
第4页 / 共6页
使用路由分布列表发布RIP和OSPF路由_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《使用路由分布列表发布RIP和OSPF路由》由会员分享,可在线阅读,更多相关《使用路由分布列表发布RIP和OSPF路由(6页珍藏版)》请在金锄头文库上搜索。

1、使用路由分布列表发布 RIP 和 OSPF 路由一:实验目标:在本次实验中,在下图所示的拓扑中配置Rip v1和ospf之间的双 向重发布.二: 场景:国际旅行社(ITA)增加了两个连接到Sanjosel园区网的新场点.在硬件升级之前 BayPointe采用OSPF,而Vista只支持Ripvl.要求在ASBR,也就是Sanjosel上 配置两个协议之间的双向重发布在Ripvl中的路由器应该能学到OSPF网络中 的路由信息,OSPF中的路由器也应该可以学到RIPvl网络中的路由信息在OSPF 域里面通告BayPointe相连的172.16.4. 0/24,但不向RIP域发布类似的,向 OSPF

2、域重发布RIP的每个子网,但不发送与Vista相连的网络172.16.12.0/24.SitnJose IBayPointr0/0 172.16.9.1/24OSPF区域0RIPvlLuOLu 1Lo 2/I72JOJ/24F0/0 172.16. k 1/24172.16.52/30 S2/I621/242.163.1/24S2/2I72.I6.8J/24S2/1172.16.S.2/24172.165 J/30S2/1F0/0 1926/1.1/24LoQ 172.1,10.1/24Lo 1 172.16V11.1/24Lo 2 172,1612,1/24实齡&5.3使用路.分布控制列农叽

3、发布RIP和OSPF路:IJ8y:Robot200S年5JI17II三:配置步骤:步骤 1:根据图构建和配置网络.首先,根据图标识的IP配置环回接口,用环回接口来模 拟每一个路由域中的网络.在路由器BayPinte上为所有相连的网络配置OSPF, 在路由器Vista上为所有相连的网络配置RIPvI.现在还不要对Sanjosel的路由 选择进行配置.BayPointe#interface Loopback0ip address 172.16.2.1 255.255.255.0interface Loopback1ip address 172.16.3.1 255.255.255.0interfa

4、ce Loopback2ip address 172.16.4.1 255.255.255.0interface FastEthernet0/0ip address 172.16.1.1 255.255.255.0interface Serial2/1ip address 172.16.5.2 255.255.255.252Sanjose1#interface FastEthernet0/0ip address 192.168.1.1 255.255.255.0interface Serial2/1ip address 172.16.5.1 255.255.255.252interface S

5、erial2/2ip address 172.16.8.1 255.255.255.0Vista#interface Loopback0ip address 172.16.10.1 255.255.255.0interface Loopback1ip address 172.16.11.1 255.255.255.0interface Loopback2ip address 172.16.12.1 255.255.255.0interface FastEthernet0/0ip address 172.16.9.1 255.255.255.0interface Serial2/1ip addr

6、ess 172.168.8.2 255.255.255.0BayPointe(config)#router os 1BayPointe(config-router)#net 172.16.0.0 0.0.255.255 a 0Vista(config)#router ripVista(config-router)#net 172.16.0.0 步骤 2:在 SanJose1 的串口上配置路由选择 .使用下列命令设置 SanJose1 的路由选择进 程.SanJose1(config)#router ripSanJose1(config-router)#net 172.16.0.0 SanJos

7、e1(config-router)#network 192.168.1.0SanJose1(config-router)#passive-interface s2/1 SanJose1(config-router)#passive-interface f0/0 /思考,为什么在 RIP 配置中,对 s2/1 和 f0/0 接口应用 passive interface 语 句,在 OSPF 中没有配置呢?因为在这些网络中并没有其它RIP主机,在已配置RIP的接口中,对那些不要求 RIP更新的接口应当禁止RIP更新.SanJose1(config-router)#router os 1 SanJo

8、se1(config-router)#net 172.16.5.0 0.0.0.3 a 0/OSPF邻居间发送并确认更新信息如果接口的OSPF配置中没有加入包括部分 重叠该接口 IP地址的network语句,OSPF并不会往这个接口发送组播的Hello 分组.配置路由选择后, 查看 SanJose1 的路由表SanJose1#show ip route172.16.0.0/16 is variably subnetted, 10 subnets, 3 masksR 172.16.12.0/24 120/1 via 172.16.8.2, 00:00:11, Serial2/2C172.16.8

9、.0/24 is directly connected, Serial2/2R172.16.9.0/24 120/1 via 172.16.8.2, 00:00:11, Serial2/2R172.16.10.0/24 120/1via172.16.8.2,00:00:11,Serial2/2R172.16.11.0/24 120/1via172.16.8.2,00:00:11,Serial2/2C 172.16.5.0/30 is directly connected, Serial2/1O172.16.4.1/32 110/65via172.16.5.2,00:17:36,Serial2/

10、1O172.16.1.0/24 110/65via172.16.5.2,00:17:36,Serial2/1O172.16.3.1/32 110/65via172.16.5.2,00:17:36,Serial2/1O172.16.2.1/32 110/65via172.16.5.2,00:17:36,Serial2/1C 192.168.1.0/24 is directly connected, FastEthernet0/0步骤 3:在SanJosel上配置重分布,这样除了 172.1640/24以外的路由都被注入到RIP 进程中,在SanJosel中用以下命令配置重分布:SanJose1(

11、config)#router rip SanJose1(config-router)#redistribute os 1 SanJose1(config-router)#default-metric 2/default-metric 的功能:设定引入路由的缺省路由权值. Vista#show ip route172.16.0.0/16 is variably subnetted, 9 subnets, 2 masksC 172.16.12.0/24 is directly connected, Loopback2C172.16.8.0/24 is directly connected, Ser

12、ial2/1C172.16.9.0/24 is directly connected, FastEthernet0/0C172.16.10.0/24 is directly connected, Loopback0C172.16.11.0/24 is directly connected, Loopback1R172.16.4.1/32120/2via172.16.8.1, 00:00:08,Serial2/1R172.16.1.0/24120/2via172.16.8.1, 00:00:08,Serial2/1R172.16.3.1/32120/2via172.16.8.1, 00:00:0

13、8,Serial2/1R172.16.2.1/32120/2via172.16.8.1, 00:00:08,Serial2/1/RIPvl上学到OSPF上的路由了,并且发现度量值都是2.有路由但是现在不通, 因为现在是单向的.使用路由过滤器,过滤172.16.4.0的路由,命令如下: SanJose1(config)#access-list 10 deny 172.16.4.0 0.0.0.255 SanJose1(config)#access-list 10 permit anySanJose1(config)#router rip SanJose1(config-router)#distr

14、ibute-list 10 out s2/2Vista#clear ip route *Vista#show ip route172.16.0.0/16 is variably subnetted, 8 subnets, 2 masksC 172.16.12.0/24 is directly connected, Loopback2C172.16.8.0/24 is directly connected, Serial2/1C172.16.9.0/24 is directly connected, FastEthernet0/0C172.16.10.0/24 is directly conne

15、cted,Loopback0C172.16.11.0/24 is directly connected,Loopback1R172.16.1.0/24 120/2 via 172.16.8.1,00:00:00,Serial2/1R172.16.3.1/32 120/2 via 172.16.8.1,00:00:00,Serial2/1R172.16.2.1/32 120/2 via 172.16.8.1,00:00:00,Serial2/1/路由过滤已经完成./生成原始度量值可以使得网络中路由选择环路或者黑洞的可能性减少.RIP不能区分内部和外部重分布路由.当到某一个网络的路由进行了重分布时没有采 用默认度量值,这个网络就会被认为与自制域相连的.提高外部路由的默认度量 值,使之大于内部路由,这种方法虽然简单,却是区分内部路由与高级路由的有 效方法.总的来说,应该保证在重发布命令末尾加上度量值或者设置默认度量值.否则, 可能会发布一条有不可达度量值的路由.步骤 4:在Sonj

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号