ospf 末节区域和完全末节区域

ospf 末节区域和完全末节区域
一、 实验目的:
学习掌握 LSA 数据包的类型工作原理,掌握末节区域、完全末节区域、标准区域的区别、原理和使用方法。进一步了解 ospf 的工作原理!
二、 拓扑结构图:

      
三、 实验步骤:
1.       基本配置
  测试: sanjose3 ping 192.168.1.1 ping 192.168.208.2
  结论:物理线路连接没有问题
2.       ospf 的配置
测试: capetown(config-router)#do sh ip route
     192.168.208.0/30 is subnetted, 1 subnets
C       192.168.208.0 is directly connected, Serial0/0
     192.168.64.0/32 is subnetted, 1 subnets
O IA    192.168.64.1 [110/66] via 192.168.208.1, 00:00:15, Serial0/0
C    192.168.216.0/24 is directly connected, FastEthernet1/0
     192.168.80.0/32 is subnetted, 1 subnets
O IA    192.168.80.1 [110/66] via 192.168.208.1, 00:00:15, Serial0/0
     192.168.96.0/32 is subnetted, 1 subnets
O IA    192.168.96.1 [110/66] via 192.168.208.1, 00:00:15, Serial0/0
     192.168.112.0/32 is subnetted, 1 subnets
O IA    192.168.112.1 [110/66] via 192.168.208.1, 00:00:15, Serial0/0
C    192.168.220.0/24 is directly connected, Loopback0
O IA 192.168.1.0/24 [110/65] via 192.168.208.1, 00:00:15, Serial0/0
3.       创建 ASBR
      配置过程:
sanjose1(config)#int lo 5
sanjose1(config-if)#ip add 10.0.0.6 255.255.255.255
sanjose1(config-if)#no shut
sanjose1(config)#ip route 10.0.0.0 255.0.0.0 null0
sanjose1(config)#roueter ospf 1
sanjose1(config-router)#redistribute static
                       测试:
                            capetown#sh ip route
O E2 10.0.0.0/8 [110/20] via 192.168.208.1, 00:00:03, Serial0/0
              4. 配置末节区域
                       配置过程:
                            sanjose3(config)#router ospf 1
sanjose3(config-router)#area 2 stub
capetown(config)#router ospf 1
capetown(config-router)#area 2 stub
                    测试效果:
                            a capetown#sh ip ospf
                               Area 2
 Number of interfaces in this area is 3 (1 loopback)
 It is a stub area
                            b capetown#sh ip route
                                   192.168.208.0/30 is subnetted, 1 subnets
C       192.168.208.0 is directly connected, Serial0/0
     192.168.64.0/32 is subnetted, 1 subnets
O IA    192.168.64.1 [110/66] via 192.168.208.1, 00:03:23, Serial0/0
C    192.168.216.0/24 is directly connected, FastEthernet1/0
     192.168.80.0/32 is subnetted, 1 subnets
O IA    192.168.80.1 [110/66] via 192.168.208.1, 00:03:23, Serial0/0
     192.168.96.0/32 is subnetted, 1 subnets
O IA    192.168.96.1 [110/66] via 192.168.208.1, 00:03:23, Serial0/0
     192.168.112.0/32 is subnetted, 1 subnets
O IA    192.168.112.1 [110/66] via 192.168.208.1, 00:03:23, Serial0/0
C    192.168.220.0/24 is directly connected, Loopback0
O IA 192.168.1.0/24 [110/65] via 192.168.208.1, 00:03:23, Serial0/0
     192.168.3.0/32 is subnetted, 1 subnets
O IA    192.168.3.1 [110/65] via 192.168.208.1, 00:03:29, Serial0/0
O*I A 0.0.0.0/0 [110/65] via 192.168.208.1, 00:03:29, Serial0/0
c )分析:有数条区域间的路由,增大路由负载,在 capatown 中只需要一条到达 ABR 的路由就可以,可自动汇总。
              5. 配置完全末节区域
                     a )配置过程
                            sanjose3(config)#router ospf 1
sanjose3(config-router)#area 2 stub no-summary
capetown(config)#router ospf 1
capetown(config-router)#area 2 stub no-summary
                    b )结论:
                                   capetown#sho ip route
     192.168.208.0/30 is subnetted, 1 subnets
C       192.168.208.0 is directly connected, Serial0/0
C    192.168.216.0/24 is directly connected, FastEthernet1/0
C    192.168.220.0/24 is directly connected, Loopback0
O*I A 0.0.0.0/0 [110/65] via 192.168.208.1, 00:00:24, Serial0/0
                     c )总结:精简路由条目达到减少路由负担的目的。
                            测试 ping 192.168.64.1 ping 192.168.112.1
                            即减少路由条目又不影响使用!!
四、 实验总结
掌握末节区域与完全末节区域的配置、用法、以及其带来的效果。深入理解 ospf 的工作过程及    LSA 的分类和用法!       

你可能感兴趣的:(区域,思科,完全,ospf,末节)