当前位置:网站首页>MPLS experiment
MPLS experiment
2022-07-06 06:57:00 【HiCAIJI】
The questions are as follows :

The topology is as follows :

experimental analysis :
1. First of all, we should put the public network, that is R2 R3 R4 R7 Between IP And route configuration , however R7 The client side. , So we need to give R4 Set up a silent interface , And in R7 Write one to R4 The default route for :
R2:


R3:


R4:


R7:


At this time, our public network can be interconnected , We can do it in R7 On PING once 2.2.2.2:

2. After the public network can be interconnected , We need to start MPLS service , To create VRF Space :
[R2]mpls lsr-id 2.2.2.2
[R2]mpls
[R2-mpls]mpls ldp
[R2-mpls-ldp]int g0/0/0
[R2-GigabitEthernet0/0/0]mpls
[R2-GigabitEthernet0/0/0]mpls ldp
[R3]mpls lsr-id 3.3.3.3
[R3] mpls
[R3-mpls] mpls ldp
[R3-mpls-ldp]int g0/0/1
[R3-GigabitEthernet0/0/1] mpls
[R3-GigabitEthernet0/0/1] mpls ldp
[R3-GigabitEthernet0/0/1]int g0/0/0
[R3-GigabitEthernet0/0/0] mpls
[R3-GigabitEthernet0/0/0] mpls ldp
[R4]mpls lsr-id 4.4.4.4
[R4] mpls
[R4-mpls] mpls ldp
[R4-mpls-ldp]int g0/0/1
[R4-GigabitEthernet0/0/1] mpls
[R4-GigabitEthernet0/0/1] mpls ldp
So our MPLS The environment is set up . Next we can go to R2 R4 Do on VRF There's space :
[R2]ip vpn-instance b1
[R2-vpn-instance-b1]ipv4-family
[R2-vpn-instance-b1-af-ipv4]route-distinguisher 1:1
[R2-vpn-instance-b1-af-ipv4]vpn-target 1:1
[R2]ip vpn-instance a1
[R2-vpn-instance-a1]ipv4-family
[R2-vpn-instance-a1-af-ipv4]route-distinguisher 2:2
[R2-vpn-instance-a1-af-ipv4]vpn-target 2:2
[R4]ip vpn-instance b2
[R4-vpn-instance-b2]ipv4-family
[R4-vpn-instance-b2-af-ipv4]route-distinguisher 1:1
[R4-vpn-instance-b2-af-ipv4]vpn-target 1:1
[R4]ip vpn-instance a2
[R4-vpn-instance-a2]ipv4-family
[R4-vpn-instance-a2-af-ipv4]route-distinguisher 2:2
[R4-vpn-instance-a2-af-ipv4]vpn-target 2:2
So we can create two spaces ; We need to bind these two spaces to two interfaces and configure IP Address :
[R2-GigabitEthernet0/0/1]ip binding vpn-instance b1
[R2-GigabitEthernet0/0/1]ip address 192.168.2.2 24
[R2-GigabitEthernet0/0/2]ip binding vpn-instance a1
[R2-GigabitEthernet0/0/2]ip address 192.168.2.2 24
[R4-GigabitEthernet0/0/0]ip binding vpn-instance b2
[R4-GigabitEthernet0/0/0]ip address 192.168.3.1 24
[R4-GigabitEthernet0/0/2]ip binding vpn-instance a2
[R4-GigabitEthernet0/0/2]ip address 192.168.3.1 24
And then we were in R2 R4 Build a MP-BGP neighbor :
[R2]bgp 1
[R2-bgp]router-id 2.2.2.2
[R2-bgp]peer 4.4.4.4 as-number 1
[R2-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[R2-bgp]ipv4-family vpnv4
[R2-bgp-af-vpnv4]peer 4.4.4.4 enable
[R4-bgp]router-id 4.4.4.4
[R4-bgp]peer 2.2.2.2 as-number 1
[R4-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R4-bgp]ipv4-family vpnv4
[R4-bgp-af-vpnv4]peer 2.2.2.2 enable
So far, all configurations of our public network have been completed .
3. Next is the configuration of customer network segment :
The private network IP:
R1:

R5:

R6:

R7:

4. We will first A1 A2 For internal use RIP And OSPF Get through , Through BGP Two way republication and mutual learning routing
A1:
[R6]rip 1
[R6-rip-1]ver 2
[R6-rip-1]network 192.168.1.0
[R6-rip-1]network 192.168.2.0
[R2]rip 1 vpn-instance a1
[R2-rip-1]ver 2
[R2-rip-1]network 192.168.2.0
Then we can go to R2 Take a look VPN Routes in space :

A2:
[R7]ospf 1 router-id 7.7.7.7
[R7-ospf-1]area 0
[R7-ospf-1-area-0.0.0.0]network 192.168.3.2 0.0.0.0
[R7-ospf-1-area-0.0.0.0]network 192.168.4.2 0.0.0.0
[R4]ospf 2 vpn-instance a2
[R4-ospf-2]area 0
[R4-ospf-2-area-0.0.0.0]network 192.168.3.1 0.0.0.0
We will in R4 Take a look VPN Routes in space :

And then we can go in R2 R4 Two way republishing on :
R2:
[R2]rip 1 vpn-instance a1
[R2-rip-1]import-route bgp
[R2-rip-1]q
[R2]bgp 1
[R2-bgp]ipv4-family vpn-instance a1
[R2-bgp-a1]import-route rip 1
R4:
[R4-bgp]ipv4-family vpn-instance a2
[R4-bgp-a2]import-route ospf 2
[R4-bgp-a2]q
[R4-bgp]q
[R4]ospf 2 vpn-instance a2
[R4-ospf-2]import-route bgp
We are R6 R7 Take a look at the routing table :


We can see R6 R7 Have learned each other's routing ; We are R6 On can PING once 192.168.4.2

Then we A1 A2 Regional MPLS VPN Just set it up .
5.B1 B2 Of MPLS VPN We need to build it , Because it is static routing , So we need to add the route to them manually :
[R1]ip route-static 192.168.3.0 24 192.168.2.2
[R1]ip route-static 192.168.4.0 24 192.168.2.2
[R2]ip route-static vpn-instance b1 192.168.1.0 24 192.168.2.1
[R2]bgp 1
[R2-bgp]ipv4-family vpn-instance b1
[R2-bgp-b1]import-route static
[R2-bgp-b1]import-route direct
[R5]ip route-static 192.168.1.0 24 192.168.3.1
[R5]ip route-static 192.168.2.0 24 192.168.3.1
[R4]ip route-static vpn-instance b2 192.168.4.0 24 192.168.3.2
[R4]bgp 1
[R4-bgp]ipv4-family vpn-instance b2
[R4-bgp-b2]import-route static
[R4-bgp-b2]import-route direct
Let's see R2 R4 BGP VPN Routing table in space :


R1 PING once 192.168.4.1:

thus , End of experiment .
边栏推荐
- 19. Actual memory management of segment page combination
- Map of mL: Based on the adult census income two classification prediction data set (whether the predicted annual income exceeds 50K), use the map value to realize the interpretable case of xgboost mod
- 【每日一题】729. 我的日程安排表 I
- Reflex WMS中阶系列3:显示已发货可换组
- 从autojs到冰狐智能辅助的心里历程
- Hydra common commands
- 一文读懂简单查询代价估算
- [hot100] 739. Température quotidienne
- 万丈高楼平地起,每个API皆根基
- Arduino tutorial - Simon games
猜你喜欢

C语言_双创建、前插,尾插,遍历,删除

机器学习植物叶片识别

leetcode704. 二分查找(查找某个元素,简单,不同写法)

UWA Pipeline 2.2.1 版本更新说明

【每日一题】729. 我的日程安排表 I

前缀和数组系列

Oracle数据库11gr2使用tde透明数据加密报错ora28353,如果运行关闭wallet会报错ora28365,运行打开wallet就报错ora28353无法打开wallet
![[brush questions] how can we correctly meet the interview?](/img/89/a5b874ba4db97fbb3d330af59c387a.png)
[brush questions] how can we correctly meet the interview?

ROS学习_基础

Every API has its foundation when a building rises from the ground
随机推荐
A method to measure the similarity of time series: from Euclidean distance to DTW and its variants
UNIPRO Gantt chart "first experience": multi scene exploration behind attention to details
ROS学习_基础
Day 245/300 JS foreach data cannot be updated to the object after multi-layer nesting
顶测分享:想转行,这些问题一定要考虑清楚!
Office doc add in - Online CS
中青看点阅读新闻
leetcode35. 搜索插入位置(简单,找插入位置,不同写法)
ML之shap:基于adult人口普查收入二分类预测数据集(预测年收入是否超过50k)利用Shap值对XGBoost模型实现可解释性案例之详细攻略
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Prefix and array series
SAP SD发货流程中托盘的管理
Reflex WMS medium level series 3: display shipped replaceable groups
因高额网络费用,Arbitrum 奥德赛活动暂停,Nitro 发行迫在眉睫
Embed UE4 program into QT interface display
指尖上的 NFT|在 G2 上评价 Ambire,有机会获得限量版收藏品
Call, apply, bind rewrite, easy to understand with comments
Machine learning plant leaf recognition
Bio model realizes multi person chat
AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘/home/yolov5/models/comm