当前位置:网站首页>全连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 查询

测试


实验结束
边栏推荐
- (super detailed version, don't know to comment at any time) codeforces round 804 (Div. 2) C the third problem
- OSPF协议知识汇总
- OSPF的重发布及路由策略
- HCIA基础知识(1)
- HCIA动态路由OSPF实验
- C语言——二维数组、指针
- (前缀和/思维)Codeforces Round #806 (Div. 4)F. Yet Another Problem About Pairs Satisfying an Inequality
- HCIA (network elementary comprehensive experimental exercise)
- OSPF在MGRE环境下配置及LSA的优化---减少LSA更新量(汇总、特殊区域)
- 【C语言程序设计】分支结构
猜你喜欢

(title + detailed idea + annotated code) codeforces round 805 (Div. 3) F Equate Multisets

(前缀和/思维)Codeforces Round #806 (Div. 4)F. Yet Another Problem About Pairs Satisfying an Inequality

mgre的全连和星型拓扑实验

Nb-iot access to cloud platform

在有序数组找具体某个数字

Mechanical hard disk Selection Guide -- from the selection experience

NAT(网络地址转化协议)

NAT (network address translation protocol)

Dynamic routing rip protocol experiment

数字集成电路:MOS管器件章(一)
随机推荐
最新京东短信登录+傻妞机器人保姆级部署教程(2022/7/24)
入住博客第一天【冲八万】!
Influence of pre frequency division value and automatic reload value on interrupt frequency
(史上最详细)Codeforces Round #805 (Div. 3)E. Split Into Two Sets
OSPF basic configuration application (comprehensive experiment: interference election default routing area summary authentication -- interface authentication)
静态路由综合实验
STM32 introductory tutorial lesson 2
Error handling in golang
HCIA基础知识(1)
Lvs+keepalived project practice
数字集成电路:CMOS反相器(一)静态特性
Nb-iot access to cloud platform
Golang - sync包的使用 (WaitGroup, Once, Mutex, RWMutex, Cond, Pool, Map)
OSPF static experiment
数字集成电路:MOS管器件章(二)
JUC并发编程
Golang中的错误处理
Golang bufio Reader 源码详解
光光光仔的CSDN之旅
机械硬盘选购指南——从选购经历谈起