实验5 动态路由协议RIP与OSPF的配置(3)

1970-01-01 08:00

Ping statistics for 12.0.0.1:

Packets: Sent = 2, Received = 1, Lost = 1 (50% loss), Approximate round trip times in milli-seconds: Minimum = 47ms, Maximum = 47ms, Average = 47ms

Control-C ^C

C:\\>ping 10.0.0.1

Pinging 10.0.0.1 with 32 bytes of data:

Reply from 10.0.0.1: bytes=32 time=31ms TTL=254

Ping statistics for 10.0.0.1:

Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 31ms, Maximum = 31ms, Average = 31ms

Control-C ^C

C:\\>ping 10.0.0.2

Pinging 10.0.0.2 with 32 bytes of data:

Reply from 10.0.0.2: bytes=32 time<1ms TTL=255 Reply from 10.0.0.2: bytes=32 time<1ms TTL=255

Ping statistics for 10.0.0.2:

Packets: Sent = 2, Received = 2, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

Control-C ^C

C:\\>ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time<1ms TTL=255

Ping statistics for 192.168.1.1:

Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

Control-C ^C

C:\\>

(3)实验小结

RIP是一个距离矢量路由协议,非常简单,仅通过源节点与目的节点之间的路由器或路程段的数目(跳数)来决定发送数据包的最佳途径。由于RIP自身的一些限制,其允许的最大跳数为15,只适用于小型的网络。RIP有两种版本:RIPv1和RIPv2。前者不支持VLSM,而后者支持。

2、路由器的OSPF协议配置 (1)实验准备工作

运用Cisco Packet Tracer软件设计如下网络拓扑图。不同型号的交换机配置命令不同,这里选择2600系列路由器的2621型号,交换机选择2900系列。IP地址、掩码和连接路由器的端口号如图所示。将网络拓扑图保存,并在Cisco Packet Tracer模拟器中打开该图(参考实验4的方法)。

IP: 12.0.0.2/24

IP: 11.0.0.2/24

f0/0

IP: 11.0.0.1/24 f0/0

IP: 12.0.0.1/24

f0/1

f0/0

IP: 10.0.0.1/24 se0/0 f0/1

se0/0

IP: 10.0.0.2/24

f0/0

IP: 192.168.1.1/24

IP: 192.168.1.2/24

f0/2

f0/3

IP: 192.168.1.3/24

(2)实验过程

1)使用上述的网络拓扑图作为本实验所需的网络,配置PC的IP地址和子网掩码。 2)连接到路由器Router3,配置路由器的OSPF,命令如下: Router>enable

Router#conf terminal

Router(config)#hostname R3

R3(config)#interface FastEthernet 0/0

R3(config-if)#ip address 11.0.0.1 255.255.255.0 R3(config-if)#no shutdown

R3(config-if)#interface FastEthernet 0/1

R3(config-if)#ip address 12.0.0.1 255.255.255.0 R3(config-if)#no shutdown

R3(config-if)#interface serial 0

R3(config-if)#ip address 10.0.0.1 255.255.255.0

R3(config-if)#bandwidth 128 //设置链路带宽为128kbit/s R3(config-if)#clock rate 64000 //设置DCE设备的时钟速率 R3(config-if)#no shutdown R3(config-if)#exit

//启动进程号为10的单区域OSPF路由选择进程 R3(config)#router ospf 10

//在接口S0启动OSPF,加入区域0

R3(config-router)#network 10.0.0.0 0.0.0.255 area 0 //通告直连网络 //在接口F0/0启动OSPF,加入区域0

R3(config-router)#network 11.0.0.0 0.0.0.255 area 0 //通告直连网络 //在接口F0/1启动OSPF,加入区域0

R3(config-router)#network 12.0.0.0 0.0.0.255 area 0 //通告直连网络 R3(config-router)#exit

4)按照步骤(3)分别完成路由器R1、R2、R4的接口和OSPF配置。 //在R1上启动进程号为10的单区域 //OSPF路由选择进程

R1(config)#router ospf 10

R1(config-router)#network 11.0.0.0 0.0.0.255 area 0

//在R2上启动进程号为10的单区域OSPF路由选择进程 R2(config)#router ospf 10

R2(config-router)#network 12.0.0.0 0.0.0.255 area 0

//在R4上启动进程号为10的单区域OSPF路由选择进程 R4(config)#router ospf 10

R4(config-router)#network 10.0.0.0 0.0.0.255 area 0 R4(config-router)#network 192.168.1.0 0.0.0.255 area 0

5)连接到路由器R1中,通过命令“show ip route”显示R1的动态路由表,观察路由表项,当目标网络是192.168.1.0/24时,度量值为多少?

度量值为:110

Router#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 - OSPF 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 not set

10.0.0.0/24 is subnetted, 1 subnets

O 10.0.0.0 [110/65] via 11.0.0.1, 00:01:55, FastEthernet0/0 11.0.0.0/24 is subnetted, 1 subnets

C 11.0.0.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnets

O 12.0.0.0 [110/2] via 11.0.0.1, 00:01:55, FastEthernet0/0

O 192.168.1.0/24 [110/66] via 11.0.0.1, 00:00:23, FastEthernet0/0

6)连接到R2、R3和R4,查看每台路由器的路由表。 R2路由表:

Router#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 - OSPF 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 not set

10.0.0.0/24 is subnetted, 1 subnets

O 10.0.0.0 [110/65] via 12.0.0.1, 00:03:20, FastEthernet0/0 11.0.0.0/24 is subnetted, 1 subnets

O 11.0.0.0 [110/2] via 12.0.0.1, 00:03:20, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnets

C 12.0.0.0 is directly connected, FastEthernet0/0

O 192.168.1.0/24 [110/66] via 12.0.0.1, 00:02:23, FastEthernet0/0 R3路由表:

R3#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 - OSPF 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 not set

10.0.0.0/24 is subnetted, 1 subnets

C 10.0.0.0 is directly connected, Serial0/0 11.0.0.0/24 is subnetted, 1 subnets

C 11.0.0.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnets

C 12.0.0.0 is directly connected, FastEthernet0/1

O 192.168.1.0/24 [110/65] via 10.0.0.2, 00:02:58, Serial0/0


实验5 动态路由协议RIP与OSPF的配置(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:全程训练2019年高考语文一轮复习天天练含答案3成语模拟

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: