实验二多区域OSPF网络互联.doc





《实验二多区域OSPF网络互联.doc》由会员分享,可在线阅读,更多相关《实验二多区域OSPF网络互联.doc(10页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、【精品文档】如有侵权,请联系网站删除,仅供学习与交流实验二多区域OSPF网络互联.精品文档.实验二 多区域OSPF网络互联实验学时:2实验类型:验证一、实验目的 掌握多区域OSPF的基本配置; 掌握OSPF路由汇总的配置,包括域间路由、外部自治系统路由、默认路由。二、实验条件 Cisco360 Router、GNS3仿真软件、具备Windows操作系统的PC机三、实验原理及相关知识OSPF协议配置方法四、实验步骤多区域OSPF基本的配置(1)配置路由器R1:R1#conf tR1(conft)#int s1/0R1(conft-if)#ip add 12.1.1.1 255.255.255.2
2、52R1(conft-if)#no shutR1(conft)#int lo0R1(conft-if)#ip add 10.1.1.1 255.255.255.0R1(conft)#int lo1R1(conft-if)# ip add 10.1.2.1 255.255.255.0R1(conft)#int lo2R1(conft-if)# ip add 10.1.3.1 255.255.255.0R1(conft-if)#exitR1(conft)#router ospf 1R1(conft-router)#router-id 1.1.1.1R1(conft-router)# network
3、 12.1.1.1 0.0.0.0 area 0/利用在路由器R1 上将环回接口0以重分布的方式注入OSPF 区域,用来构造5 类的LSAR1(conft)#router ripR1(conft-router)#version 2R1(conft-router)#no auto-summaryR1(conft-router)#network 10.1.0.0R1(conft)#router ospf 1R1(conft-router)# redstribution rip subnets将10.1.0.0/16网络重发布到ospf中(2)配置路由器R2R2#conf tR2(conft)#in
4、t s1/0R2(conft-if)#ip add 12.1.1.2 255.255.255.252R2(conft-if)#no shutR2(conft)#int s1/1R2(conft-if)#ip add 23.1.1.1 255.255.255.252R2(conft-if)#no shutR2(conft-if)#exitR2(conft)#router ospf 1R2(conft-router)#router-id 2.2.2.2R2(conft-router)# network 12.1.1.2 0.0.0.0 area 0R2(conft-router)# network
5、 23.1.1.1 0.0.0.0 area 1(3)配置路由器R3R3#conf tR3(conft)#int s1/0R3(conft-if)#ip add 23.1.1.1 255.255.255.252R3(conft-if)#no shutR3(conft)#int lo0R3(conft-if)#ip add 172.16.1.1 255.255.255.0R3(conft)#int lo1R3(conft-if)# ip add 172.16.2.1 255.255.255.0R3(conft)#int lo2R3(conft-if)# ip add 172.16.3.1 255
6、.255.255.0R3(conft-if)#exitR3(conft)#router ospf 1R3(conft-router)#router-id 3.3.3.3R3(conft-router)# network 23.1.1.2 0.0.0.0 area 1R3(conft-router)#network 172.16.0.0 0.0.255.255 area 1(4)实验调试R1#show ip route 23.0.0.0/24 is subnetted, 1 subnetsO IA 23.1.1.0 110/128 via 12.1.1.2, 00:00:10, Serial1/
7、0 172.16.0.0/24 is subnetted, 3 subnetsO IA 172.16.1.0 110/129 via 12.1.1.2, 00:00:01, Serial1/0O IA 172.16.2.0 110/129 via 12.1.1.2, 00:00:01, Serial1/0O IA 172.16.3.0 110/129 via 12.1.1.2, 00:00:01, Serial1/0 10.0.0.0/24 is subnetted, 3 subnetsC 10.1.3.0 is directly connected, Loopback2C 10.1.2.0
8、is directly connected, Loopback1C 10.1.1.0 is directly connected, Loopback0 12.0.0.0/24 is subnetted, 1 subnets C 12.1.1.0 is directly connected, Serial1/0 R3#show ip route 23.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Serial1/0 172.16.0.0/24 is subnetted, 3 subnetsC 172.16.1.
9、0 is directly connected, Loopback0C 172.16.2.0 is directly connected, Loopback1C 172.16.3.0 is directly connected, Loopback2 10.0.0.0/24 is subnetted, 3 subnetsO E2 10.1.3.0 110/20 via 23.1.1.1, 00:12:00, Serial1/0O E2 10.1.2.0 110/20 via 23.1.1.1, 00:12:00, Serial1/0O E2 10.1.1.0 110/20 via 23.1.1.
10、1, 00:12:00, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsO IA 12.1.1.0 110/128 via 23.1.1.1, 00:12:10, Serial1/0从上述路由信息中可以看出,R1和R3学习到明细路由。R2#show ip ospf database OSPF Router with ID (2.2.2.2) (Process ID 1) Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link count1.1.1.1 1.1.1.1 1
11、117 0x80000002 0x00FB78 22.2.2.2 2.2.2.2 1117 0x80000002 0x0098D7 2 Summary Net Link States (Area 0)Link ID ADV Router Age Seq# Checksum23.1.1.0 2.2.2.2 1123 0x80000001 0x008C4F172.16.1.0 2.2.2.2 1103 0x80000001 0x0049EC172.16.2.0 2.2.2.2 1103 0x80000001 0x003EF6172.16.3.0 2.2.2.2 1103 0x80000001 0x
12、003301 Router Link States (Area 1)Link ID ADV Router Age Seq# Checksum Link count2.2.2.2 2.2.2.2 1117 0x80000002 0x001A39 23.3.3.3 3.3.3.3 1117 0x80000002 0x0017C8 5 Summary Net Link States (Area 1)Link ID ADV Router Age Seq# Checksum12.1.1.0 2.2.2.2 1123 0x80000001 0x001CCA Summary ASB Link States
13、(Area 1)Link ID ADV Router Age Seq# Checksum1.1.1.1 2.2.2.2 1104 0x80000001 0x00935C Type-5 AS External Link StatesLink ID ADV Router Age Seq# Checksum Tag10.1.1.0 1.1.1.1 1129 0x80000001 0x003060 010.1.2.0 1.1.1.1 1129 0x80000001 0x00256A 010.1.3.0 1.1.1.1 1129 0x80000001 0x001A74 0OSPF的手工汇总(1) 配置区
14、域间路由汇总R1#show ip route 23.0.0.0/24 is subnetted, 1 subnetsO IA 23.1.1.0 110/128 via 12.1.1.2, 00:55:34, Serial1/0 172.16.0.0/24 is subnetted, 3 subnetsO IA 172.16.1.0 110/129 via 12.1.1.2, 00:00:03, Serial1/0O IA 172.16.2.0 110/129 via 12.1.1.2, 00:00:03, Serial1/0O IA 172.16.3.0 110/129 via 12.1.1.
15、2, 00:00:03, Serial1/0 10.0.0.0/24 is subnetted, 3 subnetsC 10.1.3.0 is directly connected, Loopback2C 10.1.2.0 is directly connected, Loopback1C 10.1.1.0 is directly connected, Loopback0 12.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, Serial1/0R2(config)#router ospf 1R2(config-
16、router)# area 1 range 172.16.0.0 255.255.252.0 /在ASR上配置区域间路由汇总R1#show ip route 23.0.0.0/24 is subnetted, 1 subnetsO IA 23.1.1.0 110/128 via 12.1.1.2, 00:54:30, Serial1/0 172.16.0.0/22 is subnetted, 1 subnetsO IA 172.16.0.0 110/129 via 12.1.1.2, 00:01:15, Serial1/0 10.0.0.0/24 is subnetted, 3 subnets
17、C 10.1.3.0 is directly connected, Loopback2C 10.1.2.0 is directly connected, Loopback1C 10.1.1.0 is directly connected, Loopback0 12.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, Serial1/0(2)配置外部自治系统路由汇总R3# show ip route 23.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly c
18、onnected, Serial1/0 172.16.0.0/24 is subnetted, 3 subnetsC 172.16.1.0 is directly connected, Loopback0C 172.16.2.0 is directly connected, Loopback1C 172.16.3.0 is directly connected, Loopback2 10.0.0.0/24 is subnetted, 3 subnetsO E2 10.1.3.0 110/20 via 23.1.1.1, 00:00:02, Serial1/0O E2 10.1.2.0 110/
19、20 via 23.1.1.1, 00:00:02, Serial1/0O E2 10.1.1.0 110/20 via 23.1.1.1, 00:00:02, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsO IA 12.1.1.0 110/128 via 23.1.1.1, 01:03:18, Serial1/0R1(config)#router ospf 1R1(config-router)#summary-address 10.1.0.0 255.255.0.0 /在ASBR上配置外部自治系统路由汇总R3# show ip route 23.
20、0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Serial1/0 172.16.0.0/24 is subnetted, 3 subnetsC 172.16.1.0 is directly connected, Loopback0C 172.16.2.0 is directly connected, Loopback1C 172.16.3.0 is directly connected, Loopback2 10.0.0.0/16 is subnetted, 1 subnetsO E2 10.1.0.0 11
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 实验 区域 OSPF 网络

限制150内