当前位置:网站首页>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 .
边栏推荐
- At the age of 26, I changed my career from finance to software testing. After four years of precipitation, I have been a 25K Test Development Engineer
- A method to measure the similarity of time series: from Euclidean distance to DTW and its variants
- 1189. Maximum number of "balloons"
- Apache dolphin scheduler source code analysis (super detailed)
- Facebook AI & Oxford proposed a video transformer with "track attention" to perform SOTA in video action recognition tasks
- 攻防世界 MISC中reverseMe简述
- 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)
- Bio model realizes multi person chat
- Every API has its foundation when a building rises from the ground
- AI on the cloud makes earth science research easier
猜你喜欢
AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models. common‘ from ‘/home/yolov5/models/comm
作者已死?AI正用艺术征服人类
Office doc add in - Online CS
Introduction and underlying analysis of regular expressions
C语言_双创建、前插,尾插,遍历,删除
接口自动化测试实践指导(上):接口自动化需要做哪些准备工作
指尖上的 NFT|在 G2 上评价 Ambire,有机会获得限量版收藏品
hydra常用命令
leetcode704. 二分查找(查找某个元素,简单,不同写法)
Apache dolphin scheduler source code analysis (super detailed)
随机推荐
【Hot100】739. Daily temperature
PCL实现选框裁剪点云
漏了监控:Zabbix对Eureka instance状态监控
机器学习植物叶片识别
Is it difficult for girls to learn software testing? The threshold for entry is low, and learning is relatively simple
hydra常用命令
Oracle数据库11gr2使用tde透明数据加密报错ora28353,如果运行关闭wallet会报错ora28365,运行打开wallet就报错ora28353无法打开wallet
Redis Foundation
指尖上的 NFT|在 G2 上评价 Ambire,有机会获得限量版收藏品
C language_ Double create, pre insert, post insert, traverse, delete
Fast target recognition based on pytorch and fast RCNN
编译,连接 -- 笔记 -2
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
Supporting title of the book from 0 to 1: ctfer's growth road (Zhou Geng)
开源的网易云音乐API项目都是怎么实现的?
Huawei equipment configuration ospf-bgp linkage
[daily question] 729 My schedule I
LeetCode Algorithm 2181. 合并零之间的节点
librosa音频处理教程
Apache dolphin scheduler source code analysis (super detailed)