当前位置:网站首页>HCIP-R&S By Wakin自用笔记(3)OSPF之引入外部路由、Forwarding-Address、汇总、特殊区域
HCIP-R&S By Wakin自用笔记(3)OSPF之引入外部路由、Forwarding-Address、汇总、特殊区域
2022-08-11 01:06:00 【筐瓢大师小吕】
引入外部路由(8/5,8min)


Forwarding-Address(8/5,10min)

汇总(8/5,14min)

特殊区域(以及LSA 7)(8/5,37min)



Stub(区域内所有路由器都需要配置stub):
屏蔽LSA4、5且生成一条LSA 3的缺省路由,display ospf lsdb时不会看到LSA 4与LSA 5;但此时ABR还会将其他区域内的网段以LSA 3传递给本区域(即保留OSPF区域间路由)。
Totally Stub(只在ABR上配置:stub no-summray,该区域内其他路由器仍配置stub即可),此时去往区间路由也依靠默认路由。无论是stub还是Totally stub,其他区域都能收到来自Area 1的LSA 3,故其他路由器仍旧依靠OSPF向RTD传递路由。


RTA注入外部路由时,因为Area 1的Stub/Totally Stub区域性质,无法学习到外部路由(LSA 5被屏蔽);但因为Area 1存在默认路由,可通过D→B→A→外部网络;同时RTD与外部网络存在路由(且为最优路径),也因为Area 1的特殊区域性质而无法学习;即问题为:RTD无法通过最优路径抵达外部网络(次优路径问题);
那么现在可以将RTD、B都配置为nssa区域,nssa区域允许外部路由注入(那么RTD成为ASBR,可以学习到最优路径)同时也不允许存在LSA 5,此时引出LSA 7概念,LSA 7与LSA 5相似,在该案例中,LSA 7在ABR(RTB)中被转换为LSA 5;Area 2也因为LSA 5的性质生成LSA 4,因为RTB传递出LSA 5,故其他区域内的路由器认为RTB为ASBR
关于LSA 3缺省路由与LSA 7缺省路由
在RTB、D处配置nssa,会产生一条LSA 7缺省路由;若在RTB处配置nssa no-summray时(即Totally NSSA)时,又会额外产生一条LSA 3缺省路由。





OSPF实验:

要求:全网运行OSPF,使用汇聚、特殊区域等技术使各区域内LSA数量优化到最少,全网通。
做好基本接口配置,网段配置由左至右分别为24.0.0.0/24,12.0.0.0/24,16.0.0.0/24,13.0.0.0/24,35.0.0.0/24。R4、R6配置环回口,且R4将环回口网段宣告至OSPF Area24中。
注意:
Area 35未与Area 0连接,且按照优化需求,应在Area 24配置汇总,在Area 16配置Nssa区域,在Area 35配置Totally Stub区域。
R1:
sysname R1
#
undo info-center enable
#
interface GigabitEthernet0/0/0
ip address 12.0.0.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 16.0.0.1 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 13.0.0.1 255.255.255.0
#
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 12.0.0.0 0.0.0.255
area 0.0.0.13
network 13.0.0.0 0.0.0.255
vlink-peer 3.3.3.3
area 0.0.0.16
network 16.0.0.0 0.0.0.255
nssa
R2:
sysname R2
#
undo info-center enable
#
interface GigabitEthernet0/0/0
ip address 24.0.0.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 12.0.0.2 255.255.255.0
#
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 12.0.0.0 0.0.0.255
area 0.0.0.24
abr-summary 172.16.0.0 255.255.252.0
network 24.0.0.0 0.0.0.255 R4:
sysname R4
#
undo info-center enable
#
interface GigabitEthernet0/0/0
ip address 24.0.0.4 255.255.255.0
#
interface LoopBack0
ip address 172.16.0.1 255.255.255.0
#
interface LoopBack1
ip address 172.16.1.1 255.255.255.0
#
interface LoopBack2
ip address 172.16.2.1 255.255.255.0
#
interface LoopBack3
ip address 172.16.3.1 255.255.255.0
#
ospf 1 router-id 4.4.4.4
area 0.0.0.24
network 24.0.0.0 0.0.0.255
network 172.16.0.0 0.0.0.255
network 172.16.1.0 0.0.0.255
network 172.16.2.0 0.0.0.255
network 172.16.3.0 0.0.0.255 R6:
sysname R6
#
undo info-center enable
#
interface GigabitEthernet0/0/0
ip address 16.0.0.6 255.255.255.0
#
interface LoopBack0
ip address 172.16.4.1 255.255.255.0
#
interface LoopBack1
ip address 172.16.5.1 255.255.255.0
#
interface LoopBack2
ip address 172.16.6.1 255.255.255.0
#
interface LoopBack3
ip address 172.16.7.1 255.255.255.0
#
ospf 1 router-id 6.6.6.6
import-route direct
area 0.0.0.16
network 16.0.0.0 0.0.0.255
nssaR3:
sysname R3
#
undo info-center enable
#
interface GigabitEthernet0/0/0
ip address 13.0.0.3 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 35.0.0.3 255.255.255.0
#
ospf 1 router-id 3.3.3.3
area 0.0.0.13
network 13.0.0.0 0.0.0.255
vlink-peer 1.1.1.1
area 0.0.0.35
network 35.0.0.0 0.0.0.255
stub no-summaryR5:
sysname R5
#
undo info-center enable
#
interface GigabitEthernet0/0/0
ip address 35.0.0.5 255.255.255.0
#
interface LoopBack0
ip address 5.5.5.5 255.255.255.0
#
ospf 1 router-id 5.5.5.5
area 0.0.0.35
network 5.5.5.0 0.0.0.255
network 35.0.0.0 0.0.0.255
stub 边栏推荐
猜你喜欢

R language multiple linear regression, ARIMA analysis of the impact of different candidates in the United States on the economic GDP time series

"NIO Cup" 2022 Nioke Summer Multi-School Training Camp 3 DF Problem Solving

ADC和DAC记录

【redis】发布和订阅消息

Two-dimensional array combat project -------- "Minesweeper Game"

Web APIs BOM - A Comprehensive Case of Operating Browsers

Mysql数据库安装配置详细教程

BEVDepth: Acquisition of Reliable Depth for Multi-view 3D Object Detection Paper Notes

leetcode 前K个高频单词

嵌入式软件打log的一些心得
随机推荐
如何破坏Excel文件,让其显示文件已损坏方法
【经典排序】快速排序
构建检测,无规矩不成方圆
还在用 Xshell?你 out 了,推荐一个更现代的终端连接工具,好用到爆!
Introduction to Qt (6) - Implementation of the lottery system
Successfully resolved TypeError: can't multiply sequence by non-int of type 'float'
二维数组实战项目--------《扫雷游戏》
② 关系数据库标准语言SQL 数据定义(创建、修改基本表)、数据更新(增删改)
MSTP——多生成树(案列+配置)
成功解决TypeError: can‘t multiply sequence by non-int of type ‘float‘
MSTP - Multiple Spanning Tree (Case + Configuration)
力扣------值相等的最小索引
关于编程本质那些事
【视频】报告分享|2021年保险行业数字化洞察
How to easily obtain the citation format of references?
HW-常见攻击方式和漏洞原理(2)
【openpyxl】只读模式、只写模式
Only lazy and hungry. You still don't understand the singleton pattern!
Jvm. Profiling tools (jconsole, jvisualvm, arthas, jprofiler, mat)
LeetCode_优先级队列_692.前K个高频单词