当前位置:网站首页>全连MGRE与星型拓扑MGRE
全连MGRE与星型拓扑MGRE
2022-07-26 22:50:00 【less than _ermi】
实验内容:

实验过程:
IP地址的规划及配置
IP配置(R4为例)
[r4]inter g0/0/0
[r4-GigabitEthernet0/0/0]ip add 21.1.1.2 24
[r4-GigabitEthernet0/0/0]inter g2/0/0
[r4-GigabitEthernet2/0/0]ip add 12.1.1.2 24
[r4-GigabitEthernet2/0/0]inter g0/0/1
[r4-GigabitEthernet0/0/1]ip add 31.1.1.2 24
[r4-GigabitEthernet0/0/1]inter g0/0/2
[r4-GigabitEthernet0/0/2]ip add 41.1.1.2 24
[r4-GigabitEthernet0/0/2]inter g4/0/0
[r4-GigabitEthernet4/0/0]ip add 51.1.1.2 24
[r4-GigabitEthernet4/0/0]inter g3/0/0
[r4-GigabitEthernet3/0/0]ip add 61.1.1.2 24
[r4]int LoopBack 0
[r4-LoopBack0]ip add 2.2.2.2 24
给各台路由器配置到R4的缺省,在进行NAT地址转换(以R1为例)
[r1]ip router-static 0.0.0.0 0 21.1.1.2
[r1]acl 2000
[r1-acl-basic-2000]rule permit source any
[r1-acl-basic-2000]int g0/0/1
[r1-GigabitEthernet0/0/0]nat outbound 2000搭建MGRE环境
R1\R2\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 21.1.1.1
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]nhrp network-id 100R2:
[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 31.1.1.1
[r2-Tunnel0/0/0]nhrp network-id 100
[r2-Tunnel0/0/0]nhrp entry 10.1.1.1 21.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 41.1.1.1
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 21.1.1.1 register 查询

R1\R5\R6全连网状MGRE搭建
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 12.1.1.1
[r1-Tunnel0/0/1]nhrp entry multicast dynamic
[r1-Tunnel0/0/1]nhrp network-id 110R5:
[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 61.1.1.1
[r5-Tunnel0/0/1]nhrp entry multicast dynamic
[r5-Tunnel0/0/1]nhrp network-id 110R6:
[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 51.1.1.1
[r6-Tunnel0/0/1]nhrp entry multicast dynamic
[r6-Tunnel0/0/1]nhrp network-id 110互相注册
[r1-Tunnel0/0/1]nhrp entry 10.1.2.2 61.1.1.1 register
[r1-Tunnel0/0/1]nhrp entry 10.1.2.3 51.1.1.1 register [r5-Tunnel0/0/1]nhrp entry 10.1.2.1 12.1.1.1 register
[r5-Tunnel0/0/1]nhrp entry 10.1.2.3 51.1.1.1 register [r6-Tunnel0/0/1]nhrp entry 10.1.2.1 12.1.1.1 register
[r6-Tunnel0/0/1]nhrp entry 10.1.2.2 61.1.1.1 register 查询

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
MGRE oSPF接口工作方式修改
将R1\R2\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 查询

测试


实验结束
边栏推荐
- First acquaintance with C language (1)
- OSPF configuration in mGRE environment and LSA optimization - reduce the amount of LSA updates (summary, special areas)
- Golang bufio Reader 源码详解
- OSPF协议知识汇总
- C语言——字符和字符串、算术运算符、类型转换
- RIP V2 的简单应用(v2的配置、宣告、手工汇总、RIPV2的认证、沉默接口、加快收敛)
- RS-485总线通信应用
- RISC-V工具链编译笔记
- 7.16 written examination of Duoyi network
- Tim output comparison - PWM
猜你喜欢

JUC并发编程

TCP's three handshakes and four waves (brief introduction)

静态路由基础配置(IP地址的规划、静态路由的配置),实现全网可达。

Test and open basic daily question brushing (continuous updating...)

数字芯片的面积优化:第三届“华为杯”研究生创芯大赛数字方向上机题1详解

睡不着时闭眼躺着,到底有没有用?

Tcp的三次握手与四次挥手

2022zui new Tiktok 24-hour round robin live broadcast monitoring (I) live broadcast room start-up monitoring

Dynamic routing rip protocol experiment

Lora通信应用开发
随机推荐
Codeforces Round #796 (Div. 2), problem: (1688C) Manipulating History
Lesson 5 - key control LED
TCP的三次握手与四次断开
离开页面的提示
VLAN原理简述、具体实验配置
RIP V2 的简单应用(v2的配置、宣告、手工汇总、RIPV2的认证、沉默接口、加快收敛)
CAN总线通信应用
OSPF的重发布及路由策略
HandsomeForum学习论坛
Codeforces Round #810 (Div. 2), problem: (B) Party
CF 1333C Eugene and an array
OSPF在MGRE环境下配置及LSA的优化---减少LSA更新量(汇总、特殊区域)
7.8 Ruijie online written examination
数字集成电路:MOS管器件章(二)
Error handling in golang
C语言——while语句、dowhile语句、for循环和循环结构、break语句和continue语句
Brief introduction of VLAN principle and specific experimental configuration
Explain exi interrupt through the counting experiment of infrared sensor
有趣的C语言
动态路由rip协议实验