当前位置:网站首页>MPLS experiment
MPLS experiment
2022-07-02 10:20:00 【m0_ sixty-four million two hundred and sixty-five thousand thre】
The experimental requirements :
The topology :
Experimental thinking :
1、 To configure ip Address (r20 Mouth and 1 I don't deserve it first )
2、 stay mpls Start in the domain ospf, start-up mpls
3、 establish 2 individual VRF Space , carry rd and rt value , binding VRF Interface corresponding to space , Then configure the interface ip
4、 stay vrf Space establishment MP-BGP Neighbors publish routes
5、 stay r1r2、r4r5 Write static (r2 Write statically on VRF Space ), stay r6、r2 and r4、r7 To start, respectively, rip、ospf, stay VRF Space r2、r7 Reissue
6、 Default to use r7 You can visit r2、r3 Loopback
Configuration command :
1、 To configure IP
2、 start-up ospf 、 start-up mpls
r2
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 192.168.2.0 0.0.0.255network 10.0.0.0 0.0.0.255
mpls lsr-id 2.2.2.2
mpls
mpls ldpinterface GigabitEthernet0/0/2
ip address 192.168.2.1 255.255.255.0
mpls
mpls ldp
r3
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 192.168.2.0 0.0.0.255
network 192.168.4.0 0.0.0.255r4
ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 192.168.4.0 0.0.0.255mpls lsr-id 4.4.4.4
mpls
mpls ldpinterface GigabitEthernet0/0/0
ip address 192.168.4.2 255.255.255.0
mpls
mpls ldp
3、 establish 2 individual VRF Space , carry rd and rt value , binding VRF Interface corresponding to spacer2
ip vpn-instance a
ipv4-family
route-distinguisher 100:100
vpn-target 100:1 export-extcommunity
vpn-target 100:2 import-extcommunityinterface GigabitEthernet0/0/0
ip binding vpn-instance a
ip address 192.168.1.2 255.255.255.0ip vpn-instance b
ipv4-family
route-distinguisher 200:2
vpn-target 200:1 export-extcommunity
vpn-target 200:2 import-extcommunityinterface GigabitEthernet0/0/1
ip binding vpn-instance b
ip address 192.168.3.2 255.255.255.0r4
ip vpn-instance b
ipv4-family
route-distinguisher 100:100
vpn-target 100:2 export-extcommunity
vpn-target 100:1 import-extcommunityinterface GigabitEthernet0/0/1
ip binding vpn-instance b
ip address 192.168.5.1 255.255.255.0ip vpn-instance a
ipv4-family
route-distinguisher 200:2
vpn-target 200:2 export-extcommunity
vpn-target 200:1 import-extcommunityinterface GigabitEthernet0/0/2
ip binding vpn-instance a
ip address 192.168.6.1 255.255.255.04、 stay vrf Space establishment MP-BGP Neighbors publish routes
r2
bgp 2
router-id 2.2.2.2
peer 4.4.4.4 as-number 2
peer 4.4.4.4 connect-interface LoopBack0ipv4-family vpnv4( Give Way bgp Pass on vpn4)
policy vpn-target
peer 4.4.4.4 enable
ipv4-family vpn-instance a (VRF Space )
import-route direct
import-route static
ipv4-family vpn-instance b
import-route rip 1
rip 1 vpn-instance b( stay VRF Start in space rip)
version 2
network 192.168.3.0
import-route bgp
ip route-static vpn-instance a 1.1.1.0 255.255.255.0 192.168.1.1r4
bgp 2
router-id 4.4.4.4
peer 2.2.2.2 as-number 2
peer 2.2.2.2 connect-interface LoopBack0
#
ipv4-family vpnv4
policy vpn-target
peer 2.2.2.2 enable
#
ipv4-family vpn-instance a
import-route ospf 2
#
ipv4-family vpn-instance b
import-route direct
import-route staticospf 2 router-id 4.4.4.4 vpn-instance a
import-route bgp
area 0.0.0.0
network 192.168.6.0 0.0.0.255
ip route-static vpn-instance b 5.5.5.0 255.255.255.0 192.168.5.2
5、 send r7 You can visit r2、r3 Loopback
ip route-static 0.0.0.0 0.0.0.0 10.0.0.2
experimental result :
边栏推荐
- Tee command usage example
- Introduction and Principle notes of UE4 material
- ue虛幻引擎程序化植物生成器設置——如何快速生成大片森林
- UE illusory engine programmed plant generator setup -- how to quickly generate large forests
- 职业规划和发展
- Centos7 one click compilation and installation of PHP script
- 【Lua】常见知识点汇总(包含常见面试考点)
- ICLR 2022: how does AI recognize "things I haven't seen"?
- Blender摄像机环绕运动、动画渲染、视频合成
- AutoCAD - layer Linetype
猜你喜欢
[ue5] blueprint making simple mine tutorial
Bookmark collection management software suspension reading and data migration between knowledge base and browser bookmarks
allure--常用配置项
Network real-time video streaming based on OpenCV
High level application of SQL statements in MySQL database (II)
Alibaba cloud ack introduction
Blender multi lens (multi stand) switching
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
【虚幻】自动门蓝图笔记
Blender stone carving
随机推荐
【Lua】常见知识点汇总(包含常见面试考点)
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Unreal material editor foundation - how to connect a basic material
Eslint reports an error
Data insertion in C language
2021-10-04
虚幻——动画蓝图、状态机制作人物走跑跳动作
【Unity3D】无法正确获取RectTransform的属性值导致计算出错
How to achieve the top progress bar effect in background management projects
Project practice, redis cluster technology learning (10)
allure--常用配置项
[200 Shengxin literatures] 95 multiomics exploration TNBC
【Visual Studio】每次打开一个Unity3D的脚本,都会自动重新打开一个新的VS2017
2837xd code generation - stateflow (3)
【UE5】AI随机漫游蓝图两种实现方法(角色蓝图、行为树)
Project practice, redis cluster technology learning (6)
Attack and defense world web advanced area unserialize3
[illusory] automatic door blueprint notes
Message mechanism -- getting to know messages and message queues for the first time
UE5——AI追逐(蓝图、行为树)