当前位置:网站首页>mgre的全连和星型拓扑实验
mgre的全连和星型拓扑实验
2022-07-26 22:48:00 【愤愤的卷毛】
完成下图实验所需所有要求
第一步:子网划分
我们将上述实验的网段划分如下图所示

第二步:ip地址配置
r1:

r2:

r3:
r4:

r5:
r6:
第三步:nat地址转化 缺省路由
缺省路由:
以r1为例
[r1]ip router-static 0.0.0.0 0 14.1.1.2
nat地址转化:以r2为例
[r]acl 2000
[r2-acl-basic-2000]rule permit source any
[r2-acl-basic-2000]int g0/0/1
[r2-GigabitEthernet0/0/0]nat outbound 2000
注意!!!在r1上有两根网线都需要分别配置各自的接口达到负载均衡
第四步:搭建mgre
R1-R3星型拓扑MGRE搭建(r1为中心)
r1:
[r1]inter t0/0/0
[r1-Tunnel0/0/0]ip add 10.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 14.1.1.1
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]nhrp network-id 100
r2:
[r2]inter t0/0/0
[r2-Tunnel0/0/0]ip add 10.1.1.2 255.255.255.0
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]source 24.1.1.1
[r2-Tunnel0/0/0]nhrp network-id 100
[r2-Tunnel0/0/0]nhrp entry 10.1.1.1 14.1.1.1 register
r3:
[r3]inter t0/0/0
[r3-Tunnel0/0/0]ip add 10.1.1.3 255.255.255.0
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source 34.1.1.1
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 14.1.1.1 register
R1,R5,R6全连拓扑MGRE搭建(r1,r5都为认证注册的一方)
r1:
[r1]inter t0/0/1
[r1-Tunnel0/0/1]ip add 10.1.2.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]source 41.1.1.1
[r1-Tunnel0/0/1]nhrp entry multicast dynamic
[r1-Tunnel0/0/1]nhrp network-id 200[r1-Tunnel0/0/1]nhrp 10.1.2.2 54.1.1.1 register
r5:
[r5]inter t0/0/1
[r5-Tunnel0/0/1]ip add 10.1.2.2 24
[r5-Tunnel0/0/1]tunnel-protocol gre p2mp
[r5-Tunnel0/0/1]source 54.1.1.1
[r5-Tunnel0/0/1]nhrp entry multicast dynamic
[r5-Tunnel0/0/1]nhrp network-id 110[r5-Tunnel0/0/1]nhrp 10.1.2.1 41.1.1.1 register
r6:
[r6]int t0/0/1
[r6-Tunnel0/0/1]ip add 10.1.2.3 24
[r6-Tunnel0/0/1]tunnel-protocol gre p2mp
[r6-Tunnel0/0/1]source g/0/0
[r6-Tunnel0/0/1]nhrp entry multicast dynamic
[r6-Tunnel0/0/1]nhrp network-id 110[r6-Tunnel0/0/1]nhrp 10.1.2.1 41.1.1.1 register
[r6-Tunnel0/0/1]nhrp 10.1.2.2 54.1.1.1 register
配置完成之后我们可以查看nhrp邻居来查看是否出错
(以r1为例)
[r1]display nhrp peer all

第五步:进行宣告
ospf的宣告:
(以r1为例)
[r1]ospf 1 router-id 1.1.1.1
[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 10.1.1.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]network 10.1.2.0 0.0.0.255
第六步:修改ospf接口类型为network-type
修改r1-r3 接口类型为p2mp
[r1]int t0/0/0
[r1-Tunnel0/0/0]ospf network-type p2mp
修改r1,r5,r6接口类型为broadcast
[r5]int t0/0/1
[r5-Tunnel0/0/1]ospf network-type broadcast
[r1]display ospf peer bief 查看ospf邻居简表

第七步:测试
使用pc 段测试是否完成实验

实验 完成
边栏推荐
- Atcoder D - increment of coins (probability DP)
- STM32入门教程第二讲
- 索引失效原理讲解及其常见情况
- Machine learning exercise 7 - K-means and PCA (principal component analysis)
- DF-GAN实验复现——复现DFGAN详细步骤 及使用MobaXtem实现远程端口到本机端口的转发查看Tensorboard
- 关于在VS2022或者高级版本运行环境下遇到fopen,strerror等不安全的问题
- 三种能有效融合文本和图像信息的方法——特征拼接、跨模态注意、条件批量归一化
- Es specify user name and password when instantiating resthighlevelclient
- JS max?
- ViTGAN:用视觉Transformer训练生成性对抗网络 Training GANs with Vision Transformers
猜你喜欢
![[详解C语言]一文带你认识C语言,让你醍醐灌顶](/img/37/205c1c6eb2ba704941e48ff89c6268.png)
[详解C语言]一文带你认识C语言,让你醍醐灌顶

OSPF协议知识汇总
![[volatile principle] volatile principle](/img/d4/adb4b43aaccecd506065ce838c569e.png)
[volatile principle] volatile principle

Docker advanced: detailed explanation of MySQL master-slave replication and redis cluster capacity expansion and reduction configuration cases

--Project summary

机器学习概述

【mysql】mysql启动关闭命令以及一些报错解决问题

STM32入门教程第一讲

事务数据库及其四特性,原理,隔离级别,脏读,幻读,不可重复读?

科学计算库 —— Numpy
随机推荐
2022最新抖音直播监控(二)直播间流媒体下载
Connect mysql detailed graphic operations in ECs docker (all)
Introduction to network - Introduction to home networking & basic network knowledge
Removal and addition of reference types in template and generic programming
Text to image paper intensive reading rat-gan: recursive affine transformation for text to image synthesis
Machine learning exercise 7 - K-means and PCA (principal component analysis)
Enumerated valueof() method stepping on the pit
索引失效原理讲解及其常见情况
Text to image论文精读GR-GAN:逐步细化文本到图像生成 GRADUAL REFINEMENT TEXT-TO-IMAGE GENERATION
shell课程总结
JS 99 multiplication table
Js九九乘法表
[reprint] GPU compute capability table
【volatile原理】volatile原理
指针常量与常量指针详细讲解
Vitgan: training Gans with vision transformers
Hash索引和B+树相关知识
关于编程的自我介绍和规划
预分频值和自动重装值对中断频率的影响
Mysql database - interview questions
