当前位置:网站首页>OSPF实验
OSPF实验
2022-08-08 23:43:00 【仲夏夜之梦~*ω*】


要求:
1.如图连接,合理规划IP地址,所有路由器各自创建一个loopback接口
2.R1再创建三个接口IP地址为201.1.1.1/24、201.1.2.1/24、201.1.3.1/24
R5再创建三个接口IP地址为202.1.1.1/24、202.1.2.1/24、202.1.3.1/24
R7再创建三个接口IP地址为203.1.1.1/24、203.1.2.1/24、203.1.3.1/24
3.如图运行路由协议
R1 -R2 -R3之间使用MGRE网络,为hub-spoke 网络结构,R1为hub端 ,
部署OSPF网络,MGRE修改为BMA网络类型
4.area 1 区域不得出现4.5类LSA
5.其他区域优先通过R3访问R1 三个环回接口
6.尽量减少路由条目数量
7.area 1 区域增加安全性
8.全网可达
1.R1-R7合理配置IP地址
[r1]int lo0
[r1-LoopBack0]ip add 1.1.1.1 24
[r1-LoopBack0]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 10.1.1.1 24
[r1]int lo1
[r1-LoopBack1]ip add 201.1.1.1 24
[r1-LoopBack1]int lo2
[r1-LoopBack2]ip add 201.1.2.1 24
[r1-LoopBack2]int lo3
[r1-LoopBack3]ip add 201.1.3.1 24
[r2]int lo0
[r2-LoopBack0]ip add 2.2.2.2 24
[r2-LoopBack0]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 10.1.1.2 24
[r2-GigabitEthernet0/0/0]int s4/0/0
[r2-Serial4/0/0]ip add 24.1.1.1 24
[r4]int lo0
[r4-LoopBack0]ip add 4.4.4.4 24
[r4-LoopBack0]int s4/0/0
[r4-Serial4/0/0]ip add 34.1.1.2 24
[r4-Serial4/0/0]int s4/0/1
[r4-Serial4/0/1]ip add 24.1.1.2 24
[r4-GigabitEthernet0/0/0]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 46.1.1.1 24
2.R1 R2 R3 R4 R6做OSPF,R4-R5做RIP 200,R6-R7做rip 100

[r2-ospf-1-area-0.0.0.0]network 24.1.1.1 0.0.0.0
[r3]ospf 1 rou
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]netw
[r3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0]netw
[r3-ospf-1-area-0.0.0.0]network 10.1.1.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0]netw
[r3-ospf-1-area-0.0.0.0]network 34.1.1.1 0.0.0.0
r6]ospf 1 router-id 6.6.6.6
[r6-ospf-1]area 2
[r6-ospf-1-area-0.0.0.2]netw
[r6-ospf-1-area-0.0.0.2]network 46.1.1.2 0.0.0.0
[r6-ospf-1-area-0.0.0.2]network 6.6.6.6 0.0.0.0
R5 R7进行路由汇总

3.R1-R3做MGRE,R1为hub端


MGRE修改为BMA网络类型
[r1-Tunnel0/0/0]ospf network-type broadcast

4.R1 R4上做gre
[r1]int tu0/0/1
[r1-Tunnel0/0/1]ip add 200.1.1.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre
[r1-Tunnel0/0/1]source 10.1.1.1
[r1-Tunnel0/0/1]destination 46.1.1.1
之后在R4上进入OSPF 宣告tunnel ip 地址
边栏推荐
- Introduction to Qt (5) - file operation, hotkey and mouse reading (implementation of txt window)
- (2022杭电多校三)1011.Taxi(曼哈顿最值+二分)
- 风控建模二:建模方案拟定
- 51nod2861 2-sat
- Tp5 in cache cache, storage cell phone text message authentication code
- (2022牛客多校五)H-Cutting Papers(签到)
- (newcoder 15079)无关(容斥原理)
- MySQL 高级知识【 MyISAM 读锁写锁限制】
- 并发编程第3篇,volatile原理分析
- Get the current time before/after one day's date
猜你喜欢

(2022牛客多校二)L-Link with Level Editor I(动态规划)

Use Mongoose populate to implement multi-table associative storage and query, with complete code included

【深度学习】TensorFlow学习之路一:TensorFlow简介及线性回归、逻辑回归实现

域前置通信过程和溯源思路

洛谷P4197 Peaks 线段树合并

牛客练习赛88 D 克鲁斯卡尔重构树

Introduction to Qt (5) - file operation, hotkey and mouse reading (implementation of txt window)

freemarker的基本语法及入门基础

风控建模一:好坏标签定义

词云简单生成
随机推荐
2022牛客多校六 J-Number Game(简单推理)
并发编程第3篇,volatile原理分析
Get the start time and end time of the current month half a year ago
TensorFlow learning path deep learning 】 【 5: several methods to prevent a fitting and within DNN TensorFlow implementation
(2022牛客多校五)H-Cutting Papers(签到)
Common problems in installing mysql in linux environment and using it
Modal dialog is used to implement the sign-in
如何学好编程
关于vm虚拟机虚拟网络已禁用
Introduction to Qt (4) - Continuous playback of pictures (the use of two timers)
According to the address returned by Baidu Map, intercept the province, city, district
51nod 2877熟练使用tarjan的知识
51nod1656 合并trie树
使用 Gradio 在 huggingface 创建应用 Space
07 Spark on RDD 血缘关系
MySQL 高级知识【 MyISAM 读锁写锁限制】
并发编程第11篇,线程池的一些常用用法和使用
Introduction to Qt (5) - file operation, hotkey and mouse reading (implementation of txt window)
jira操作流程
Golang gorm 数据库连接,迁移,索引