当前位置:网站首页>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 .
边栏推荐
- Briefly describe the differences between indexes, primary keys, unique indexes, and joint indexes in mysql, and how they affect the performance of the database (in terms of reading and writing)
- [server data recovery] case of offline data recovery of two hard disks of IBM server RAID5
- Monotonic stack
- Apache DolphinScheduler源码分析(超详细)
- 《从0到1:CTFer成长之路》书籍配套题目(周更)
- 漏了监控:Zabbix对Eureka instance状态监控
- Oracle数据库11gr2使用tde透明数据加密报错ora28353,如果运行关闭wallet会报错ora28365,运行打开wallet就报错ora28353无法打开wallet
- Bitcoinwin (BCW): the lending platform Celsius conceals losses of 35000 eth or insolvency
- 成功解决AttributeError: Can only use .cat accessor with a ‘category‘ dtype
- Windows Server 2016 standard installing Oracle
猜你喜欢

云上有AI,让地球科学研究更省力

BUU的MISC(不定时更新)

Reflex WMS中阶系列3:显示已发货可换组

Facebook AI & Oxford proposed a video transformer with "track attention" to perform SOTA in video action recognition tasks

Simple use of MySQL database: add, delete, modify and query

leetcode1020. 飞地的数量(中等)

Basic commands of MySQL

Office doc add in - Online CS

Fast target recognition based on pytorch and fast RCNN

Reflex WMS medium level series 3: display shipped replaceable groups
随机推荐
UNIPRO Gantt chart "first experience": multi scene exploration behind attention to details
作者已死?AI正用艺术征服人类
What is the biggest problem that fresh e-commerce is difficult to do now
L'Ia dans les nuages rend la recherche géoscientifique plus facile
What is the difference between int (1) and int (10)? Senior developers can't tell!
Supporting title of the book from 0 to 1: ctfer's growth road (Zhou Geng)
pymongo获取一列数据
软件测试外包到底要不要去?三年真实外包感受告诉你
Delete external table source data
NFT on fingertips | evaluate ambire on G2, and have the opportunity to obtain limited edition collections
Hydra common commands
因高额网络费用,Arbitrum 奥德赛活动暂停,Nitro 发行迫在眉睫
Attributeerror successfully resolved: can only use cat accessor with a ‘category‘ dtype
Simple query cost estimation
ROS2安装及基础知识介绍
Every API has its foundation when a building rises from the ground
Three methods of adding color to latex text
Successfully solved typeerror: data type 'category' not understood
Windows Server 2016 standard installing Oracle
leetcode6109. 知道秘密的人数(中等,周赛)