CCNP路由实验---9、OSPF末节区域和绝对末节区域的配置

简介:

一、 实验目的:

1、  掌握配置OSPF末节区域,绝对末节区域

二、实验拓扑

 

三、实验步骤

   (一)配置OSPF末节区域

1、  按照拓扑图配置好各个路由器的接口IPOSPF协议。配置好后在R3上用命令show ip route查看路由表。

R3#sh ip route

Gateway of last resort is not set

 

     172.16.0.0/16 is variably subnetted, 9 subnets, 2 masks

C       172.16.224.0/24 is directly connected, Serial1/1

C       172.16.220.0/24 is directly connected, Loopback0

C       172.16.216.0/24 is directly connected, Loopback1

O IA    172.16.1.0/24 [110/128] via 172.16.224.1, 00:01:17, Serial1/1

O IA    172.16.3.1/32 [110/65] via 172.16.224.1, 00:01:17, Serial1/1

O IA    172.16.112.1/32 [110/129] via 172.16.224.1, 00:01:17, Serial1/1

O IA    172.16.96.1/32 [110/129] via 172.16.224.1, 00:01:17, Serial1/1

O IA    172.16.80.1/32 [110/129] via 172.16.224.1, 00:01:17, Serial1/1

O IA    172.16.64.1/32 [110/129] via 172.16.224.1, 00:01:17, Serial1/1

2、在R3上配置一条静态路由连到ISP,然后重分布到OSPF中,配置如下

R1(config)#router ospf 1

R1(config-router)#redistribute static subnets

R1(config-router)#exit

R3上使用show ip route命令查看路由表

R3#sh ip route

Codes: C - connected, S - static, 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

       i - IS-IS, su - IS-IS summary, 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

 

     172.16.0.0/16 is variably subnetted, 9 subnets, 2 masks

C       172.16.224.0/24 is directly connected, Serial1/1

C       172.16.220.0/24 is directly connected, Loopback0

C       172.16.216.0/24 is directly connected, Loopback1

O IA    172.16.1.0/24 [110/128] via 172.16.224.1, 00:07:13, Serial1/1

O IA    172.16.3.1/32 [110/65] via 172.16.224.1, 00:07:13, Serial1/1

O IA    172.16.112.1/32 [110/129] via 172.16.224.1, 00:07:13, Serial1/1

O IA    172.16.96.1/32 [110/129] via 172.16.224.1, 00:07:13, Serial1/1

O IA    172.16.80.1/32 [110/129] via 172.16.224.1, 00:07:13, Serial1/1

O IA    172.16.64.1/32 [110/129] via 172.16.224.1, 00:07:13, Serial1/1

O E2 10.0.0.0/8 [110/20] via 172.16.224.1, 00:00:04, Serial1/1

 

3R3是一个内部区域路由器,在一个末节区域内,并不需要学习到外部AS的路由信息或者其他区域的汇总路由,只需要一个指向ABRSanJose3)的默认路由就可以了。将area51配置成一个末节区域,配置如下:(注意在区域51所在的路由器上都要配置,否则无法形成邻接关系)

R3(config)#router ospf 1

R3(config-router)#area 51 stub

 

R2(config)#router ospf 1

R2(config-router)#area 51 stub

配置完后,使用show ip ospf查看,可以看到area51成为一个stub area

R3#sh ip ospf

 Routing Process "ospf 1" with ID 172.16.220.1

 Supports only single TOS(TOS0) routes

 Supports opaque LSA

 Supports Link-local Signaling (LLS)

 Initial SPF schedule delay 5000 msecs

 Minimum hold time between two consecutive SPFs 10000 msecs

 Maximum wait time between two consecutive SPFs 10000 msecs

 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs

 LSA group pacing timer 240 secs

 Interface flood pacing timer 33 msecs

 Retransmission pacing timer 66 msecs

 Number of external LSA 0. Checksum Sum 0x000000

 Number of opaque AS LSA 0. Checksum Sum 0x000000

 Number of DCbitless external and opaque AS LSA 0

 Number of DoNotAge external and opaque AS LSA 0

 Number of areas in this router is 1. 0 normal 1 stub 0 nssa

 External flood list length 0

    Area 51

        Number of interfaces in this area is 1

        It is a stub area

        Area has no authentication

        SPF algorithm last executed 00:01:57.364 ago

        SPF algorithm executed 6 times

        Area ranges are

        Number of LSA 9. Checksum Sum 0x035FAA

        Number of opaque link LSA 0. Checksum Sum 0x000000

        Number of DCbitless LSA 0

        Number of indication LSA 0

        Number of DoNotAge LSA 0

        Flood list length 0

使用show ip route查看R3的路由表,出现了一条默认路由。

R3#sh ip route

Codes: C - connected, S - static, 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

       i - IS-IS, su - IS-IS summary, 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.16.224.1 to network 0.0.0.0

 

     172.16.0.0/16 is variably subnetted, 9 subnets, 2 masks

C       172.16.224.0/24 is directly connected, Serial1/1

C       172.16.220.0/24 is directly connected, Loopback0

C       172.16.216.0/24 is directly connected, Loopback1

O IA    172.16.1.0/24 [110/128] via 172.16.224.1, 00:02:24, Serial1/1

O IA    172.16.3.1/32 [110/65] via 172.16.224.1, 00:02:24, Serial1/1

