当前位置:网站首页>交换机和路由器技术-28-OSPF的NSSA区域
交换机和路由器技术-28-OSPF的NSSA区域
2022-08-11 04:44:00 【w辣条小王子】
目录
一、OSPF NSSA区域
1.1 OSPF重分发回顾
什么是路由重分发
将其他自治系统的路由重分发进ospf自治系统内
链路类型E1、E2默认一般是E2只考虑外部成本
常见重分发
OSPF重分发直连
OSPF重分发默认
OSPF重分发静态
OSPF重分发RIP
RIP重分发OSPF
二、NSSA区域
2.1 基本概念
非纯末梢区域,在此区域内肯定有一个ASBR路由器,需要在ASBR上配置重分发
用重分发直连做实验
6种LSA链路状态通告在NSSA区域有哪几种?
SLA1、2、3、4、7
2.2 Type7类型的LSA
作为OSPF协议的一种扩展属性,NSSA中定义了一种LSA→Type7类型的LSA,作为区域内的路由器引入外部路由时使用,该类型的LSA除了类型标识与Type 5不相同之外,其它内容基本一样,这样区域内的路由器就可以通过LSA的类型来判断是否该路由来自本区域内。但由于Type 7类的LSA是新定义的,对于不支持NSSA属性的路由器无法识别,所以协议规定:在NSSA的ABR上将NSSA内部产生的Type 7类型的LSA转化为Type 5类型的LSA再发布出去,并同时更改LSA的发布者为ABR自己。这样NSSA区域外的路由器就可以完全不用支持该属性

对LSA的影响
类型7LSA在一个NSSA区域内携带外部信息
类型7LSA在NSSA的ABR上被转化为5LSA
不允许外部LSA
汇总LSA被引入
NSSA类型
N1
N2
通过NSSA的ABR之后转换为E1、E2
三、配置实例

R1配置
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 172.168.10.254 255.255.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Router(config)#interface GigabitEthernet0/1
Router(config-if)#ip address 10.0.0.1 255.255.255.252
Router(config-if)#exit
Router(config)#
Router(config)#router ospf 1
Router(config-router)#network 10.0.0.0 0.0.0.3 area 2
Router(config-router)#area 2 nssa
Router(config-router)#area 2 nssa no-summary
Router(config-router)#redistribute connected subnets //ospf重分发直连路由
查看R1路由,有一条默认路由是由于我们关闭了自动汇总形成的

R0配置
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 10.0.0.2 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Router(config)#interface GigabitEthernet0/1
Router(config-if)#ip address 20.0.0.1 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Router(config)#router ospf 1
Router(config-router)#network 10.0.0.0 0.0.0.3 area 2
Router(config-router)#network 20.0.0.0 0.0.0.3 area 0
Router(config-router)#area 2 nssa no-summary
Router(config-router)#
Router(config-router)#end
Router#
查看R0路由表新增一个N2类型的路由条目,因为R0此时也是NSSA区域的路由,会识别LSA7类型的链路状态通告,所以显示的N2而不是E2

R2配置
Router#configure terminal
Router(config)#interface GigabitEthernet0/1
Router(config-if)#ip address 20.0.0.2 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit'
Router(config)#
Router(config)#router ospf 1
Router(config-router)#network 20.0.0.0 0.0.0.3 area 0
Router(config-router)#network 192.168.1.0 0.0.0.255 area 0
Router(config-router)#end
Router#
查看R2的路由表
由于R1属于内部路由,查看到的是E2类型

边栏推荐
- WPF DataGrid 使用数据模板(2)
- Where can machine learning be applied?What is machine learning useful for?
- 快速使用UE4制作”大场景游戏“
- 洛谷P2245 星际导航
- "110 Balanced Binary Tree Judgment" in leetCode's 14-day binary tree series
- 【yolov7系列三】实战从0构建训练自己的数据集
- "125 Palindrome Verification" of the 10th day string series of LeetCode brushing questions
- What is ensemble learning in machine learning?
- Use Navicat Premium to export database table structure information to Excel
- 洛谷P1763 埃及分数
猜你喜欢

洛谷P2150 寿司晚宴

"104 Maximum Depth of Binary Trees" in LeetCode's Day 12 Binary Tree Series

ALSA音频架构

LeetCode814 Math Question Day 15 Binary Tree Series Value "814 Binary Tree Pruning"

The principle, architecture, implementation, practice of "transfer" and "search", no need to be afraid of interviews

es-head plugin insert query and conditional query (5)

Dry goods: The principle and practice of server network card group technology

Self-research capability was recognized again, and Tencent Cloud Database was included in the Forrester Translytical report

破解事务性工作瓶颈,君子签电子合同释放HR“源动力”!

简历里写了会代码,却依然过不了面试这一关
随机推荐
What is ensemble learning in machine learning?
Merkel Studio--OpenEuler Training Notes (1)
交换机--- 生成树--三层架构总结
JwsManager service interface implementation class - the jni implementation
Solve the problem of multi-thread calling sql stored procedure
"125 Palindrome Verification" of the 10th day string series of LeetCode brushing questions
使用百度EasyDL实现森林火灾预警识别
shell monitors gpu usage
利用Navicat Premium导出数据库表结构信息至Excel
Add PRODUCT_BOOT_JARS and classes to provide jar packages to applications
力扣——旋转数组的最小数字
Embedded Sharing Collection 33
洛谷P2150 寿司晚宴
洛谷P2580 于是他错误的点名开始了
About data paging display
堆排序 和冒泡排序
Redis: Solve the problem of modifying the same key with distributed high concurrency
AVH 动手实践 (二) | 在 Arm 虚拟硬件上部署 PP-OCR 模型
findViewById返回null的问题
自研能力再获认可,腾讯云数据库入选 Forrester Translytical 报告