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

边栏推荐
- 在写web项目的时候,文件上传用到了smartupload,用了new string()进行转码,但是在数据库中,还是会出现类似扑克的乱码
- 记一次 .NET 差旅管理后台 CPU 爆高分析
- MongoDB簡介
- User value is the last word in the competition of mobile phone market
- Mongodb replication set [master-slave replication]
- FileZilla Client下載安裝
- pytorch难学吗?如何学好pytorch?
- [home push IMessage] software installation virtual host rental tothebuddy delay
- Docker install and start MySQL service
- [mathematical logic] predicate logic (first-order predicate logic formula | example)
猜你喜欢

Pytorch multi card distributed training distributeddataparallel usage
![Mongodb replication set [master-slave replication]](/img/2c/8030548455f45fa252062dd90e7b8b.png)
Mongodb replication set [master-slave replication]

毕设-基于SSM宠物领养中心

pytorch开源吗?

The latest analysis of the main principals of hazardous chemical business units in 2022 and the simulated examination questions of the main principals of hazardous chemical business units

Téléchargement et installation du client Filezilla

SAP UI5 应用开发教程之一百零五 - SAP UI5 Master-Detail 布局模式的联动效果实现明细介绍

Is pytorch difficult to learn? How to learn pytorch well?

CEPH Shangwen network xUP Nange that releases the power of data

ffmpeg之 一张/多张图片合成视频
随机推荐
[mathematical logic] propositional logic (judgment of the correctness of propositional logic reasoning | formal structure is eternal truth - equivalent calculus | deduction from premise - logical reas
递归使用和多维数组对象变一维数组对象
shardingsphere动态数据源
Ffmpeg one / more pictures synthetic video
2020-01-01t00:00:00.000000z date format conversion
Debug: CD cannot be used in kaggle
Reflection and planning of a sophomore majoring in electronic information engineering
The latest analysis of the main principals of hazardous chemical business units in 2022 and the simulated examination questions of the main principals of hazardous chemical business units
递归:深度优先搜索
Commands related to the startup of redis under Linux server (installation and configuration)
QQ小程序开发之 一些前期准备:预约开发账号、下载安装开发者工具、创建qq小程序
How to execute a swift for in loop in one step- How can I do a Swift for-in loop with a step?
编译文件时报错:错误: 编码GBK的不可映射字符
毕设-基于SSM宠物领养中心
2.14 simulation summary
C语言HashTable/HashSet库汇总
2022年已过半,得抓紧
How does the pytorch project run?
What is pytorch? Is pytorch a software?
pytorch难学吗?如何学好pytorch?