O IA    172.16.112.1/32 [110/129] via 172.16.224.1, 00:02:24, Serial1/1

O IA    172.16.96.1/32 [110/129] via 172.16.224.1, 00:02:24, Serial1/1

O IA    172.16.80.1/32 [110/129] via 172.16.224.1, 00:02:24, Serial1/1

O IA    172.16.64.1/32 [110/129] via 172.16.224.1, 00:02:24, Serial1/1

O*IA 0.0.0.0/0 [110/65] via 172.16.224.1, 00:02:24, Serial1/1

末节区域对所有外部AS的路由,类型5LAS都会被禁止扩散到末节区域内部,而用一条默认路由代替所有外部AS的路由,达到减小路由表条目的目的。

 

(二)配置绝对末节网络(CISCO私有特性)

如果配置了绝对末节网络,将会禁止type3,type4类型的LAS在绝对末节区域扩散。配置如下只需要在绝对末节区域里的ABR上配置,绝对末节区域内部的路由器只要配置成末节区域就可以了。

 

R2(config)#router ospf 1

R2(config-router)#no area 51 stub

R2(config-router)#area 51 stub no-summary

R2(config-router)#exit

 

使用 show ip route查看R3上的路由表,内部区域的路由也没有了,用一条默认路由代替,将路由表进一步减小。

R3#sh ip route

Codes: C - connected, S - static, 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

       i - IS-IS, su - IS-IS summary, 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.16.224.1 to network 0.0.0.0

 

     172.16.0.0/24 is subnetted, 3 subnets

C       172.16.224.0 is directly connected, Serial1/1

C       172.16.220.0 is directly connected, Loopback0

C       172.16.216.0 is directly connected, Loopback1

O*IA 0.0.0.0/0 [110/65] via 172.16.224.1, 00:00:04, Serial1/1

 



本文转自 独钩寒江雪 51CTO博客,原文链接:http://blog.51cto.com/bennie/424384,如需转载请自行联系原作者

相关文章
|
数据库
gorm 事务的使用
gorm 事务的使用
481 0
|
存储 算法 生物认证
活体检测的几种手段分析
活体检测的手段比较多,目前比较通用的是人脸活体检测,但是实际应用中的还有指纹识别、虹膜识别、静脉识别,通过这些手段来增加安全性,活体检测在金融领域、军事管理中最先使用,目前也在渐渐的普及到各个民用行业。
912 0
活体检测的几种手段分析
|
Kubernetes 容器
kubeadm 部署的 k8s 增加 ip 并重新生成证书
kubeadm 部署的 k8s 增加 ip 并重新生成证书
1614 0
|
传感器 智能硬件
未来家居:智能窗帘的设计与实现
【5月更文挑战第31天】本文将探讨智能窗帘的设计和实现,包括其工作原理、主要组件以及如何通过智能家居系统进行控制。我们将详细介绍智能窗帘的硬件和软件设计,以及如何将其集成到现有的智能家居系统中。
|
存储 人工智能 弹性计算
2025年阿里云企业高性能云服务器租用价格与选型详解
随着企业数字化转型,阿里云于2025年推出多款高性能云服务器实例,涵盖计算、通用和内存密集型场景。文章分析了企业选择云服务器的核心要点,包括明确业务需求(如计算密集型任务推荐计算型实例)、性能与架构升级(如第八代实例性能提升20%),以及第九代实例支持AI等高算力需求。同时提供了配置价格参考和成本优化策略,助力企业实现效率与成本的最优平衡。
|
前端开发 JavaScript C#
基于.NET8+Vue3开发的权限管理&个人博客系统
基于.NET8+Vue3开发的权限管理&个人博客系统
213 7
|
传感器 芯片 索引
【TI速成】半小时入门MSPM0G3507简明教程之PWM串口(三)
半小时入门MSPM0G3507简明教程之PWM串口
1866 0
|
SQL 安全 网络安全
"守护数据王国,揭秘SQL权限管理与安全配置秘籍!从创建用户到加密技术,全方位打造铜墙铁壁,让你的数据库安全无忧,远离黑客侵扰!"
【8月更文挑战第31天】数据库是信息系统的核心,存储了大量敏感数据,因此确保其安全至关重要。本文详细介绍了SQL权限管理与安全配置的方法,包括理解权限类型、创建用户和角色、分配权限、实施密码策略、使用加密技术、配置防火墙、定期审计备份及防止SQL注入等,帮助你全面保护数据库安全。通过这些步骤,你可以有效管理和配置数据库权限,防范潜在威胁,确保数据隐私和完整性。
389 0
|
Kubernetes Cloud Native 开发者
阿里云网络发布 alibaba-load-balancer-controller v1.2.0:开启云原生网关开源新篇章!敬请探索!
**阿里云发布开源版ALB控制器v1.2.0,对齐商业版ALB Ingress Controller v2.10.0。新版本增强了功能特性,提升了用户体验,并提供了最佳实践。功能更新包括自定义标签、QUIC协议支持、转发规则和安全策略等。此外,还引入了ReadinessGate实现滚动升级时的平滑上线和Prestop钩子确保平滑下线。用户可从GitHub获取开源代码,通过Docker Hub拉取镜像,开始使用alibaba-load-balancer-controller v1.2.0。**
832 3
阿里云网络发布 alibaba-load-balancer-controller v1.2.0:开启云原生网关开源新篇章!敬请探索!