【锐捷】OSPF 多区域配置

news2024/9/29 9:21:01


【实验名称】
配置 OSPF 多区域。
【实验目的】
配置 OSPF 多区域,理解 OSPF 层次型网络的特点。
【背景描述】
本实验拓扑图中有 3 台路由器,路由器在区域 0 和区域 1 中,路由器 B 在区域 0 和区域 30,
路由器 C 在区域 30。
【需求分析】
需要基于本拓扑图实现 OSPF 多区域的配置,并理解 OSPF 实现层次型网络的优点。
【实验拓扑】
实验的拓扑图,如图 11-1 所示。
图 11-1
【实验设备】
路由器 3 台
【预备知识】
路由器基本配置知识、OSPF。
【实验原理】
配置 OSPF 路由协议,实现多区域路由。
【实验步骤】
步骤 1 在路由器上配置 IP 地址。
RA#config t
RA(config)# interface FastEthernet 0/0
RA(config-if)#ip address 192.168.1.2 255.255.255.0
RA(config)#interface Loopback 0
RA(config-if)#ip address 172.16.0.1 255.255.255.0
RA(config)#interface Loopback 1
RA(config-if)#ip address 172.16.1.1 255.255.255.0
RA(config)#interface Loopback 2
RA(config-if)#ip address 172.16.2.1 255.255.255.0
RA(config)#interface Loopback 3
RA(config-if)#ip address 172.16.3.1 255.255.255.0
RA(config)#interface Loopback 4
RA(config-if)#ip address 172.16.4.1 255.255.255.0
RB#config t
RB(config)# interface FastEthernet 0/0
RB(config-if)#ip address 192.168.1.1 255.255.255.0
RB(config)#interface FastEthernet 0/1
RB(config-if)#ip address 192.168.2.1 255.255.255.0
RB(config)#interface Loopback 0
RB(config-if)#ip address 172.24.1.1 255.255.255.0
RB(config)#interface Loopback 1
RB(config-if)#p address 192.168.3.1 255.255.255.0
RC#config t
RC(config)# interface FastEthernet 0/0
RC(config-if)#ip address 192.168.2.2 255.255.255.0
RC(config)#interface Loopback 0
RC(config-if)#ip address 172.24.2.1 255.255.255.0
RC(config)#interface Loopback 1
RC(config-if)#ip address 199.0.0.10 255.255.255.240
步骤 2 配置 OSPF。
RA(config)# router ospf 10
RA(config-router)#network 172.16.0.0 0.0.0.255 area 1
RA(config-router)#network 172.16.1.0 0.0.0.255 area 1
RA(config-router)#network 172.16.2.0 0.0.0.255 area 1
RA(config-router)#network 172.16.3.0 0.0.0.255 area 1
RA(config-router)#network 172.16.4.0 0.0.0.255 area 1
RA(config-router)#network 192.168.1.0 0.0.0.255 area 0
RB(config)# router ospf 10
RB(config-router)#network 172.24.1.0 0.0.0.255 area 0
RB(config-router)#network 192.168.1.0 0.0.0.255 area 0
实验 11 OSPF 多区域配置 ·7·
RB(config-router)#network 192.168.2.0 0.0.0.255 area 30
RB(config-router)#network 192.168.3.0 0.0.0.255 area 0
RC(config)# router ospf 10
RC(config-router)#network 172.24.2.0 0.0.0.255 area 30
RC(config-router)#network 192.168.2.0 0.0.0.255 area 30
步骤 3 验证测试。
用命令 show ip route 和 sh ip ospf neighbor 来验证配置。
RA#show ip route
Codes: C - connected, S - static, R - RIP B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
Gateway of last resort is no set
C 172.16.0.0/24 is directly connected, Loopback 0
C 172.16.0.1/32 is local host.
C 172.16.1.0/24 is directly connected, Loopback 1
C 172.16.1.1/32 is local host.
C 172.16.2.0/24 is directly connected, Loopback 2
C 172.16.2.1/32 is local host.
C 172.16.3.0/24 is directly connected, Loopback 3
C 172.16.3.1/32 is local host.
C 172.16.4.0/24 is directly connected, Loopback 4
C 172.16.4.1/32 is local host.
O 172.24.1.1/32 [110/1] via 192.168.1.1, 00:03:13, FastEthernet 0/0
O IA 172.24.2.1/32 [110/2] via 192.168.1.1, 00:00:35, FastEthernet 0/0
C 192.168.1.0/24 is directly connected, FastEthernet 0/0
C 192.168.1.2/32 is local host.
O IA 192.168.2.0/24 [110/2] via 192.168.1.1, 00:03:13, FastEthernet 0/0
O 192.168.3.1/32 [110/1] via 192.168.1.1, 00:03:13, FastEthernet 0/0
RC#show ip route
Codes: C - connected, S - static, R - RIP B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
S* 0.0.0.0/0 is directly connected, Loopback 1
O IA 172.16.0.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0
O IA 172.16.1.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0
实验 11 OSPF 多区域配置 ·8·
O IA 172.16.2.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0
O IA 172.16.3.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0
O IA 172.16.4.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0
O IA 172.24.1.0/24 [110/1] via 192.168.2.1, 00:02:49, FastEthernet 0/0
C 172.24.2.0/24 is directly connected, Loopback 0
C 172.24.2.1/32 is local host.
O IA 192.168.1.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0
C 192.168.2.0/24 is directly connected, FastEthernet 0/0
C 192.168.2.2/32 is local host.
O IA 192.168.3.0/24 [110/1] via 192.168.2.1, 00:02:49, FastEthernet 0/0
C 199.0.0.0/28 is directly connected, Loopback 1
C 199.0.0.10/32 is local host.
RB#show ip ospf neighbor
OSPF process 10:
Neighbor ID Pri State Dead Time Address Interface
172.16.4.1 1 Full/DR 00:00:37 192.168.1.2 FastEthernet 0/0
199.0.0.10 1 Full/BDR 00:00:35 192.168.2.2 FastEthernet 0/1
【参考配置】
RA#show running-config
Building configuration...
Current configuration : 1029 bytes
!
version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 20:50:30 CST 2007
-ubu1server)
hostname RA
!
enable secret 5 $1$db44$8x67vy78Dz5pq1xD
!
interface FastEthernet 0/0
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet 0/1
duplex auto
speed auto
!
interface Loopback 0
ip address 172.16.0.1 255.255.255.0
!
interface Loopback 1
ip address 172.16.1.1 255.255.255.0
实验 11 OSPF 多区域配置 ·9·
!
interface Loopback 2
ip address 172.16.2.1 255.255.255.0
!
interface Loopback 3
ip address 172.16.3.1 255.255.255.0
!
interface Loopback 4
ip address 172.16.4.1 255.255.255.0
!
router ospf 10
network 172.16.0.0 0.0.0.255 area 1
network 172.16.1.0 0.0.0.255 area 1
network 172.16.2.0 0.0.0.255 area 1
network 172.16.3.0 0.0.0.255 area 1
network 172.16.4.0 0.0.0.255 area 1
network 192.168.1.0 0.0.0.255 area 0
!
line con 0
line aux 0
line vty 0 4
login
!
end
RB#show running-config
Building configuration...
Current configuration : 807 bytes
!
version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 20:50:30 CST 2007
-ubu1server)
hostname RB
!
enable secret 5 $1$db44$8x67vy78Dz5pq1xD
!
interface FastEthernet 0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet 0/1
ip address 192.168.2.1 255.255.255.0
实验 11 OSPF 多区域配置 ·10·
duplex auto
speed auto
!
interface Loopback 0
ip address 172.24.1.1 255.255.255.0
!
interface Loopback 1
ip address 192.168.3.1 255.255.255.0
router ospf 10
network 172.24.1.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 30
network 192.168.3.0 0.0.0.255 area 0
!
line con 0
line aux 0
line vty 0 4
login
!
end
RC#show running-config
Building configuration...
Current configuration : 734 bytes
!
version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 20:50:30 CST 2007
-ubu1server)
hostname RC
!
enable secret 5 $1$db44$8x67vy78Dz5pq1xD
!
interface FastEthernet 0/0
ip address 192.168.2.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet 0/1
duplex auto
speed auto
!
interface Loopback 0
ip address 172.24.2.1 255.255.255.0
!
实验 11 OSPF 多区域配置 ·11·
interface Loopback 1
ip address 199.0.0.10 255.255.255.240
!
router ospf 10
network 172.24.2.0 0.0.0.255 area 30
network 192.168.2.0 0.0.0.255 area 30
!
ip route 0.0.0.0 0.0.0.0 Loopback 1
!
line con 0
line aux 0
line vty 0 4
login
!
end
实验 11 OSPF 多区域配置 ·12·

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/920616.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

