设备调试之OSPF多区域及特殊区域技术实践

OSPF多区域及特殊区域

1. 项目背景

当企业的网络规模逐渐增大,在10台及以上路由器的情况下,为了实现整个网络互相通信,共享资料,需要我们启用一个IGP协议来为此服务,当网络企业较大时,选择OSPF是一个比较好的决定,因为OSPF是基于链路状态的,因此它单区域不会出现环路,并且相较于RIP,OSPF收敛较快,能够为中型网络结构提供较好的服务,但是由于某些企业中提供了性能较差的路由器,因此在OSPF协议中,也设计了特殊区域,提供了对性能较差的路由器的支持,也保证了一定的安全性。

2. 实践目的

(1) 再次复习OSPF区域,理解其支持的网络类型
(2) 设计拓扑,完成OSPF多区域实践并理解OSPF出现的LSA类型及其用途
(3) 完成实践任务,总结方法

3. 实践拓扑

在这里插入图片描述

4. 地址规划

在这里插入图片描述

5. 详细配置

OSPF多区域及特殊区域:
R24-01:
Ruijie>enable
Ruijie#configration terminal
Ruijie(config)#hostname R24-01
R24-01(config)#interface fasterethernet 0/0
R24-01(config-if)#ip address 210.26.24.1 255.255.255.252
R24-01(config-if)#no shutdown
R24-01(config-if)#interface fastethernet 0/1
R24-01(config-if)#ip add 192.168.1.1 255.255.255.0
R24-01(config-if)#no shutdown
R24-01(config-if)#router ospf 10
R24-01(config-router)#router-id 1.1.1.1
R24-01(config-router)#network 210.26.24.0 0.0.0.3 area 1
R24-01(config-router)#network 192.168.1.0 0.0.0.255 area 1
R24-01(config-router)#area 1 stub
R24-01(config-router)#end
R14-01:
Ruijie>enable
Ruijie#configration terminal
Ruijie(config)#hostname R14-01
R14-01(config)#interface fasterethernet 0/0
R14-01(config-if)#ip address 210.26.24.2 255.255.255.252
R14-01(config-if)#no shutdown
R14-01(config-if)#interface fastethernet 0/1
R14-01(config-if)#ip add 110.26.24.1 255.255.255.252
R14-01(config-if)#no shutdown
R14-01(config-if)#interface fastethernet 0/2
R14-01(config-if)#ip add 192.168.2.1 255.255.255.0
R14-01(config-if)#no shutdown
R14-01(config-if)#router ospf 10
R14-01(config-router)#router-id 2.2.2.2
R14-01(config-router)#network 210.26.24.0 0.0.0.3 area 1
R14-01(config-router)#network 192.168.2.0 0.0.0.255 area 2
R14-01(config-router)#network 110.26.24.0 0.0.0.3 area 0
R14-01(config-router)#area 1 stub
R14-01(config-router)#end
R14-02:
Ruijie>enable
Ruijie#configration terminal
Ruijie(config)#hostname R14-02
R14-02(config)#interface fasterethernet 0/0
R14-02(config-if)#ip address 10.10.1.1 255.255.255.252
R14-02(config-if)#no shutdown
R14-02(config-if)#interface fastethernet 0/1
R14-02(config-if)#ip add 110.26.24.2 255.255.255.252
R14-02(config-if)#no shutdown
R14-02(config-if)#interface fastethernet 0/2
R14-02(config-if)#ip add 192.168.3.1 255.255.255.0
R14-02(config-if)#no shutdown

R14-02(config-if)#router ospf 10
R14-02(config-router)#router-id 3.3.3.3
R14-02(config-router)#network 110.26.24.0 0.0.0.3 area 0
R14-02(config-router)#network 10.10.1.0 0.0.0.3 area 3
R14-02(config-router)#network 192.168.3.0 0.0.0.255 area 0
R14-02(config-router)#area 3 stub
R14-02(config-router)#area 3 stub no-summary
R14-02(config-router)#end
R24-02:
Ruijie>enable
Ruijie#configration terminal
Ruijie(config)#hostname R24-02
R24-02(config)#interface fasterethernet 0/0
R24-02(config-if)#ip address 10.10.1.2 255.255.255.252
R24-02(config-if)#no shutdown
R24-02(config-if)#interface fastethernet 0/1
R24-02(config-if)#ip add 192.168.4.1 255.255.255.0
R24-02(config-if)#no shutdown
R24-02(config-if)#router ospf 10
R24-02(config-router)#router-id 4.4.4.4
R24-02(config-router)#network 10.10.1.0 0.0.0.3 area 3
R24-02(config-router)#network 192.168.4.0 0.0.0.255 area 3
R24-02(config-router)#area 3 stub
R24-02(config-router)#end
S3760-01:
Ruijie>enable
Ruijie#configration terminal
Ruijie(config)#hostname S3760-01
S3760-01(config)#interface fasterethernet 0/24
S3760-01(config-if)#no switchport
S3760-01(config-if)#ip address 192.168.2.2 255.255.255.0
S3760-01(config-if)#no shutdown
S3760-01(config-if)#interface vlan 10
S3760-01(config-if)#ip address 192.168.10.254 255.255.255.0
S3760-01(config-if)#interface fastethernet 0/1
S3760-01(config-if)#switchport mode access
S3760-01(config-if)#switchport access vlan 10
S3760-01(config-if)#router ospf 10
S3760-01(config-router)#router-id 4.4.4.4
S3760-01(config-router)#network 192.168.2.0 0.0.0.255 area 2
S3760-01(config-router)#network 192.168.10.0 0.0.0.255 area 2
S3760-01(config-router)#area 3 stub
S3760-01(config-router)#end

6. 测试结果

在这里插入图片描述

上图是area 1是常规区域时,能存在4类和5类LSA

在这里插入图片描述

由上图所知,area 1称为STUB区域后,过滤了4、5类LSA,出现一条3类LSA默认路由

在这里插入图片描述

R24-01 PING测试成功!

在这里插入图片描述

在R14-02上,由上图所知,当将area 3设置为totally stub之后,会过滤4、5类LSA,而3类LSA中只出现一条默认路由,其他3类也均被过滤
在这里插入图片描述
由上图所知,当area 3是常规区域时,出现了4、5类lsa
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
由上图所知,R24-02能够PING通,实践成功

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

寻址00000001

千里之行,始于“足下”

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

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

打赏作者

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

抵扣说明:

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

余额充值