OSPF路由配置--四种特殊区域(详解)

目录

不理解OSPF路由动态协议的可以回顾一下OSPF详解,下这一系列的实验都不再做解释,直接开始配置 

一.

实验拓扑图

二.

实验配置 (命令可以直接复制粘贴到CLI中)

三.

实验结果


不熟悉和理解OSPF动态协议的可以回顾OSPF详解,OSPF相关的实验都不再做过多的解释

OSPF路由原理详解与关键点icon-default.png?t=N7T8https://blog.csdn.net/2301_77362941/article/details/141490546?spm=1001.2014.3001.5501

一.

实验拓扑图

二.

实验配置 (命令可以直接复制粘贴到CLI中)

R1:

un ter mo

sys

sys R1

int g0/0/0

ip add 192.168.12.1 24

int g0/0/2

ip add 192.168.13.1 24

int g0/0/1

ip add 192.168.15.1 24

int g0/0/3

ip add 192.168.17.1 24

ospf router-id 1.1.1.1

area 0

net 192.168.0.0 0.0.255.255

area 1

net 192.168.17.0 0.0.0.255

nssa no-summary

area 3

net 192.168.15.0 0.0.0.255

stub no-summary

q

R2:

un ter mo

sys

sys R2

int g0/0/0

ip add 192.168.12.2 24

int g0/0/01

ip add 192.168.23.2 24

int g0/0/02

ip add 192.168.26.2 24

q

ospf router-id 2.2.2.2

area 0

net 192.168.0.0 0.0.255.255

area 4

net 192.168.26.0 0.0.0.255

stub

q

R3:

un ter mo

sys

sys R3

int g0/0/01

ip add 192.168.23.3 24

int g0/0/2

ip add 192.168.13.3 24

int g0/0/0

ip add 192.168.34.3 24

q

ospf router-id 3.3.3.3

area 0 

net 192.168.0.0 0.0.255.255

area 2

nssa

net 192.168.34.0 0.0.0.255

q

R4:

un ter mo

sys

sys R4

int g0/0/0 

ip add 192.168.34.4 24

int loo0

ip add 10.0.4.1 24

int loo1

ip add 10.0.5.2 24

int loo2

ip add 10.0.6.3 24

q

ospf router-id 4.4.4.4

import-route direct                      

area 2

nssa 

net 192.168.34.0 0.0.0.255

q

R5:

un ter mo

sys

sys R5

int g0/0/1

ip add 192.168.15.5 24

int loo0

ip add 5.5.5.5 32

ospf router-id 5.5.5.5

area 3

stub no-summary

net 192.168.15.0 0.0.0.255

net 5.5.5.5 0.0.0.0

q

R6:

un ter mo

sys

sys R6

int g0/0/2

ip add 192.168.26.6 24

int loo0

ip add 10.0.7.1 24

int loo1

ip add 10.0.8.2 24

int loo2

ip add 10.0.9.3 24

q

ospf router-id 6.6.6.6

area 4

stub

net 192.168.26.0 0.0.0.255

net 10.0.7.0 0.0.0.255

net 10.0.8.0 0.0.0.255

net 10.0.9.0 0.0.0.255

q

R7:

un ter mo

sys

sys R7

int g0/0/03

ip add 192.168.17.7 24

int loo0

ip add 7.7.7.7 32

q

ospf router-id 7.7.7.7

area 1

nssa no-summary

net 192.168.17.0 0.0.0.255

net 7.7.7.7 0.0.0.0

q

先查看核心区域邻居表,看邻居关系是否建立完成

R1:

R2:

 R3:

已经全部建立了邻接关系

在R1-3上查看LSA的数据库表

R1:

 R2:

R3:

 

下面进行ABR和ASBR的聚合

ABR聚合:(在R2上进行聚合)

R2:

ospf

area 4

abr-summary 10.0.0.0 255.255.0.0

再查看现在R2的LSDB表

ASBR聚合:(在R4上进行聚合)

为区分R6上的,这里选择8位掩码

ospf

asbr-summary 

asbr-summary 10.0.0.0 255.0.0.0

R3的LSDB表

三.

实验结果

查看各区域的lsdb

R4(NSSA区域)

R5(Stub no-summary区域)

R6(Stub区域)

R7(NSSA no-snummary区域)

区域表项内容
Sutb表内无四类,五类的LSA,有明细的三类LSA访问外部路由靠三类的缺省路由
Stub no-summary表内无明细三类,四类,五类的LSA 访问外部路由靠下发的三类缺省路由,LSDB数据简洁
NSSA表内无四类,五类的LSA,但有七类和明细三类LSA,七类LSA主要负责给引入外部路由使用,有三类的缺省路由,七类LSA是无法出NSSA区域的
NNSA no-summary表内无明细三类,四类,五类的LSA,仅靠三类缺省路由访问外部路由

聚合的意义

聚合类型作用
ABR聚合主要负责将某个区域的路由进行聚合
ASBR聚合对引入的外部路由进行聚合

需要上面拓扑文件的可以私聊,有问题的可以评论区指出,欢迎大家评论

  • 10
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

可惜已不在

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值