在RIP中传播默认路由练习试验

上传人:ji****72 文档编号:45923607 上传时间:2018-06-20 格式:PDF 页数:8 大小:303.83KB
返回 下载 相关 举报
在RIP中传播默认路由练习试验_第1页
第1页 / 共8页
在RIP中传播默认路由练习试验_第2页
第2页 / 共8页
在RIP中传播默认路由练习试验_第3页
第3页 / 共8页
在RIP中传播默认路由练习试验_第4页
第4页 / 共8页
在RIP中传播默认路由练习试验_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《在RIP中传播默认路由练习试验》由会员分享,可在线阅读,更多相关《在RIP中传播默认路由练习试验(8页珍藏版)》请在金锄头文库上搜索。

1、5.5.2:在:在 RIP 中传播默认路由中传播默认路由 设备设备 接口接口 IP IP 地址地址 子网掩码子网掩码 默认网关默认网关 R1R1 Fa0/0Fa0/0 172.30.1.1 255.255.255.0 N/A S0/0/0S0/0/0 172.30.2.1 255.255.255.0 N/A R2R2 Fa0/0Fa0/0 172.30.3.1 255.255.255.0 N/A S0/0/0S0/0/0 172.30.2.2 255.255.255.0 N/A S0/0/1S0/0/1 192.168.4.9 255.255.255.252 N/A R3R3 Fa0/0Fa0

2、/0 192.168.5.1 255.255.255.0 N/A S0/0/1S0/0/1 192.168.4.10 255.255.255.252 N/A PC1PC1 网卡网卡 172.30.1.10 255.255.255.0 172.30.1.1 PC2PC2 网卡网卡 172.30.3.10 255.255.255.0 172.30.3.1 PC3PC3 网卡网卡 192.168.5.10 255.255.255.0 192.168.5.1 简介:简介: 在本练习中,R3 代表代表 ISP 路由器,路由器, R2 代表连接到代表连接到 ISP 的边界路的边界路由器,而由器,而 R1

3、代表组织里的代表组织里的内部路由器内部路由器。 学习目标:学习目标: 重新配置 R2 和 R3 的默认路由及静态路由。 在 R2 上,删除通过 RIP 获知的通往 R3 的网络并配置默认路由。 在 R3 上,删除 RIP 并配置静态路由。 复位网络并查看结果。 在 RIP 中传播默认路由。 配置 R2 在 RIP 中传播默认路由。 检查 RIP 更新。 检查 R1 上的 IP 路由表。 检查连通性。 任务任务 1:重新配置路由器:重新配置路由器 R2 和和 R3 的默认路由及静态路由。的默认路由及静态路由。 步骤步骤 1 在在 R2 上,删除通过上,删除通过 RIP 获知的通往获知的通往 R3

4、 的网络并配置默认路由。的网络并配置默认路由。 访问路由器 R2 并进入特权执行模式。 进入全局配置模式。 发出命令 router rip 进入路 由器配置模式。 发出命令 no network 192.168.4.0。发出命令 exit 返回全局配置模式。 发出命令 ip route 0.0.0.0 0.0.0.0 s0/0/1。 按 Ctrl+z 退出配置模式。使用命令 copy run start 保存配置。 R2(config)#router rip R2(config-router)#no network 192.168.4.0 R2(config-router)#exit R2(c

5、onfig)#ip route 0.0.0.0 0.0.0.0 serial 0/0/1 R2#copy running-config startup-config 步骤步骤 2 在在 R3 上,删除上,删除 RIP 并配置静态路由。并配置静态路由。 访问路由器 R3 并进入特权执行模式。进入全局配置模式。 发出命令 no router rip。 发出命令 ip route 172.30.0.0 255.255.252.0 s0/0/1。 按 Ctrl+z 退出配置模式。使用命令 copy run start 保存配置。 R3(config)#no router rip R3(config)#

6、ip route 172.30.0.0 255.255.252.0 serial 0/0/1 R3#copy running-config startup-config 步骤步骤 3 - 复位网络并查看结果。复位网络并查看结果。 单击 Logical(逻辑)工作区左下角下方的 Power Cycle Devices(设备重新通电)(设备重新通电) 链接以复位网络并更新路由表。 分别在三台路由器三台路由器上, 使用命令 show ip route 检查 IP 路由表。 在路由器 R1 上, 没有能够到达 172.30.0.0/16 网络外部的路由。 R3#show ip route 172.30

