当前位置:网站首页>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
边栏推荐
- 应用安全系列之三十七:日志注入
- Li Chuang EDA learning notes 12: common PCB board layout constraint principles
- Raised a kitten
- 如何在业务代码中使用 ThinkPHP5.1 封装的容器内反射方法
- B站刘二大人-多元逻辑回归 Lecture 7
- Download, install and use NVM of node, and related use of node and NRM
- c语言——冒泡排序
- Query the standard text code corresponding to a work center (s) in the production order
- 養了只小猫咪
- [experience] install Visio on win11
猜你喜欢
Novice entry SCM must understand those things
The difference and usage between continue and break
Node 之 nvm 下载、安装、使用,以及node 、nrm 的相关使用
Mysql database master-slave cluster construction
C language bubble sort
巨杉数据库再次亮相金交会,共建数字经济新时代
Winter 2021 pat class B problem solution (C language)
Construction of yolox based on paste framework
【无标题】
Is it difficult for an information system project manager?
随机推荐
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
公司视频加速播放
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
【经验】win11上安装visio
B站刘二大人-多元逻辑回归 Lecture 7
Implementation of linked list in address book management system
B站刘二大人-Softmx分类器及MNIST实现-Lecture 9
Web service connector: Servlet
[experience] install Visio on win11
How to recover Huawei router's forgotten password
Analysis report on development trends and investment planning of China's methanol industry from 2022 to 2028
Bit operation rules
Huawei BFD configuration specification
华为BFD的配置规范
Mysql database master-slave cluster construction
RustDesk 搭建一个自己的远程桌面中继服务器
Leetcode 701 insertion operation in binary search tree -- recursive method and iterative method
Web Security (VI) the use of session and the difference between session and cookie
How Huawei routers configure static routes
移植InfoNES到STM32