当前位置:网站首页>oSPF基础实验配置
oSPF基础实验配置
2022-07-26 22:50:00 【less than _ermi】
实验内容:

oSPF是目前市面上主流面对大型网络的路由协议,oSPF与RIP不同的地方在于oSPF的子网划分一般都是按区域划分,这样在区域间共享路由的时候是汇总成一条进行传递。
实验过程:
一、子网划分
R1-R3为区域0,R3到R4为区域1,所以可以将192.168.1.0/24划分为两个网段 192.168.1.0/25用于区域0 192.168.1.128/25用于区域1 ;再将192.168.1.0/25划分为四个网段192.168.1.0/27(用于MA网段) 192.168.1.0/29 192.168.1.8/29 192.168.1.16/29 192.168.1.24/29
192.168.1.32/27(R1环回) 192.168.1.64/27(R2环回) 192.168.1.96/27(R3环回)
二、配置oSFP
1、各个路由器环回和接口的配置(R1为例)
interface GigabitEthernet0/0/0
ip address 192.168.1.1 29
interface LoopBack0
ip address 192.168.1.33 27R2\R3\R4同R1
2、宣告(R1为例)
ospf 1 route-id 1.1.1.1 启动ospf并给一个名字
area 0 进入区域0
network 192.168.1.0 0.0.0.255 宣告192.168.1.0-255 R2\R4同R1,R4不宣告环回
R3宣告
ospf 1 router-id 3.3.3.3
area 0
network 192.168.1.3 0.0.0.0 反掩码为0.0.0.0为精确匹配,只宣告192.168.1.3 这个地址
abr-summary 192.168.1.0 255.255.255.128 进行路由汇总,将区域0的路由汇总为一条路由传给区域1
area 1
network 192.168.1.129 0.0.0.03、更改R1\R2的优先级(R1为例)
interface GigabitEthernet0/0/0
ospf dr-priority 0 修改优先级,优先级为0,不参与DR、BDR选举R2同R1
4、 认证(R1为例)
interface GigabitEthernet0/0/0
ospf authentication-mode md5 1 ciper 123456 在连接邻居的接口上做认证,保障安全R2\R3\R4同R1
5、对R4写缺省路由
ospf 1
default-route-advertise always 让内部路由产生缺省路由指向该路由器三、测试

实验结果:
实现全网可达,保障更新安全,减少路由条目数量,达到实验目的。
边栏推荐
- 初识网页设计
- (the most detailed in History) codeforces round 805 (Div. 3) e Split Into Two Sets
- C语言——二维数组、指针
- Ospf基础配置应用( 综合实验: 干涉选举 缺省路由 区域汇总 认证--接口认证)
- 光光光仔的CSDN之旅
- The basic configuration of static routing (planning of IP address and configuration of static routing) realizes the accessibility of the whole network.
- Lecture 3 - GPIO input / output library function usage and related routines
- (CF1691D) Max GEQ Sum
- Esp8266wi fi data communication
- C语言——赋值运算符、复合的赋值运算符、自增自减运算符、逗号运算符、条件运算符、goto语句、注释
猜你喜欢

Dynamic routing ofps protocol configuration

C语言——第一个程序、打印、变量和常量

NAT (network address translation protocol)

JUC并发编程

Static comprehensive experiment (comprehensive exercise of static route, loopback interface, default route, empty interface, floating static)

C语言——关系运算符和逻辑运算符、if语句、switch语句、分支结构的嵌套

ESP8266Wi-Fi接入云平台

ACM mode input and output exercise

静态路由缺省路由vlan实验

Lora communication application development
随机推荐
ACM mode input and output exercise
ESP8266Wi-Fi接入云平台
C语言——赋值运算符、复合的赋值运算符、自增自减运算符、逗号运算符、条件运算符、goto语句、注释
多线程中 synchronized 锁升级的原理是什么?
动态路由rip协议实验
HCIA动态路由RIP基础实验
The latest C language introduction and advanced - the most complete and detailed C language tutorial in history!! Section 1 - overview of C language
Codeforces Round #807 (Div. 2), problem: (C) Mark and His Unfinished Essay
6.28 Dahua written examination
CAN总线通信应用
C语言——while语句、dowhile语句、for循环和循环结构、break语句和continue语句
睡不着时闭眼躺着,到底有没有用?
数字芯片的面积优化:第三届“华为杯”研究生创芯大赛数字方向上机题1详解
最新C语言入门与进阶 -史上最全最详细的C语言教程!! 第一节-总览C语言概括
TreeSet集合存储元素的问题
Tcp的三次握手与四次挥手
Explain exi interrupt through the counting experiment of infrared sensor
HCIA基础知识(1)
Educational Codeforces Round 132 (Rated for Div. 2), problem: (D) Rorororobot
OSPF static experiment