当前位置:网站首页>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 :
边栏推荐
- Remember a simple Oracle offline data migration to tidb process
- 渗透测试的介绍和防范
- 2021-10-02
- Project practice, redis cluster technology learning (6)
- Feature (5): how to organize information
- UE4 night lighting notes
- Nonlinear optimization: establishment of slam model
- [illusory] weapon slot: pick up weapons
- 2837xd code generation - stateflow (3)
- XA Transaction SQL Statements
猜你喜欢
UE illusory engine programmed plant generator setup -- how to quickly generate large forests
【Unity3D】嵌套使用Layout Group制作拥有动态子物体高度的Scroll View
ue虛幻引擎程序化植物生成器設置——如何快速生成大片森林
2837xd代码生成模块学习(1)——GPIO模块
allure--常用配置项
The latest progress and development trend of 2022 intelligent voice technology
Mysql索引
Blender体积雾
pytest学习--base
Remember the use of add method once
随机推荐
【Visual Studio】每次打开一个Unity3D的脚本,都会自动重新打开一个新的VS2017
Operator exercises
Blender石头雕刻
C language strawberry
Ue5 - ai Pursuit (Blueprint, Behavior tree)
Project practice, redis cluster technology learning (13)
Edge computing accelerates live video scenes: clearer, smoother, and more real-time
【Unity3D】嵌套使用Layout Group制作拥有动态子物体高度的Scroll View
Feature (5): how to organize information
Introduction and Principle notes of UE4 material
Career planning and development
Notes de base sur les plans illusoires d'IA (triés en 10 000 mots)
【虚幻】按键开门蓝图笔记
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
【避坑指南】Unity3D项目接入腾讯Bugly工具时遇到的坑
Following nym, the new project Galaxy token announced by coinlist is gal
C language: making barrels
ESLint 报错
High level application of SQL statements in MySQL database (II)
Illusion -- Animation blueprint, state machine production, character walking, running and jumping action