当前位置:网站首页>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 .
边栏推荐
- Proteus -- Serial Communication parity flag mode
- 同事上了个厕所,我帮产品妹子轻松完成BI数据产品顺便得到奶茶奖励
- 万丈高楼平地起,每个API皆根基
- 一文读懂简单查询代价估算
- Kubernetes cluster builds ZABBIX monitoring platform
- Brief introduction to the curriculum differences of colleges and universities at different levels of machine human major -ros1/ros2-
- Simple use of JWT
- Entity Developer数据库应用程序的开发
- 【刷题】怎么样才能正确的迎接面试?
- Redis Foundation
猜你喜欢
Reflex WMS中阶系列3:显示已发货可换组
Kubernetes cluster builds ZABBIX monitoring platform
18.多级页表与快表
UWA pipeline version 2.2.1 update instructions
Proteus -- Serial Communication parity flag mode
Visitor tweets about how you can layout the metauniverse
NFT on fingertips | evaluate ambire on G2, and have the opportunity to obtain limited edition collections
BUU的MISC(不定时更新)
SAP SD发货流程中托盘的管理
Introduction to ros2 installation and basic knowledge
随机推荐
Due to high network costs, arbitrum Odyssey activities are suspended, and nitro release is imminent
Refer to how customer push e-commerce does content operation
AI on the cloud makes earth science research easier
BIO模型实现多人聊天
机器学习植物叶片识别
kubernetes集群搭建Zabbix监控平台
librosa音频处理教程
指尖上的 NFT|在 G2 上评价 Ambire,有机会获得限量版收藏品
机器人类专业不同层次院校课程差异性简述-ROS1/ROS2-
Simple use of MySQL database: add, delete, modify and query
这个高颜值的开源第三方网易云音乐播放器你值得拥有
接口自动化测试框架:Pytest+Allure+Excel
Bitcoinwin (BCW): the lending platform Celsius conceals losses of 35000 eth or insolvency
Entity Developer数据库应用程序的开发
UNIPRO Gantt chart "first experience": multi scene exploration behind attention to details
Misc of BUU (update from time to time)
AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models. common‘ from ‘/home/yolov5/models/comm
NFT on fingertips | evaluate ambire on G2, and have the opportunity to obtain limited edition collections
【Hot100】739. 每日溫度
详解SQL中Groupings Sets 语句的功能和底层实现逻辑