当前位置:网站首页>OSPF在MGRE环境下的实验
OSPF在MGRE环境下的实验
2022-07-26 22:48:00 【不大聪明¿】
实验要求:

IP地址的规划及其配置
按照下图进行IP地址配置

R1

R2

R3

R4

R5

R6

实现可访问公网
首先每台路由器写一条到R4的缺省路由,以R1为例

再进行NAT地址转换

搭建MGRE环境
R1-2-3星型结构MGRE搭建(R1为中心站点)
R1
[R1]int 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 41.1.1.1
[R1-Tunnel0/0/0]nhrp entry multicast dynamic
[R1-Tunnel0/0/0]nhrp network-id 100
R2
[R2]int t0/0/0
[R2-Tunnel0/0/0]ip add 10.1.1.2 24
[R2-Tunnel0/0/0]tunnel-protocol gre p2mp
[R2-Tunnel0/0/0]source g0/0/1
[R2-Tunnel0/0/0]nhrp entry 10.1.1.1 41.1.1.1 register
[R2-Tunnel0/0/0]nhrp network-id 100
R3
[R3]int t0/0/0
[R3-Tunnel0/0/0]ip add 10.1.1.3 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source g0/0/1
[R3-Tunnel0/0/0]nhrp entry 10.1.1.1 41.1.1.1 register
[R3-Tunnel0/0/0]nhrp network-id 100
检测
[r1]display nhrp peer all

R1-5-6全连网状MGRE搭建(R1 R5均为中心区域)
R1
[R1]int 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 14.1.1.1
[R1-Tunnel0/0/1]nhrp entry multicast dynamic
[R1-Tunnel0/0/1]nhrp network-id 110
R5
[R5]int 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 g0/0/1
[R5-Tunnel0/0/1]nhrp entry multicast dynamic
[R5-Tunnel0/0/1]nhrp network-id 110
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 g0/0/1
[R6-Tunnel0/0/1]nhrp entry 10.1.2.1 14.1.1.1 register
[R6-Tunnel0/0/1]nhrp entry 10.1.2.2 45.1.1.1 register
检测
[r5]display nhrp peer all

OSPF宣告
R1
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[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 192.168.1.0 0.0.0.255
R2
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
R3
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
R5
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 0[R5-ospf-1-area-0.0.0.0]network 192.168.4.0 0.0.0.255
[R5-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
R6
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]area 0
[R6-ospf-1-area-0.0.0.0]network 192.168.5.0 0.0.0.255
[R6-ospf-1-area-0.0.0.0]network 10.1.2.0 0.0.0.255
MGRE环境中,OSPF接口工作方式修改
R1-2-3星型结构修改为p2mp类型
R1
[R1]int t0/0/0
[R1-Tunnel0/0/0]ospf network-type p2mp
R2
[R2]int t0/0/0
[R2-Tunnel0/0/0]ospf network-type p2mp
R3
[R3]int t0/0/0
[R3-Tunnel0/0/0]ospf network-type p2mp
R1-5-6全连网状结构修改为broadcast类型
R1
[R1]int t0/0/1
[R1-Tunnel0/0/1]ospf network-type broadcast
R5
[R5]int t0/0/1
[R5-Tunnel0/0/1]ospf network-type broadcast
R6
[R6]int t0/0/1
[R6-Tunnel0/0/1]ospf network-type broadcast
检测
<R1>display ospf peer brief

<R1>display ip routing-table protocol ospf

最后再用电脑测试

边栏推荐
- Introduction to network - Introduction to Enterprise Networking & basic knowledge of network
- JS 99 multiplication table
- 解决方案:炼丹师养成计划 Pytorch+DeepLearning遇见的各种报错与踩坑避坑记录(一)
- Js九九乘法表
- Transport layer --------- TCP (II)
- js求最大值?
- [translation] reduced precision in tensorrt
- Hash索引和B+树相关知识
- Text to image intensive reading of paper gr-gan: gradually refine text to image generation
- 6.28大华笔试
猜你喜欢

MySQL view

Atcoder D - increment of coins (probability DP)

Talking about server virtualization & hyper convergence & Storage

Shell programming specifications and variables

科学计算库 —— Matplotlib

25pxe efficient batch network installation

Merge sort (recursive and non recursive writing)

力扣获取第二大的成绩

mysql优化概论

第五讲—按键控制LED
随机推荐
解决方案:读取两个文件夹里不同名的文件,处理映射不对应的文件
Initial experience of cloud database management
introduction
[详解C语言]一文带你认识C语言,让你醍醐灌顶
MySQL master-slave replication and read-write separation
D - Difference HDU - 5936
Run NPM run dev to run 'NPM audit fix' to fix them, or 'NPM audit' for details
MySQL backup recovery
25pxe efficient batch network installation
[reprint] 6. Tensorrt advanced usage
Machine learning exercise 7 - K-means and PCA (principal component analysis)
6.30滴滴面经(一面+二面)
Text to image论文精读RAT-GAN:文本到图像合成中的递归仿射变换 Recurrent Affine Transformation for Text-to-image Synthesis
测开基础 日常刷题 (持续更新ing...)
关于编程的自我介绍和规划
[translation] explicit and implicit batch in tensorrt
详解文本生成图像的仿射变换模块(Affine Transformation)和条件批量标准化(CBN)
2022zui新抖音24小时循环值守直播监控(一)直播间开播监控
Solution: various error reports and pit stepping and pit avoidance records encountered in the alchemist cultivation plan pytoch+deeplearning (II)
Share 29 chrome plug-ins, and there is always one for you