当前位置: 首页 > news >正文

OSPF路由配置--多区域

目录

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

一.

实验拓扑

二.

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

三.

实验验证


不理解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

sysname R1

interface GigabitEthernet0/0/0

ip address 192.168.12.1 24

interface GigabitEthernet0/0/1

ip address 192.168.13.1 24

interface GigabitEthernet0/0/2

ip address 192.168.14.1 24

ospf router-id 1.1.1.1

area 0

net 192.168.12.0 0.0.0.255

quit

area 1

net 192.168.13.0 0.0.0.255

quit

area 2

net 192.168.14.0 0.0.0.255

quit

R2:

un ter mo

sys

sys R2

interface GigabitEthernet0/0/0

ip address 192.168.12.2  24

interface LoopBack0

ip address 2.2.2.2 32

q

ospf router-id 2.2.2.2

area 0

net 192.168.12.0 0.0.0.255

net 2.2.2.2 0.0.0.0

quit

R3:

un ter mo

sys

sys R3

interface GigabitEthernet0/0/1

ip address 192.168.13.3 24

interface LoopBack0

ip address 3.3.3.3 32

quit

ospf router-id 3.3.3.3 

area 1

net 192.168.13.0  0.0.0.255

net  3.3.3.3  0.0.0.0

quit

R4:

un ter mo

sys

sys R4

interface GigabitEthernet0/0/2

ip address 192.168.14.4  24

interface LoopBack0

ip address 4.4.4.4  32

quit

ospf router-id 4.4.4.4

area 2

net 192.168.14.0  0.0.0.255

net  4.4.4.4  0.0.0.0

quit

三.

实验验证

在R1上查看邻居表建立的情况

Area Id 则为不同的区域,区域0转换就是 0.0.0.0,范围为0-4294967295

在R1上查看路由表

非骨干区域必须要和骨干区域连接

骨干区域即为区域0

R2 ping R3,R4


http://www.mrgr.cn/news/8332.html

相关文章:

  • 【c++】用if-else语句模拟法律中对于“防卫行为”
  • 拓扑排序,以及区间dp相关试题
  • EasyExcel动态实现表头以及数据封装
  • 前端——盒子模型
  • 信创海光x86服务器,定义、特点及应用详解
  • Flink内存调优
  • 【python】OpenCV—Single Human Pose Estimation
  • 数据结构总结
  • Spring的bean的生命周期
  • macOS安装搭建python环境
  • 自然语言处理系列四十二》新词发现与短语提取》新词发现》代码实战
  • redis 过期监听:高效管理数据生命周期
  • ffmpeg6.1集成ffmpeg-gl-transition滤镜
  • 在.NET开发中使用 Excel 的最佳方式之一:MiniExcel
  • leetcode53:最大子数组和
  • Nodejs中使用FFmpeg
  • LLM agentic模式之规划能力(planning)
  • K8S系列——(二)、K8S部署RocketMQ集群
  • Flutter ListView 实现不同样式 item
  • print输出不换行 、制表符、while循环制作九九乘法表 复习奥