7、.0.0/22 is subnetted, 1 subnets S 172.30.0.0 is directly connected, Serial0/0/1 192.168.4.0/30 is subnetted, 1 subnets C 192.168.4.8 is directly connected, Serial0/0/1 C 192.168.5.0/24 is directly connected, FastEthernet0/0 R2#show ip route 172.30.0.0/24 is subnetted, 3 subnets R 172.30.1.0 120/1 vi

8、a 172.30.2.1, 00:00:23, Serial0/0/0 C 172.30.2.0 is directly connected, Serial0/0/0 C 172.30.3.0 is directly connected, FastEthernet0/0 192.168.4.0/30 is subnetted, 1 subnets C 192.168.4.8 is directly connected, Serial0/0/1 S* 0.0.0.0/0 is directly connected, Serial0/0/1 R2# R1#show ip route 172.30.

9、0.0/24 is subnetted, 3 subnets C 172.30.1.0 is directly connected, FastEthernet0/0 C 172.30.2.0 is directly connected, Serial0/0/0 R 172.30.3.0 120/1 via 172.30.2.2, 00:00:16, Serial0/0/0 R1# 任务任务 2:在:在 RIP 中传播默认路由。中传播默认路由。 步骤步骤 1 配置配置 R2 在在 RIP 中传播默认路由。中传播默认路由。 访问路由器 R2 并进入特权执行模式。 进入全局配置模式。 发出命令 ro

10、uter rip 进入路 由器配置模式。 发出命令 default-information originate。 按 Ctrl+z 退出配置模式。使用命令 copy run start 保存配置。 R2(config)#router rip R2(config-router)#default-information originate 步骤步骤 2 - 检查检查 RIP 更新。更新。 在路由器 R2 上,发出命令 debug ip rip 检查 RIP 更新。让该命令运行几分钟,观察发 送和接收的更新。发出命令 undebug all。 R2#debug ip rip RIP protocol

11、 debugging is on R2#RIP: received v1 update from 172.30.2.1 on Serial0/0/0 172.30.1.0 in 1 hops RIP: sending v1 update to 255.255.255.255 via Serial0/0/0 (172.30.2.2) RIP: build update entries network 0.0.0.0 metric 1 network 172.30.3.0 metric 1 R2#undebug all All possible debugging has been turned

12、off 步骤步骤 3 - 检查检查 R1 上的上的 IP 路由表。路由表。 在路由器 R1 上,使用命令 show ip route 检查 IP 路由表。路由器 R1 已经从 RIP 更 新中获知了一条默认路由。 R1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSP

13、F NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, 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 route Gateway of last resort is 172.30.2.2 to network

14、 0.0.0.0 172.30.0.0/24 is subnetted, 3 subnets C 172.30.1.0 is directly connected, FastEthernet0/0 C 172.30.2.0 is directly connected, Serial0/0/0 R 172.30.3.0 120/1 via 172.30.2.2, 00:00:03, Serial0/0/0 R* 0.0.0.0/0 120/1 via 172.30.2.2, 00:00:03, Serial0/0/0 R1# 步骤步骤 4 检查连通性。检查连通性。 从每台 PC ping 其它两

15、台 PC 以检验网络是否完全通畅。所有 ping 都应该成功。 在 pc1 上 ping pc3 pc2 PCping 192.168.5.10 Pinging 192.168.5.10 with 32 bytes of data: Request timed out. Reply from 192.168.5.10: bytes=32 time=52ms TTL=125 Reply from 192.168.5.10: bytes=32 time=55ms TTL=125 Reply from 192.168.5.10: bytes=32 time=60ms TTL=125 Ping sta

16、tistics for 192.168.5.10: Packets: Sent = 4, Received = 3, Lost = 1 (25% loss), Approximate round trip times in milli-seconds: Minimum = 52ms, Maximum = 60ms, Average = 55ms PCping 172.30.3.10 Pinging 172.30.3.10 with 32 bytes of data: Request timed out. Reply from 172.30.3.10: bytes=32 time=50ms TTL=126 Reply from 172.30.3.10: bytes

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

当前位置:首页 > 行业资料 > 其它行业文档

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