2025.12.22 OSPF多区域原理与配置方法

OSPF的三种通信量

  1. 域内通信量
  2. 域间通信量
  3. 外部通信量

链路状态通告-LSA:同步链路状态数据库(7种类型)

常用检查命令

show ip route

shiw ip ospf database

实验、配置OSPF多区域

对路由器的端口配置IP地址并打开接口。

公布各个路由器的直连网段与网段的所属区域

Router0

Router(config)#router ospf 1

Router(config-router)#network 192.168.1.0 0.0.0.255 area 0

Router(config-router)#network 192.168.2.0 0.0.0.255 area 0

Router(config-router)#network 192.168.5.0 0.0.0.255 area 0

Router1

Router(config)#router ospf 1

Router(config-router)#network 192.168.2.0 0.0.0.255 area 0

Router(config-router)#network 192.168.3.0 0.0.0.255 area 2

Router2

Router(config-router)#router ospf 1

Router(config-router)#network 192.168.5.0 0.0.0.255 area 0

Router(config-router)#network 192.168.6.0 0.0.0.255 area 1

Router3

Router(config)#router ospf 1

Router(config-router)#network 192.168.3.0 0.0.0.255 area 2

Router(config-router)#network 192.168.4.0 0.0.0.255 area 2

配置完成后,使用PC0ping其余两台PC的地址,能够ping通,配置成功

下午 子网划分

IP地址分类

有类地址:没有经过子网划分的地址叫做有类地址

无类地址:经过子网划分的地址叫做无类地址

相关推荐
DianSan_ERP5 天前
电商API接口全链路监控:构建坚不可摧的线上运维防线
大数据·运维·网络·人工智能·git·servlet
呉師傅5 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
2501_946205525 天前
晶圆机器人双臂怎么选型?适配2-12寸晶圆的末端效应器有哪些?
服务器·网络·机器人
linux kernel5 天前
第七部分:高级IO
服务器·网络
数字护盾(和中)5 天前
BAS+ATT&CK:企业主动防御的黄金组合
服务器·网络·数据库
~远在太平洋~5 天前
Debian系统如何删除多余的kernel
linux·网络·debian
unfeeling_5 天前
Keepalived实验
linux·服务器·网络
坐吃山猪5 天前
OpenClaw04_Gateway常见问题
网络·gateway·openclaw
上海云盾商务经理杨杨5 天前
2025年重大网络安全事件回顾与趋势分析
网络·安全·web安全
kylezhao20195 天前
C# 的开闭原则(OCP)在工控上位机开发中的具体应用
网络·c#·开闭原则