当前位置:网站首页>交换机和路由器技术-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类型
边栏推荐
- 【深度学习】基于卷积神经网络的天气识别训练
- 如何缓解压力、拒绝内耗【1】
- Object Creation and Display Transformation
- 洛谷P5139 z小f的函数
- 洛谷P2150 寿司晚宴
- "3 Longest Substring Without Repeating Characters" on the 17th day of LeetCode brushing
- Add PRODUCT_BOOT_JARS and classes to provide jar packages to applications
- 力扣——青蛙跳台阶问题
- Resize() usage row pit in vector
- 每日一题-滑动窗口
猜你喜欢
CAN/以太网转换器 CAN与以太网互联互通
交换机--- 生成树--三层架构总结
findViewById返回null的问题
Jetson Orin平台4-16路 GMSL2/GSML1相机采集套件推荐
干货:服务器网卡组技术原理与实践
es-head plugin insert query and conditional query (5)
Dry goods: The principle and practice of server network card group technology
Use jackson to parse json data in detail
JVM 垃圾回收的概述与机制
The sword refers to offer_abstract modeling capabilities
随机推荐
Common layout effect realization scheme
[Likou] 22. Bracket generation
优先级队列
[Web3 series development tutorial - create your first NFT (9)] How to view your NFT in the mobile wallet
Redis deletes keys in batches according to regular rules
使用百度EasyDL实现森林火灾预警识别
Object Creation and Display Transformation
MySQL database storage engine and database creation, modification and deletion
Alibaba Cloud releases 3 high-performance computing solutions
洛谷P6586 蒟蒻火锅的盛宴
【FPGA教程案例50】控制案例2——基于FPGA的PD控制器verilog实现
Where can machine learning be applied?What is machine learning useful for?
Jetson Orin平台4-16路 GMSL2/GSML1相机采集套件推荐
如何将360全景图导出高清短视频分享到视频平台上?
关于数据分页显示
洛谷P4032 火锅盛宴
-Fill in color-
洛谷P4560 Wall 砖墙
洛谷P1196 银河英雄传说
Word2021 中的图片保存后就变模糊了