当前位置:网站首页>Comprehensive experiment of realizing private network interworking under mGRE environment
Comprehensive experiment of realizing private network interworking under mGRE environment
2022-07-23 10:46:00 【Yunsheng】
1. Topology :

2. The experimental requirements :
(1)R4 by ISp, All physical interfaces connected are public network segments , Arbitrarily specify IP that will do
(2)R1-2-3, Build a star structure MGRE Interface , among R1 For the center , hypothesis R1 Of public ownership IP Is the inherent address
(3)R1-5-6 Build another fully trained mesh MGRE The Internet , among R1/5 All are central areas ;
(4) Use OSPF Realize the interworking of the whole private network , All at the same time PC Normal access R4 The loopback of
3. Experimental thinking :
(1) Configure the IP Address , Write default ,NAT( And R4 Sure ping through ).
(2) Configure each router according to the requirements of the topic ( Realization MGRE Network structure ).
(3)ospf The regional division of (R1,R2,R3, Is the region 0)(R1,R5,R6 Is area one ), Loopback configuration
(4) Test the interworking of private networks
4. Configuration command :
Every router IP Configuration of :( With R1,R4 For example )


Write default and NAT:( With R1 For example )
notes :
because R1 There are two physical interfaces , So there are two default commands .

To configure MGRE Environmental Science (R1,R2,R3 It is a star structure ,R1,R5, R6 It is an interconnected mesh )
R1,R5, R6 It is an interconnected mesh ,R1,R5 All centered , Therefore, the following configuration is required :


notes :
R4 Analog operator , So do not configure it ,R1 Because under two network structures , So we should establish two Tunnel mouth .




stay R1 Upper detection NHRP:

OSPF Configuration of :
notes :
Two regions ,ABR yes R1
of MGRE Knowledge , You can learn through my other blog http://t.csdn.cn/qdyDY.
Basic knowledge , You can go through http://t.csdn.cn/8ocRs To study
//
R1 There are two areas (area0,area1)

Configuration of other routers ;
R2
R3

R5

R6

test :
PC 1 ping R4 Loopback ,pc1 ping pc 6

pc 1 ping pc 5

pc 3 ping pc6 , as well as R4 The loopback of
Add :
Multipoint GRE -- Belong to NBMA The Internet
If you use point-to-point GRE In the case of multiple nodes , To form a VPN Environmental Science ;VPN Number 、 Number of network segments 、 Fix ip Number 、 The number of routing entries increases exponentially with the increase of nodes ;
MGRE --- All nodes have the same MA Network segment ; And for the center to site structure ; In this structure , By default, only the central site needs to be fixed public ip Address ; The branch site address can be changed ;--- Greatly reduce the management difficulty , Resource occupancy , cost ;
NHRP: Next hop path discovery protocol ; There are server and client ; The server needs to be fixed and public ip Address , client ip The address is variable ; The client is locally public ip After change , Actively register with the server ; Server generation MAP,
MAP Record the public of the client ip And tunnel Of ip Address correspondence ; If other clients need to access another client , You can download this from the server MAP;
MRGE The environment is NBMA Environmental Science , stay NBMA Environment , Broadcast not supported 、 Flooding mechanism ; If broadcast message forwarding is required , Pseudo broadcasting rules can be used for reference , Unicast forwarding to all nodes of the network segment ; To achieve the broadcasting effect ;
Central site configuration
interface Tunnel0/0/0 establish tunnel mouth
ip address 10.1.1.1 255.255.255.0 Configure interface ip Address
tunnel-protocol gre p2mp First modify the interface mode to multipoint GRE
source 15.1.1.1 Redefine the public source IP Address
nhrp entry multicast dynamic Local become NHRP center , At the same time, pseudo broadcasting can be carried out
nhrp network-id 100 The default is 0 Number , All nodes in the network segment tunnel The interface must be the same domain
Pseudo broadcast — When the target IP When the address is a multicast or broadcast address , Unicast traffic once per user ; The outer header is unicast header , The inner header is multicast or broadcast header ; This function is not enabled , The dynamic routing protocol based on multicast and broadcast will not work normally ;
[r1]dis nhrp peer all View branch site registration results
Branch site :
interface Tunnel0/0/0
ip address 10.1.1.2 255.255.255.0
tunnel-protocol gre p2mp
source GigabitEthernet0/0/2 Suppose the branch site ip The address is not fixed
nhrp network-id 100
nhrp entry 10.1.1.1 15.1.1.1 register The branch needs to register with the central site
If all tunnel Corresponding public ip All are fixed ip Address , You can make each router a central site , Both rooms are registered manually ;
It can form a fully connected network topology ;---rip This protocol with horizontal segmentation mechanism can converge normally ;
When the topology is central to the site ( Radial 、 Star type )--- Not all outlets are fixed public ip, Not all tunnel Devices register with each other ; The normal convergence of the whole network can only be realized by turning off horizontal segmentation ;
[r1-Tunnel0/0/0]undo rip split-horizon
Xiaobian's creation is not easy , Thank you for your support , I hope it can help you who are working hard !!
What's the problem? , Feel free to leave a comment !
边栏推荐
- IO应知应会
- Ue5 official case Lyra full feature explanation 6. generate defense tower
- 12 个适合做外包项目的开源后台管理系统
- Chapter 4 Executing Commands
- HoloLens第三视角开发【保姆级教程】【踩坑记录】
- Visual Studio 2022有趣又强大的智能辅助编码
- kex_ exchange_ Identification: read: connection reset by peer imperfect solution (one)
- nacos限流查询的脚本
- 写驱动程序的时候warning LNK4210报错
- Interest rate in installment payment
猜你喜欢

8 < tag dynamic programming and LCS problems > lt.300. Longest increasing subsequence + lt.674. Longest continuous increasing sequence

Idea integrated sonar complete process

Information security is in danger, and it is urgent to control the leakage of enterprise data assets

Meituan's 8-year experience on how to improve test engineers (automation, performance, test development)

Cs5266+ma8621 do the scheme design of typec to hdmi+pd+u3+2u+sd/tf seven in one expansion dock | cs5266 multi port expansion dock pcb+ schematic diagram reference

Redis pseudo cluster one click deployment script - pro test available

PXE远程安装和Kickstart无人值守安装 技术文档

SQLZOO——SELECT Quiz

低代码平台搭建医药企业供应商、医院、患者等多方协同管理案例分析

linux:数据库连接
随机推荐
linux:数据库连接
LeetCode刷题--点滴记录023
No routines, no traps, no advertisements | are you sure you don't need this free instant messaging software?
SQLZOO——SELECT Quiz
C语言基础知识梳理(一)
【Warning】YOLOV5训练时的ignoring corrupt image/label: [Errno 2].....,无法全部训练数据集,快速带你解决它
How Alibaba cloud resolves a domain name to another domain name
PyQt5_pyqtgraph鼠标在折线图上画线段
mysql log理解
Meituan's 8-year experience on how to improve test engineers (automation, performance, test development)
Network data leakage events occur frequently, how to protect personal privacy information?
PXE远程安装和Kickstart无人值守安装 技术文档
CLion + MinGW64配置C语言开发环境 Visual Studio安装
Compile build tool -bazel
selenium JD爬虫
7. < tag dynamic programming and stock trading Collection> lt.121. The best time to buy and sell stocks + lt.122. The best time to buy and sell stocks II + lt.123. The best time to buy and sell stocks
阿里云如何将一个域名解析到另一个域名上
Chrome selenium uses the default profile without emptying it every time
千亿营收之后,阿里云生态有了新打法
MySQL query optimization - detailed explanation