当前位置:网站首页>MPLS test report
MPLS test report
2022-07-06 05:56:00 【love_ by】
One 、 Experimental content
Two 、 Topology design
3、 ... and 、 The implementation of
1、 Unicom public network
(1)IP Configuration situation
R2
R3
R4
R7
(2) Solve routing problems
R2、R3、R4 Running between ospf Dynamic routing protocol ;R7 The default point is R4 , because R7 Belongs to the client , Therefore, it is necessary to R4 The corresponding interface is modified to silent interface
R2
R3
R4
R7
[r7]ip route-static 0.0.0.0 0 47.1.1.1
test :
2、 To configure MPLS—LDP
R2
[r2]mpls lsr-id 2.2.2.2
[r2]mpls
Info: Mpls starting, please wait... OK!
[r2-mpls]mpls ldp
[r2]int g 0/0/1
[r2-GigabitEthernet0/0/1]mpls
[r2-GigabitEthernet0/0/1]mpls ldp
R3
[r3]mpls lsr-id 3.3.3.3
[r3]mpls
[r3-mpls]mpls ldp
[r3-mpls-ldp]int g 0/0/0
[r3-GigabitEthernet0/0/0] mpls
[r3-GigabitEthernet0/0/0] mpls ldp
[r3-GigabitEthernet0/0/0]int g 0/0/1
[r3-GigabitEthernet0/0/1] mpls
[r3-GigabitEthernet0/0/1] mpls ldp
R4
[r4]mpls lsr-id 4.4.4.4
[r4] mpls
[r4-mpls] mpls ldp
[r4-mpls-ldp]int g 0/0/0
[r4-GigabitEthernet0/0/0] mpls
[r4-GigabitEthernet0/0/0] mpls ldp
test :
3、 establish VPN Space and associate
R2
[r2]ip vpn-instance a1
[r2-vpn-instance-a1]ipv4-family
[r2-vpn-instance-a1-af-ipv4]route-distinguisher 1:1
[r2-vpn-instance-a1-af-ipv4]vpn-target 1:1
[r2-vpn-instance-a1-af-ipv4]q
[r2-vpn-instance-a1]q
[r2]ip vpn-instance b1
[r2-vpn-instance-b1]ipv4-family
[r2-vpn-instance-b1-af-ipv4]route-distinguisher 2:2
[r2-vpn-instance-b1-af-ipv4]vpn-target 2:2
[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!
[r2-GigabitEthernet0/0/0]ip add 192.168.2.1 24
[r2-GigabitEthernet0/0/0]int g 0/0/2
[r2-GigabitEthernet0/0/2]ip binding vpn-instance a1
[r2-GigabitEthernet0/0/2]ip add 192.168.2.1 24
R4
[r4]ip vpn-instance a2
[r4-vpn-instance-a2]ipv4-family
[r4-vpn-instance-a2-af-ipv4]route-distinguisher 1:1
[r4-vpn-instance-a2-af-ipv4]vpn-target 1:1
[r4-vpn-instance-a2-af-ipv4]q
[r4-vpn-instance-a2]q
[r4]ip vpn-instance b2
[r4-vpn-instance-b2]ipv4-family
[r4-vpn-instance-b2-af-ipv4]route-distinguisher 2:2
[r4-vpn-instance-b2-af-ipv4]vpn-target 2:2
[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
[r4-GigabitEthernet0/0/1]int g 0/0/2
[r4-GigabitEthernet0/0/2]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-GigabitEthernet0/0/2]ip add 192.168.3.1 24
4、 Application MPLS VPN Unicom A1、A2;B1、B2
(1)R1、R5、R6、R7 To configure IP Address
R1
R5
R6
R7
(2)R2、R4 function BGP, resume EBGP Neighborhood
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
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
(3) R2、R6 function rip;R4、R7 function ospf;R1、R2、R4、R5 Handwritten static routing
R6
[r6]rip 1
[r6-rip-1]ver 2
[r6-rip-1]net
[r6-rip-1]network 192.168.1.0
[r6-rip-1]network 192.168.2.0
R2
[r2]rip 1 vpn-instance a1
[r2-rip-1]version 2
[r2-rip-1]network 192.168.2.0
R7
[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.4.2 0.0.0.0
[r7-ospf-1-area-0.0.0.0]network 192.168.3.2 0.0.0.0
R4
[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
R1:[r1]ip route-static 192.168.3.0 24 192.168.2.1
[r1]ip route-static 192.168.4.0 24 192.168.2.1
R2:[r2]ip route-static vpn-instance b1 192.168.1.0 24 192.168.2.2
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:[r4]ip route-static vpn-instance b2 192.168.4.0 24 192.168.3.2
(4) Conduct two-way republishing
R2
[r2]bgp 1
[r2-bgp]ipv4-family vpn-instance a1
[r2-bgp-a1]import-route rip 1
[r2-bgp-a1]q
[r2-bgp]ipv4 vpn-instance b1
[r2-bgp-b1]import-route static
[r2-bgp-b1]import-route direct
[r2]rip 1 vpn-instance a1
[r2-rip-1]import-route bgp
R4
[r4]ospf 2 vpn-instance a2
[r4-ospf-2]import-route bgp
[r4-ospf-2]q
[r4]bgp 1
[r4-bgp]ipv4-family vpn-instance a2
[r4-bgp-a2]import-route ospf 2
[r4-bgp-a2]q
[r4-bgp]ipv4-family vpn-instance b2
[r4-bgp-b2]import-route static
[r4-bgp-b2]import-route direct
(5) test
see bgp Of vpn Routing table in space
test R1 Is it possible ping through R5
see R6 Whether the routing table of is complete
Try pingR7
边栏推荐
- wib3.0 跨越,在跨越(ง •̀_•́)ง
- [imgui] unity MenuItem shortcut key
- Zoom through the mouse wheel
- Analysis report on development trends and investment planning of China's methanol industry from 2022 to 2028
- [email protected]树莓派
- HCIA复习
- SequoiaDB湖仓一体分布式数据库2022.6月刊
- Web Security (V) what is a session? Why do I need a session?
- PDK工藝庫安裝-CSMC
- 初识数据库
猜你喜欢
B站刘二大人-反向传播
嵌入式面试题(四、常见算法)
Embedded interview questions (IV. common algorithms)
ArcGIS应用基础4 专题图的制作
实践分享:如何安全快速地从 Centos迁移到openEuler
Arrays and collections
H3C V7 switch configuration IRF
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
【论文阅读】NFlowJS:基于鲁棒学习的合成负数据密集异常检测
Download, install and use NVM of node, and related use of node and NRM
随机推荐
巨杉数据库再次亮相金交会,共建数字经济新时代
移植InfoNES到STM32
OSPF configuration command of Huawei equipment
[Jiudu OJ 07] folding basket
P2802 回家
What impact will frequent job hopping have on your career?
Installation de la Bibliothèque de processus PDK - csmc
Clear floating mode
Station B Liu Erden linear regression pytoch
Title 1093: character reverse order
Hongliao Technology: Liu qiangdong's "heavy hand"
Yygh-11-timing statistics
Anti shake and throttling are easy to understand
Practice sharing: how to safely and quickly migrate from CentOS to openeuler
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
B站刘二大人-多元逻辑回归 Lecture 7
H3C防火墙RBM+VRRP 组网配置
如何在业务代码中使用 ThinkPHP5.1 封装的容器内反射方法
嵌入式面试题(一:进程与线程)
Redistemplate common collection instructions opsforvalue (II)