当前位置:网站首页>OSPF comprehensive experiment in hcip-mgre environment
OSPF comprehensive experiment in hcip-mgre environment
2022-07-23 12:52:00 【Newcomer_ L】

Experimental thinking
1、R6 For operators , So will R6 All around are set as public addresses
2、R1/4/5 Bit all connected MGRE structure ,R1,R4,R5 It is the central site , It is also a branch site ,R1/2/3 Is a star topology , It's also MGRE structure , Only need to R1 As a central site ,2/3 For the certified party
3、 Create private network segment , Use OSPF Declare that the whole network can reach ,R1/2/3 The network type needs to be set to p2mp,R1/4/5 Set to broadcast.
Experimental process
1. To configure IP Address and make the default route
R1:
[r1]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip add 16.0.0.1 24
[r1-GigabitEthernet0/0/1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 116.0.0.1 24
[r1-GigabitEthernet0/0/1]int l0
[r1-LoopBack0]ip add 192.168.1.1 24
[r1]ip route-static 0.0.0.0 0 16.0.0.2
[r1]ip route-static 0.0.0.0 0 116.0.0.2

R2:
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip add 26.0.0.1 24
[r2-GigabitEthernet0/0/0]int l0
[r2-LoopBack0]ip add 192.168.2.1 24
[r2]ip route-static 0.0.0.0 0 26.0.0.2

R3:
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip add 36.0.0.1 24
[r3-GigabitEthernet0/0/0]int l0
[r3-LoopBack0]ip add 192.168.3.1 24
[r3]ip route-static 0.0.0.0 0 36.0.0.2

R4:
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ip add 46.0.0.1 24
[r4-GigabitEthernet0/0/0]int l0
[r4-LoopBack0]ip add 192.168.4.1 24
[r4]ip route-static 0.0.0.0 0 46.0.0.2

R5:
[r5]int g 0/0/0
[r5-GigabitEthernet0/0/0]ip add 56.0.0.1 24
[r5-GigabitEthernet0/0/0]int l0
[r5-LoopBack0]ip add 192.168.5.1 24
[r5]ip route-static 0.0.0.0 0 56.0.0.2

ISP:
[ISP]int g 0/0/1
[ISP-GigabitEthernet0/0/1]ip add 16.0.0.2 24
[ISP-GigabitEthernet0/0/1]int g 0/0/0
[ISP-GigabitEthernet0/0/0]ip add 116.0.0.2 24
[ISP-GigabitEthernet0/0/0]int g 0/0/2
[ISP-GigabitEthernet0/0/2]ip add 26.0.0.2 24
[ISP-GigabitEthernet0/0/2]int g 2/0/0
[ISP-GigabitEthernet2/0/0]ip add 36.0.0.2 24
[ISP-GigabitEthernet2/0/0]int g 3/0/0
[ISP-GigabitEthernet3/0/0]ip add 46.0.0.2 24
[ISP-GigabitEthernet3/0/0]int g 4/0/0
[ISP-GigabitEthernet4/0/0]ip add 56.0.0.2 24

2. Make a star topology
R1:
[r1]int Tunnel 0/0/0 Create a tunnel interface
[r1-Tunnel0/0/0]ip add 2.2.2.1 24 To configure IP Address
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp establish MGRE structure
[r1-Tunnel0/0/0]source 16.0.0.1 Source IP
[r1-Tunnel0/0/0]nhrp network-id 100 Create a domain , Put all the goals IP Add it to the domain
[r1-Tunnel0/0/0]nhrp entry multicast dynamic Enable pseudo broadcast

R2:
[r2]int Tunnel 0/0/0 Create a tunnel interface
[r2-Tunnel0/0/0]ip add 2.2.2.2 24 To configure IP Address
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp establish MGRE structure
[r2-Tunnel0/0/0]source GigabitEthernet 0/0/0 Source out interface
[r2-Tunnel0/0/0]nhrp network-id 100 Add to 100 In the domain of
[r2-Tunnel0/0/0]nhrp entry 2.2.2.1 16.0.0.1 register Go to the center to register , Add the virtual interface address and physical interface address of the central site

R3:
[r3]int Tunnel 0/0/0 Create a tunnel interface
[r3-Tunnel0/0/0]ip add 2.2.2.3 24 To configure IP Address
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp establish MGRE structure
[r3-Tunnel0/0/0]source GigabitEthernet 0/0/0 Source out interface
[r3-Tunnel0/0/0]nhrp network-id 100 Add to 100 In the domain of
[r3-Tunnel0/0/0]nhrp entry 2.2.2.1 16.0.0.1 register Go to the center to register , Add the virtual interface address and physical interface address of the central site
![]()
3. Production company MGRE structure
R1:
[r1]int Tunnel 0/0/1 Create a tunnel interface
[r1-Tunnel0/0/1]ip add 1.1.1.1 24 To configure IP Address
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp establish MGRE structure
[r1-Tunnel0/0/1]source 116.0.0.1 Source IP
[r1-Tunnel0/0/1]nhrp network-id 110 Create a new domain as 110
[r1-Tunnel0/0/1]nhrp entry multicast dynamic Enable pseudo broadcast
[r1-Tunnel0/0/1]nhrp entry 1.1.1.2 46.0.0.1 register With R4 Register for the center
[r1-Tunnel0/0/1]nhrp entry 1.1.1.3 56.0.0.1 register With R5 Register for the center
R4:
[r4]int Tunnel 0/0/0 Create a tunnel interface
[r4-Tunnel0/0/0]ip add 1.1.1.2 24 To configure IP Address
[r4-Tunnel0/0/0]tunnel-protocol gre p2mp establish MGRE structure
[r4-Tunnel0/0/0]source 46.0.0.1 Source IP
[r4-Tunnel0/0/0]nhrp network-id 110 Add to the new domain as 110
[r4-Tunnel0/0/0]nhrp entry multicast dynamic Enable pseudo broadcast
[r4-Tunnel0/0/0]nhrp entry 1.1.1.1 116.0.0.1 register With R1 Register for the center
[r4-Tunnel0/0/0]nhrp entry 1.1.1.3 56.0.0.1 register With R5 Register for the center
R5:
[r5]int Tunnel 0/0/0 Create a tunnel interface
[r5-Tunnel0/0/0]ip add 1.1.1.3 24 To configure IP Address
[r5-Tunnel0/0/0]tunnel-protocol gre p2mp establish MGRE structure
[r5-Tunnel0/0/0]source 56.0.0.1 Source IP
[r5-Tunnel0/0/0]nhrp network-id 110 Add to the new domain as 110
[r5-Tunnel0/0/0]nhrp entry multicast dynamic Enable pseudo broadcast
[r5-Tunnel0/0/0]nhrp entry 1.1.1.1 116.0.0.1 register With R1 Register for the center
[r5-Tunnel0/0/0]nhrp entry 1.1.1.2 46.0.0.1 register With R4 Register for the center
4. The whole network can reach
Conduct OSPF Declare , take R1/2/3 The same tunnel interface of is modified as P2MP The Internet , because R1/2/3 Unwanted DR/BDR The election , But you need to learn the other side's route , take R1/4/5 The same tunnel interface of is modified as network Broadcast, need DR/BDR The election , We also have to realize the neighbor relationship
R1:
[r1]ospf 1 router-id 1.1.1.11 Set up RID by 1.1.1.11
[r1-ospf-1]area 0 Get into area 0
[r1-ospf-1-area-0.0.0.0]network 1.1.1.0 0.0.0.255 Declare
[r1-ospf-1-area-0.0.0.0]network 2.2.2.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[r1]int Tunnel 0/0/0 Get into 0/0/0 Tunnel
[r1-Tunnel0/0/0]ospf network-type p2mp The modification type is p2mp
[r1]int Tunnel 0/0/1 Get into 0/0/1 Tunnel
[r1-Tunnel0/0/1]ospf network-type broadcast The modification type is broadcast
R2:
[r2]ospf 1 router-id 2.2.2.22 Set up RID by 1.1.1.11
[r2-ospf-1]area 0 Get into area 0
[r2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255 Declare
[r2-ospf-1-area-0.0.0.0]network 2.2.2.0 0.0.0.255
[r2]int Tunnel 0/0/0 Enter the tunnel
[r2-Tunnel0/0/0]ospf network-type p2mp The modification type is p2mp
R3:
[r3]ospf 1 router-id 3.3.3.33
[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 2.2.2.0 0.0.0.255
[r3]int Tunnel 0/0/0
[r3-Tunnel0/0/0]ospf network-type p2mp
R4:
[r4]ospf 1 router-id 4.4.4.44
[r4-ospf-1]area 0
[r4-ospf-1-area-0.0.0.0]net 192.168.4.0 0.0.0.255
[r4-ospf-1-area-0.0.0.0]network 1.1.1.0 0.0.0.255
[r4]int Tunnel 0/0/0
[r4-Tunnel0/0/0]ospf network-type broadcast
R5:
[r5]ospf 1 router-id 5.5.5.55
[r5-ospf-1]area 0
[r5-ospf-1-area-0.0.0.0]network 192.168.5.0 0.0.0.255
[r5-ospf-1-area-0.0.0.0]network 1.1.1.0 0.0.0.255
[r5]int Tunnel 0/0/0
[r5-Tunnel0/0/0]ospf network-type broadcast
Four 、 testing
R1:

R2:
R3:
边栏推荐
- 学习日记——(路由与交换技术)动态路由(rip协议)和静态路由
- MySQL性能优化,索引优化
- SQL server performance analysis, view slow queries
- Analysis ideas of strong consistency and weak consistency and concurrency skills of distributed scenarios
- Unity3d:ugui, UI and special effect particle level, bakemesh above 2018.2, particles between two images and in Scrollview
- HCIP---OSPF细节讲解
- 学习日记——(路由与交换技术)网络地址转换 NAT技术
- 详解各种网络协议
- 浅做一下思科实验吧!
- 0动态规划 LeetCode918. 环形子数组的最大和
猜你喜欢

如何用普通的文本编辑器写Web页面

Hcip - first experiment

Hcip - HDLC and PPP protocols

Hcip--- BGP related configuration (Federal chapter)

MySQL performance optimization, index optimization

C #: TOPK: take the largest 100 before 10000 numbers, and sort the heap

Unity3d:ugui source code eventsystem input system FAQ

DHCP second experiment

Unity3D高清渲染管线无法在模型上播放视频

学习日记——(路由与交换技术)DHCP(动态主机配置协议)
随机推荐
Unity3d: special effect object pool, timeout delete GameObject in the pool, GC weight
[fee of AUTOSAR (difference between nonvolatile memory flash and EEPROM)]
OSPF routing strategy and Traffic Capture
学习日记——(路由与交换技术)网络地址转换 NAT技术
Explain various network protocols in detail
以go语言为例类比侦探推理来讲解【性能分析】
剖析Redis中的Sentinel模式
Analyze redis server
HCIP---MGRE环境下的OSPF综合实验
unity3d:UGUI源码EventSystem输入系统常见问题
HCIP-HCIA知识回顾(二)
How to solve too many if statements
Homework of the fifth week
OSPF综合实验
详解TCP连接的建立
0双指针 LeetCode844. 比较含退格的字符串
GameFramework:Resource加载,资源加载,依赖加载,任务池,对象池,引用计数
剖析Redis集群
Explanation of websocket protocol
Unity3d:UGUI源码,Rebuild优化







