当前位置:网站首页>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
边栏推荐
- The usage and difference between strlen and sizeof
- 清除浮动的方式
- Installation de la Bibliothèque de processus PDK - csmc
- [experience] when ultralso makes a startup disk, there is an error: the disk / image capacity is too small
- Hongliao Technology: how to quickly improve Tiktok store
- [Jiudu OJ 08] simple search x
- Raised a kitten
- 嵌入式面试题(一:进程与线程)
- What is independent IP and how about independent IP host?
- Memory and stack related concepts
猜你喜欢
The usage and difference between strlen and sizeof
P2802 回家
Station B, Master Liu Er - dataset and data loading
Analysis report on development trends and investment planning of China's methanol industry from 2022 to 2028
C language bubble sort
[SQL Server Express Way] - authentification et création et gestion de comptes utilisateurs
養了只小猫咪
[Jiudu OJ 08] simple search x
What is independent IP and how about independent IP host?
Market development prospect and investment risk assessment report of China's humidity sensor industry from 2022 to 2028
随机推荐
My 2021
B站刘二大人-反向传播
The usage and difference between strlen and sizeof
Wib3.0 leapfrogging, in leapfrogging (ง • ̀_•́) ง
Memory and stack related concepts
Web Security (VI) the use of session and the difference between session and cookie
What impact will frequent job hopping have on your career?
Auto.js学习笔记17:基础监听事件和UI简单的点击事件操作
LTE CSFB process
【论文代码】SML部分代码阅读
Construction of yolox based on paste framework
Garbage collector with serial, throughput priority and response time priority
公司视频加速播放
How to use PHP string query function
Some easy-to-use tools make your essay style more elegant
Winter 2021 pat class B problem solution (C language)
Query the standard text code corresponding to a work center (s) in the production order
Embedded interview questions (I: process and thread)
[SQL Server fast track] - authentication and establishment and management of user accounts
Arrays and collections