当前位置:网站首页>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
边栏推荐
- Dynamic programming: Longest palindrome substring and subsequence
- Advanced redis applications [password protection, data persistence, master-slave synchronization, sentinel mode, transactions] [not completed yet (semi-finished products)]
- Read a paper_ ChineseBert
- ffmpeg下载安装教程及介绍
- MySQL MAC download and installation tutorial
- leetcode:297. 二叉树的序列化与反序列化
- [national programming] [software programming - Lecture Video] [zero foundation introduction to practical application]
- 基于Pytorch和RDKit的QSAR模型建立脚本
- FileZilla client download and installation
- Wechat applet + Alibaba IOT platform + Hezhou air724ug build a serverless IOT system (III) -- wechat applet is directly connected to Alibaba IOT platform aliiot
猜你喜欢
递归:快速排序,归并排序和堆排序
编译文件时报错:错误: 编码GBK的不可映射字符
MySQL MAC download and installation tutorial
Mongodb installation & Deployment
Mysql Mac版下载安装教程
2022 Shandong Province safety officer C certificate examination questions and Shandong Province safety officer C certificate simulation examination question bank
Applet get user avatar and nickname
Ffmpeg download and installation tutorial and introduction
Ffmpeg one / more pictures synthetic video
pytorch怎么下载?pytorch在哪里下载?
随机推荐
2.14 simulation summary
2022 tea master (primary) examination questions and tea master (primary) examination question bank
2022-07-02:以下go语言代码输出什么?A:编译错误;B:Panic;C:NaN。 package main import “fmt“ func main() { var a =
记一次 .NET 差旅管理后台 CPU 爆高分析
In Net 6 project using startup cs
npm : 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
Use three JS make a simple 3D scene
基于Pytorch和RDKit的QSAR模型建立脚本
Numpy warning visibledeprecationwarning: creating an ndarray from ragged needed sequences
错误 C2694 “void Logger::log(nvinfer1::ILogger::Severity,const char *)”: 重写虚函数的限制性异常规范比基类虚成员函数
[MySQL] the difference between left join, right join and join
Ffmpeg recording screen and screenshot
2022 P cylinder filling examination content and P cylinder filling practice examination video
【学习笔记】seckill-秒杀项目--(11)项目总结
For instruction, uploading pictures and display effect optimization of simple wechat applet development
Bid farewell to artificial mental retardation: Mengzi open source project team received RMB 100 million financing to help NLP develop
[national programming] [software programming - Lecture Video] [zero foundation introduction to practical application]
递归使用和多维数组对象变一维数组对象
Reflection and planning of a sophomore majoring in electronic information engineering
[mathematical logic] propositional logic (equivalent calculus | idempotent law | exchange law | combination law | distribution law | De Morgan law | absorption rate | zero law | identity | exclusion l