当前位置:网站首页>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 :



边栏推荐
- 2837xd code generation - stateflow (3)
- Application of rxjs operator withlatestfrom in Spartacus UI of SAP e-commerce cloud
- 2837xd代码生成模块学习(1)——GPIO模块
- [ue5] blueprint making simple mine tutorial
- Postman--使用
- Mixed development of uni app -- Taking wechat applet as an example
- VLAN experiment
- go语言入门
- 虚幻AI蓝图基础笔记(万字整理)
- Sil/pil test of matlab code generation
猜你喜欢

Skywalking理论与实践

【Unity3D】嵌套使用Layout Group制作拥有动态子物体高度的Scroll View

UE4夜间打光笔记

Ctrip starts mixed office. How can small and medium-sized enterprises achieve mixed office?

2837xd代码生成模块学习(3)——IIC、eCAN、SCI、Watchdog、eCAP模块

pytest框架实现前后置

Blender体积雾

What wires are suitable for wiring on bread board?

Large neural networks may be beginning to realize: the chief scientist of openai leads to controversy, and everyone quarrels

Commutateur Multi - lentilles Blender
随机推荐
Zlib download and use
Project practice, redis cluster technology learning (12)
MySQL index
Mysql索引
webUI自动化学习
Summary of demand R & D process nodes and key outputs
【避坑指南】Unity3D项目接入腾讯Bugly工具时遇到的坑
【Unity3D】无法正确获取RectTransform的属性值导致计算出错
【教程】如何让VisualStudio的HelpViewer帮助文档独立运行
Matlab generates DSP program -- official routine learning (6)
Judging right triangle in C language
Blender模型导入ue、碰撞设置
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
滲透測試的介紹和防範
Project practice, redis cluster technology learning (VIII)
Ue5 - ai Pursuit (Blueprint, Behavior tree)
2.14 is it Valentine's day or Valentine's day when the mainstream market continues to fluctuate and wait for changes?
Spatial interpretation | comprehensive analysis of spatial structure of primary liver cancer
What wires are suitable for wiring on bread board?
[Yu Yue education] University Physics (Electromagnetics) reference materials of Taizhou College of science and technology, Nanjing University of Technology