实验五 ospf路由设置
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验五动态路由协议ospf设置
一、实验目的
1.理解动态路由协议OSPF 的原理。
2.掌握动态协议路由协议OSPF的配置方式。
3.理解OSPF区域的意义。
二、实验环境
实验拓扑图如下所示:
三、实验步骤
(1)如图所示完成拓扑图的建立,如图1-1所示。
图1-1 拓扑图
(2)如图所示配置路由器各接口及主机的IP地址。
(按照图中所标识的网络号,自行分配地址)
PCO:如图1-2所示。
图1-2 PC0IP地址配置
ROUTER3:
Router(config)#interface Serial0/0/0
Router(config-if)#ip addre 192.168.0.6 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#interf s0/0/1
Router(config-if)#ip addre 192.168.0.9 255.255.255.252
Router(config-if)#no shutdow
(3)如图所示区域划分,在路由器上配置ospf协议。
ROUTER1:
Router(config)#router ospf 1
Router(config-router)#netw 172.16.1.0 0.0.0.255 area 2
Router(config-router)#netw 192.168.0.4 0.0.0.3 area 0
Router(config-router)#netw 192.168.0.0 0.0.0.3 area 0
(4)运行show ip route命令,查看各个路由器的路由表
ROUTER0:
172.16.0.0/24 is subnetted, 4 subnets
第2章局域网硬件·5·
C 172.16.1.0 is directly connected, FastEthernet0/1
C 172.16.2.0 is directly connected, FastEthernet0/0
O IA 172.16.3.0 [110/66] via 172.16.1.2, 00:00:42, FastEthernet0/1
O IA 172.16.4.0 [110/67] via 172.16.1.2, 00:00:42, FastEthernet0/1
192.168.0.0/30 is subnetted, 3 subnets
O IA 192.168.0.0 [110/65] via 172.16.1.2, 00:00:52, FastEthernet0/1
O IA 192.168.0.4 [110/65] via 172.16.1.2, 00:00:52, FastEthernet0/1
O IA 192.168.0.8 [110/129] via 172.16.1.2, 00:00:52, FastEthernet0/1
ROUTER1
172.16.0.0/24 is subnetted, 4 subnets
C 172.16.1.0 is directly connected, FastEthernet0/0
O 172.16.2.0 [110/2] via 172.16.1.1, 00:01:24, FastEthernet0/0
O IA 172.16.3.0 [110/65] via 192.168.0.2, 00:01:19, Serial0/0/0
O IA 172.16.4.0 [110/66] via 192.168.0.2, 00:01:19, Serial0/0/0
192.168.0.0/30 is subnetted, 3 subnets
C 192.168.0.0 is directly connected, Serial0/0/0
C 192.168.0.4 is directly connected, Serial0/0/1
O 192.168.0.8 [110/128] via 192.168.0.6, 00:01:54, Serial0/0/1
ROUTER2:
172.16.0.0/24 is subnetted, 4 subnets
O IA 172.16.1.0 [110/65] via 192.168.0.1, 00:02:31, Serial0/0/0
O IA 172.16.2.0 [110/66] via 192.168.0.1, 00:02:31, Serial0/0/0
C 172.16.3.0 is directly connected, FastEthernet0/0
O 172.16.4.0 [110/2] via 172.16.3.1, 00:02:36, FastEthernet0/0
190.168.0.0/30 is subnetted, 1 subnets
C 190.168.0.8 is directly connected, Serial0/0/1
192.168.0.0/30 is subnetted, 3 subnets
C 192.168.0.0 is directly connected, Serial0/0/0
O 192.168.0.4 [110/128] via 192.168.0.1, 00:03:06, Serial0/0/0
O 192.168.0.8 [110/192] via 192.168.0.1, 00:03:06, Serial0/0/0
ROUTER3:
172.16.0.0/24 is subnetted, 4 subnets
O IA 172.16.1.0 [110/65] via 192.168.0.5, 00:01:53, Serial0/0/0
O IA 172.16.2.0 [110/66] via 192.168.0.5, 00:01:53, Serial0/0/0
O IA 172.16.3.0 [110/129] via 192.168.0.5, 00:01:53, Serial0/0/0
O IA 172.16.4.0 [110/130] via 192.168.0.5, 00:01:53, Serial0/0/0
192.168.0.0/30 is subnetted, 3 subnets
O 192.168.0.0 [110/128] via 192.168.0.5, 00:02:28, Serial0/0/0
C 192.168.0.4 is directly connected, Serial0/0/0
C 192.168.0.8 is directly connected, Serial0/0/1
ROUTER4:
172.16.0.0/24 is subnetted, 4 subnets
O IA 172.16.1.0 [110/66] via 172.16.3.2, 00:09:41, FastEthernet0/1 O IA 172.16.2.0 [110/67] via 172.16.3.2, 00:09:41, FastEthernet0/1 C 172.16.3.0 is directly connected, FastEthernet0/1
C 172.16.4.0 is directly connected, FastEthernet0/0
192.168.0.0/30 is subnetted, 3 subnets
O IA 192.168.0.0 [110/65] via 172.16.3.2, 00:09:41, FastEthernet0/1 O IA 192.168.0.4 [110/129] via 172.16.3.2, 00:09:41, FastEthernet0/1 O IA 192.168.0.8 [110/193] via 172.16.3.2, 00:09:41, FastEthernet0/1 (5)测试整个网络的连通性,如图1-3所示。
图1-3 连通性测试
四、实验报告要求
1.实验目的、环境
2.实验步骤及结果
3.写出实验的心得体会。