MGRE结合OSPF
题目:
一、R6为ISP只能配置IP地址,R1-R5的环回为私有网段
1.首先给各个设备分配IP并设置缺省使全网可达,并用ping命令检查
二,R1/2/3为星型的拓扑结构(MGRE),R1为中心站点
R1
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip add 192.168.7.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 16.0.0.1
Sep 18 2022 18:43:45-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r1-Tunnel0/0/0]nhrp network-id 100
R2
[r2]int t0/0/0
[r2-Tunnel0/0/0]ip add 192.168.7.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]source GigabitEthernet 0/0/0
Sep 18 2022 18:44:47-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r2-Tunnel0/0/0]nhrp network-id 100
[r2-Tunnel0/0/0]nhrp entry 192.168.7.1 16.0.0.1 register
R3
[r3]int t0/0/0
[r3-Tunnel0/0/0]ip add 192.168.7.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source GigabitEthernet 0/0/0
Sep 18 2022 18:46:16-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp entry 192.168.7.1 16.0.0.1 register
三,R1/4/5为全连的MGRE结构
1.以R1为中心
R1配置
[r1]int t0/0/1
[r1-Tunnel0/0/1]ip add 192.168.8.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]source 61.0.0.1
Sep 18 2022 19:00:23-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/1 has entered the UP state.
[r1-Tunnel0/0/1]nhrp network-id 200
R4
[r4]int t0/0/1
[r4-Tunnel0/0/1]ip add 192.168.8.2 24
[r4-Tunnel0/0/1]tunnel-protocol gre p2mp
[r4-Tunnel0/0/1]source g0/0/0
Sep 18 2022 19:02:34-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/1 has entered the UP state.
[r4-Tunnel0/0/1]nhrp network-id 200
[r4-Tunnel0/0/1]nhrp entry 192.168.8.1 61.0.0.1 register
R5
[r5]int t0/0/1
[r5-Tunnel0/0/1]ip add 192.168.8.3 24
[r5-Tunnel0/0/1]tunnel-protocol gre p2mp
[r5-Tunnel0/0/1]source g0/0/0
Sep 18 2022 19:03:48-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/1 has entered the UP state.
[r5-Tunnel0/0/1]nhrp network-id 200
[r5-Tunnel0/0/1]nhrp entry 192.168.8.1 61.0.0.1 register
2.以R4为中心
R4
[r4-Tunnel0/0/1]source 46.0.0.1
[r4-Tunnel0/0/1]nhrp network-id 400
R1
[r1-Tunnel0/0/1]source g0/0/0
[r1-Tunnel0/0/1]nhrp network-id 400
[r1-Tunnel0/0/1]nhrp entry 192.168.8.2 46.0.0.1 register
R5
[r5-Tunnel0/0/1]source g0/0/0
[r5-Tunnel0/0/1]nhrp network-id 400
[r5-Tunnel0/0/1]nhrp entry 192.168.8.2 46.0.0.1 register
3.以R5为中心
R5
[r5-Tunnel0/0/1]source 56.0.0.1
[r5-Tunnel0/0/1]nhrp network-id 500
R1
[r1-Tunnel0/0/1]nhrp network-id 500
[r1-Tunnel0/0/1]nhrp entry 192.168.8.3 56.0.0.1 register
R4
[r4-Tunnel0/0/1]nhrp network-id 500
[r4-Tunnel0/0/1]nhrp entry 192.168.8.3 56.0.0.1 register
四,所有私有网段可以互相通讯,使用OSPF完成
## 由于MGRE环境不支持组播,所以需要开启伪广播
[r1-Tunnel0/0/0]nhrp entry multicast dynamic## 在R1-5上开启OSPF
## 由于通道p2p为点到点所以改为 broadcast
ospf network-type broadcast
# 需进入每个接口修改
最后查看路由表且所有私有网段可互相通讯
MGRE结合OSPF相关推荐
- MGRE结合OSPF(超详解)
目录 一,R6为ISP只能配置IP地址,R1-R5的环回为私有网段 1.首先给各个设备分配IP并设置缺省使全网可达 2.配置完成后ping一下其他路由器发现都通 二,R1/2/3为星型的拓扑结构(MG ...
- MGRE与OSPF综合实验
要求: 1,R6为ISP只能配置IP地址,R1-R5的环回为私有网段 2,R1/4/5为全连的GRE结构; R1/2/3为星型的拓扑结构,R1为中心站点 3,所有私有网段可以互相通讯,私有网段使用OS ...
- NBMA网络中的OSPF实验(MGRE)
NBMA(MGRE)OSPF实验 实验拓扑 实验要求 ①ISP只能配IP地址,PC1-5在私有网段,R6的环回在公有网段 ②R1/4/5为全连结构的MGRE:R1/2/3为星型的MGRE,其中R1为中 ...
- 实验4--ospf(MGRE的星型结构和全连结构)
绘制拓扑图 R1R4作为中心站点,给R5写道R1R4的注册 检查配置 检查测试mgre 启动OSPF MGRE 修改DR优先权 测试结果
- MGRE环境下的OSPF (实验超详解)
一.实验要求 1,r6为isp只能配置ip地址,r1-r5的环回为私有网段 2,r1/4/5为全连的MGRE结构,r1/2/3为星型拓扑结构,r1为中心站点 3,所有私有网段可以互相通讯,私有网段使用 ...
- 第五天实验---MGRE环境下的OSPF实验
基础IP地址配置 R1 [r1]int g 0/0/0 [r1-GigabitEthernet0/0/0]ip add 16.0.0.1 24 [r1-GigabitEthernet0/0/0]int ...
- HCIP网络配置(MGRE+OSPF+优化)
先上拓扑 不同area之间已经用不同的颜色分开,每个area的汇总网段已经分好,中间isp的网段从AR3开始逆时针,分别为11.0.0.0 /24 12.0.0.0/24 13.0.0.0/24 14 ...
- MGRE下的OSPF实验
MGRE下的OSPF实验 首先配置各个路由的ip以及缺省,以及每个路由器的环回接口192.168.1.1-192.168.5.1 在配置所有边界路由到isp路由的缺省,r1配置俩条. 2. 做r1为中 ...
- GRE、MGRE的相关知识(OSPF知识点)
GRE的问题 --- 因为GRE搭建的是一个点到点的隧道,所以,导致其扩展性较差(当存在多个私网需要相互连接时,需要彼此之间都搭建GRE隧道才行) MGRE --- 多点通用路由封装技术 NHRP协议 ...
最新文章
- jQuery Callbacks
- 清华阿里联合发布:一个Few-shot场景的命名实体识别数据集
- 机器学习(Part I)机器学习的种类
- Cocoa 框架 For iOS(二)对象的分配初始化、内省、单例
- python stm32-实现Python与STM32通信方式
- linux内核时间second,闰秒(leap second)和linux/unix时间
- iOS中画矩形的几种方法总结
- java使用btree_java数据结构之二叉树遍历的非递归实现
- 清除定时器 和 vue 中遇到的定时器setTimeout setInterval问题
- javaweb之mysql数据库
- ThinkPHP 数据库操作,插入,更新,删除,查询
- Linux 管道通信 客户端与服务器通信
- [转]论window和Linux之长短
- (阿里云笔记)阿里云域名ICP备案全流程——超详细
- Oracle 并行操作
- iOS---Local declaration of hides问题
- keep怎么弄轨迹动画_keep怎么录视频?教学视频录像和轨迹动画视频录制方法介绍...
- 高效团队建设与管理 学习心得
- Flume 入门教程(超详细)
- DMSP/OLS夜间灯光数据——应用