当前位置:网站首页>MPLS setup experiment
MPLS setup experiment
2022-07-03 03:53:00 【Idle fish King】
1. Experimental topics

2.IP Divide

R2,R3,R4 Used between OSPF
R7 Use default pointing to the public network
[r7]ip route-static 0.0.0.0 0 47.1.1.1
among R2 and R4 establish BGP link
3.MPLS Turn on
3.1.R2
[r2]mpls lsr-id 2.2.2.2
[r2]mpls
Info: Mpls starting, please wait... OK!
[r2-mpls]mpls ldp
[r2-mpls-ldp]int g0/0/2
[r2-GigabitEthernet0/0/2]mpls
[r2-GigabitEthernet0/0/2]mpls ldp
3.2.R3
[r3]mpls lsr-id 3.3.3.3
[r3]mpls
Info: Mpls starting, please wait... OK!
[r3-mpls]mpls ldp
[r3-mpls-ldp]int g0/0/2
[r3-GigabitEthernet0/0/2]mpls
[r3-GigabitEthernet0/0/2]mpls ldp
[r3-GigabitEthernet0/0/2]int g0/0/0
[r3-GigabitEthernet0/0/0]mpls
[r3-GigabitEthernet0/0/0]mpls ldp

3.3.R4
[r4]mpls lsr-id 4.4.4.4
[r4]mpls
Info: Mpls starting, please wait... OK!
[r4-mpls]mpls ldp
[r4-mpls-ldp]int g0/0/0
[r4-GigabitEthernet0/0/0]mpls
[r4-GigabitEthernet0/0/0]mpls ldp
4.VRF Space
4.1.R2
b1 Space , It's for R1 Used by
[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]int g0/0/0
[r2-GigabitEthernet0/0/0]ip binding vpn-instance b1
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed!
a1 Space is for R6 The use of
[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
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]ip binding vpn-instance a1
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed!
After configuration, you can configure the corresponding interface ip
You can configure the same ip Instead of reporting mistakes
[r2-GigabitEthernet0/0/0]ip add 192.168.2.2 24
[r2-GigabitEthernet0/0/1]ip add 192.168.2.2 24
4.2.R4
b2 Space , It's for R5 Used by , And configure IP
[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]int g0/0/1
[r4-GigabitEthernet0/0/1]ip binding vpn-instance b2
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed![r4-GigabitEthernet0/0/1]ip add 192.168.3.1 24
a2 Space is for R7 The use of , And configure IP
[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[r4]int g4/0/0
[r4-GigabitEthernet4/0/0]ip binding vpn-instance a2
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed![r4-GigabitEthernet4/0/0]ip add 192.168.3.1 24
5.BGP To configure
5.1.R2
[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
5.2.R4
[r4]bgp 1
[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
Configure after configuration R1 R7 R6 R5 Loop back and interface IP
6. To configure RIP,OSPF And re Exchange
6.1.R6 and R2 RIP
[r2]rip 1 vpn-instance a1
[r2-rip-1]ver 2
[r2-rip-1]network 192.168.2.0[r6]rip 1
[r6-rip-1]ver 2
[r6-rip-1]network 192.168.1.0
[r6-rip-1]network 192.168.2.0
6.2.R4 and R7 OSPF
[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[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
6.3. Two way republication
RIP and BGP Conduct two-way republishing
[r2]rip 1 vpn-instance a1
[r2-rip-1]import-route bgp[r2]bgp 1
[r2-bgp]ipv4-family vpn-instance a1
[r2-bgp-a1]import-route rip 1
OSPF and BGP Conduct two-way republishing
[r4-bgp]ipv4-family vpn-instance a2
[r4-bgp-a2]import-route ospf 2
[r4]ospf 2 vpn-instance a2
[r4-ospf-2]import-route bgp
R6 Learned 192.168.4.2 Equal route

And can communicate 
7. Static configuration
7.1.R1 and R2
[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
7.2.R4 and R5
[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
Then you can get through

边栏推荐
- IPv6过渡技术-6to4手工隧道配置实验--尚文网络奎哥
- Use of sigaction
- pytorch难学吗?如何学好pytorch?
- MySQL MAC download and installation tutorial
- Nodejs Foundation: shallow chat URL and querystring module
- Simple wechat applet development page Jump, data binding, obtaining user information, obtaining user location information
- 可分离债券与可转债
- Reflection and planning of a sophomore majoring in electronic information engineering
- Captura下载安装及在Captura配置FFmpeg
- [learning notes] seckill - seckill project - (11) project summary
猜你喜欢

Appium automated testing framework

简易版 微信小程序开发之for指令、上传图片及展示效果优化

PHP generates PDF tcpdf

Simple wechat applet development page Jump, data binding, obtaining user information, obtaining user location information

numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences

2022deepbrainchain biweekly report no. 104 (01.16-02.15)

用Three.js做一個簡單的3D場景

编译文件时报错:错误: 编码GBK的不可映射字符

What is pytorch? Is pytorch a software?

Wechat applet + Alibaba IOT platform + Hezhou air724ug build a serverless IOT system (III) -- wechat applet is directly connected to Alibaba IOT platform aliiot
随机推荐
用Three.js做一個簡單的3D場景
Web session management security issues
Mongodb replication set [master-slave replication]
pytorch难学吗?如何学好pytorch?
Numpy warning visibledeprecationwarning: creating an ndarray from ragged needed sequences
[Blue Bridge Road -- bug free code] DS18B20 temperature reading code analysis
Null and undefined
[home push IMessage] software installation virtual host rental tothebuddy delay
MongoDB簡介
PHP generates PDF tcpdf
Nanning water leakage detection: warmly congratulate Guangxi Zhongshui on winning the first famous brand in Guangxi
Download and install node, NPM and yarn
2022-07-02:以下go语言代码输出什么?A:编译错误;B:Panic;C:NaN。 package main import “fmt“ func main() { var a =
Ffmpeg download and installation tutorial and introduction
Open Visual Studio 2010 hangs when opening a SQL file sql file
2020-01-01t00:00:00.000000z date format conversion
User value is the last word in the competition of mobile phone market
Recursive use and multi-dimensional array object to one-dimensional array object
Hutool动态添加定时任务
js中#号的作用