简单着色器编写(下)

函数部分介绍完了,最后来介绍一下main函数中的部分。 std::string vertexShader "#version 330 core\n" "\n" "layout(location0)in vec4 position;" "\n" "void main()\n" "{\n&…

day43参与通信的服务器

1.题目描述 这里有一幅服务器分布图,服务器的位置标识在 m * n 的整数矩阵网格 grid 中,1 表示单元格上有服务器,0 表示没有。 如果两台服务器位于同一行或者同一列,我们就认为它们之间可以进行通信。 请你统计并返回能够与至少…

数据分析实战│时间序列预测

时间序列预测问题是一类常见的数据分析问题。数据中往往包含时间标签,这类问题往往根据过去一段时间的数据,建立能够比较精确地反映序列中所包含的动态依存关系的数学模型,并对未来的数据进行预测。 01、问题描述及数据挖掘目标 本案例给出二战时期的某气象站温度记录值,通…

Terraform(二)

Terraform实践 1. Terraform Docker Example1.1 Install Terraform1.2 Verify the installation1.3 Enable tab completion1.4 Quick start tutorial To deploy infrastructure with Terraform: Scope - Identify the infrastructure for your project.Author - Write the con…

【校招VIP】前端校招考点之行内/块级元素

考点介绍: 行内元素会在一条直线上排列(默认宽度只与内容有关),都是同一行的,水平方向排列。块级元素各占据一行(默认宽度是它本身父容器的100%(和父元素的宽度一致),与内…

抖音书单背景图制作怎么做?分享两个制作小妙招

相信屏幕前的小伙伴今天有刷抖音吧!由于迎合受众对碎片化传播的需求,抖音也成为了当下最流行的短视频应用之一,在抖音上分享书单已经成为了一种流行的趋势,而制作一张吸引人的书单背景图是很重要的。在本文中,我们将分…

Python Web开发技巧X

目录 select_related 和 prefetch_related 生成器对象的三种创建方式 classmethod和staticmethod __class__属性 python创建一个类会依次去调用哪些方法 __new__和__init__实现单例模式的饿汉式和懒汉式 select_related 和 prefetch_related select_related 和 prefetch_…

HTML中SCRIPT 标签中的那些属性

在HTML中&#xff0c; <script> 标签用于嵌入或引用JavaScript代码。 在 <script> 标签中&#xff0c;有两个属性可以用来控制脚本的加载和执行方式&#xff1a; async 和 defer 。 当然这也是常见的一道面试题&#xff0c; async 和 defer 的作用和区别。 asy…

【IO流中的字节流(InputStream)(OutputStream)】

字符集 美国人发明计算机 要将他们的字符存入计算机&#xff08;英文字母、数字、标点、特殊字符&#xff09; 给字符进行编号&#xff0c;组成了一张ASCII码表&#xff08;美国信息交换标准代码&#xff09;&#xff0c;一共包含128个字符 该码表以1个字节存储1个字符&#xf…

Java 实现 国密SM4/ECB/PKCS7Padding对称加密解密

Java 实现 国密SM4/ECB/PKCS7Padding对称加密解密&#xff0c;为了演示方便本问使用的是IntelliJ IDEA 2022.1 (Community Edition)来构建代码的 1、pom.xml文件添加需要的jar <?xml version"1.0" encoding"UTF-8"?> <project xmlns"htt…

1002 Business

要解这道题目&#xff0c;感觉最关键的因素就是找到第 件任务最晚开始的时间 。这个看似简单&#xff0c;但是对建模的功底要求相当高。我一开始就把 当成了 &#xff0c;但其实不是的。后者就相当于把第 件任务锁死在最后面完成&#xff0c;但其实是允许放在之前完成的&am…

springboot2+redis 订阅发布,解决接收消息累计线程到内存溢出,使用自定义线程池接收消息

pom 添加redis <!-- redis 缓存操作 --><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId></dependency> 发布消息 import lombok.extern.slf4j.Slf4j; import o…

FPGA原理与结构——FIFO IP核原理学习

一、FIFO概述 1、FIFO的定义 FIFO是英文First-In-First-Out的缩写&#xff0c;是一种先入先出的数据缓冲器&#xff0c;与一般的存储器的区别在于没有地址线&#xff0c; 使用起来简单&#xff0c;缺点是只能顺序读写数据&#xff0c;其数据地址由内部读写指针自动加1完成&…

DC电源模块关于输入电压范围

BOSHIDA DC电源模块关于输入电压范围 DC电源模块是一种常用的电源供应设备&#xff0c;其主要作用是将交流电转化为直流电&#xff0c;以供电子设备使用。在DC电源模块的使用过程中&#xff0c;输入电压范围是一个非常重要的参数&#xff0c;它关系到模块的稳定性、可靠性以及…

driver‘s license exam 1

驾考科目1&#xff0c;都是做题目 driver‘s license exam 1_spencer_tseng的博客-CSDN博客 driver‘s license exam 2_spencer_tseng的博客-CSDN博客 driver‘s license exam 3_spencer_tseng的博客-CSDN博客 driver‘s license exam 4_spencer_tseng的博客-CSDN博客 car …

对1GHz脉冲多普勒雷达进行快速和慢速处理生成5个移动目标的距离多普勒图研究(Matlab代码实现)

&#x1f4a5;&#x1f4a5;&#x1f49e;&#x1f49e;欢迎来到本博客❤️❤️&#x1f4a5;&#x1f4a5; &#x1f3c6;博主优势&#xff1a;&#x1f31e;&#x1f31e;&#x1f31e;博客内容尽量做到思维缜密&#xff0c;逻辑清晰&#xff0c;为了方便读者。 ⛳️座右铭&a…

微信公众号关注/取消订阅事件一文详解

一、背景介绍 这周期的项目需求中需要做一个引导用户关注微信公众号的功能&#xff0c;但是引导用户关注的前提是需要实时获取当前用户是否已经关注微信公众号,如果光看官方文档还是对于一些小伙伴来说比较无从下手&#xff0c;所以我来分享以下我做的过程中遇到的问题以及解决…

Ansible 创建分区

实例&#xff1a; 创建一个名为/home/greg/ansible/partition.yml 的剧本&#xff0c;它在所有托管节点上运行&#xff0c;执行以下操作&#xff1a; 在设备 VDB 上创建大小为 1500 MB 的单个主分区 1 使用 ext4 文件系统格式化分区 在/n…

无涯教程-PHP - 性能优化

根据Zend小组的说明,以下插图显示了PHP 7与PHP 5.6和基于流行的基于PHP的应用程序上的HHVM 3.7。 Magento 1.9 与执行Magento事务的PHP 5.6相比&#xff0c;PHP 7的运行速度证明是其两倍。 Drupal 7 在执行Drupal事务时&#xff0c;与PHP 5.6相比&#xff0c;PHP 7的运行速度…

【Gitee提交pr】

Gitee提交pr 什么是pr怎样提交一个pr嘞&#xff1f; 什么是pr pr:指的是将自己的修改从自己的账号仓库dev下提交到官方账号仓库master下&#xff1b; 通俗来讲就是Gitee线上有属于自己的分支&#xff0c;然后本地在自己地分支修改完代码之后&#xff0c;提交到自己的线上分支&a…