当前位置:网站首页>MGRE 环境下配置OSPF实验
MGRE 环境下配置OSPF实验
2022-07-17 15:22:00 【qq_52178594】
1.实验要求及其拓扑图:

2.配好IP的拓扑图见下;

3.实验分析
1.R6为ISP只能配置IP地址,R1—R5的环回为私有网段
ISP路由器只进行IP配置,因此R1--R5需配置指向ISP路由器的缺省路由
[r1]ip route-static 0.0.0.0 0 16.0.0.2 (r1的缺省)
[r1]ip route-static 0.0.0.0 0 161.0.0.2
[r2]ip route-static 0.0.0.0 0 26.0.0.2 (r2的缺省)
[r3]ip route-static 0.0.0.0 0 36.0.0.2 (r3的缺省)
[r4]ip route-static 0.0.0.0 0 46.0.0.2 (r4的缺省)
[r5]ip route-static 0.0.0.0 0 56.0.0.2 (r5的缺省)2.R1/4/5为全连的MGRE结构,R1/2/3为星型的拓扑结构,R1为中心站点
r1/r2/r3,其中r1为中心,所以按照配置MGRE步骤来即可,并开启伪广播域
R1/4/5为全连的MGRE结构,即每个路由器均为中心,需向其他路由汇报自己
R1:
[r1]int t 0/0/0
[r1-Tunnel0/0/0]ip ad 192.168.6.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 16.0.0.1
[r1-Tunnel0/0/0]nhrp neteork-id 100
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1]int t 0/0/1
[r1-Tunnel0/0/1]ip ad 192.168.7.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]source 161.0.0.1
[r1-Tunnel0/0/1]nhrp neteork-id 101
[r1-Tunnel0/0/1]nhrp entry multicast dynamic
[r1-Tunnel0/0/1]nhrp entry 192.168.7.2 46.0.0.1 register
[r1-Tunnel0/0/1]nhrp entry 192.168.7.3 56.0.0.1 registerR2;
[r2]int t 0/0/0
[r2-Tunnel0/0/0]ip ad 192.168.6.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]source GigabitEthernet 0/0/0
Jul 13 2022 16:18:11-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.6.1 16.0.0.1 register R3:
[r3]int t 0/0/0
[r3-Tunnel0/0/0]ip ad 192.168.6.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source GigabitEthernet 0/0/0
Jul 13 2022 16:20:09-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.6.1 16.0.0.1 register R4:
[r4]int t 0/0/0
[r4-Tunnel0/0/0]ip ad 192.168.7.2 24
[r4-Tunnel0/0/0]tunnel-protocol gre p2mp
[r4-Tunnel0/0/0]source 46.0.0.1
Jul 13 2022 16:25:29-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r4-Tunnel0/0/0]nhrp network-id 101
[r4-Tunnel0/0/0]nhrp entry multicast d
[r4-Tunnel0/0/0]nhrp entry 192.168.7.3 56.0.0.1 register
[r4-Tunnel0/0/0]nhrp entry 192.168.7.1 161.0.0.1 register (其他路由器上上报过的可以省略)
Info: This peer protocol address conflicts with hub register peer protocol addre
ss.
R5:
[r5]int t 0/0/0
[r5-Tunnel0/0/0]ip ad 192.168.7.3 24
[r5-Tunnel0/0/0]tunnel-protocol gre p2mp
[r5-Tunnel0/0/0]source 56.0.0.1
Jul 13 2022 16:26:46-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r5-Tunnel0/0/0]nhrp network-id 101
[r5-Tunnel0/0/0]n e m d
3.,所有私有网段可以互相通讯,私有网段使用OSPF完成。
MGRE环境下接口ospf的网络类型需进行修改(如过不修改将无法建立邻接关系)
R1-R3接口改为p2mp,R1,R4,R5改为boardcast
R1(R2-R5配置均相似,略):
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]network 192.168.6.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]network 192.168.7.0 0.0.0.2554.实验结果验证:
MGRE结果:
网络连通性:

边栏推荐
- Two misunderstandings of digital transformation
- TiKV 线程池性能调优
- 延迟加载JS的方式
- LeetCode_17_电话号码的字母组合
- QT learning diary 17 - QT database
- Introduction and Simulation Implementation of string class
- 『牛客|每日一题』有效括号序列
- LeetCode刷题——查找和最小的 K 对数字#373#Medium
- Huawei firewall authentication technology
- Leetcode skimming -- find and minimum k-pair number 373 medium
猜你喜欢

Leetcode 1304. N different integers with zero and

MapGIS IGServer九州-驾驭国产化环境下的拓展服务开发

赋能城市“规、建、运、管、服”——MapGIS CIM平台探索“CIM+”多场景应用

聚焦绿色发展新赛道—MapGIS智慧环保解决方案发布

Flink

MAPGIS igserver Kyushu - expand service development under the control of localization environment

TCP congestion control details | 7 Surpass TCP

Will causal learning open the next generation of AI? Chapter 9 Yunji datacanvas officially released the open source project of ylarn causal learning

Cv02 Roge matrix, rotation vector, angle

Configure spectrum navigation for Huawei wireless devices
随机推荐
02-3. Difference between pointer and reference
Chapter 1 of creating virtual machine (vmvare virtual machine)
LeetCode_77_组合
TiKV Follower Read
Tiflash performance tuning
ZABBIX proxy server configuration
Leetcode 1328. Destroy palindrome string (yes, solved)
A simple websocket example
使用原生js实现按钮的全选功能,简单清晰
LeetCode_216_组合总和Ⅲ
QT -- excellent open source project
Will causal learning open the next generation of AI? Chapter 9 Yunji datacanvas officially released the open source project of ylarn causal learning
聚焦绿色发展新赛道—MapGIS智慧环保解决方案发布
Three. JS basic element usage
Redis分布式缓存-Redis集群
Leetcode 1252. 奇数值单元格的数目
Lychee sound quality high fidelity AI noise reduction technology sharing
百度文档翻译api
[multithreading] detailed explanation of JUC (callable interface, renntrantlock, semaphore, countdownlatch), thread safe set interview questions
Tikv memory parameter performance tuning