当前位置:网站首页>MPLS experiment
MPLS experiment
2022-07-06 06:57:00 【HiCAIJI】
The questions are as follows :
The topology is as follows :
experimental analysis :
1. First of all, we should put the public network, that is R2 R3 R4 R7 Between IP And route configuration , however R7 The client side. , So we need to give R4 Set up a silent interface , And in R7 Write one to R4 The default route for :
R2:
R3:
R4:
R7:
At this time, our public network can be interconnected , We can do it in R7 On PING once 2.2.2.2:
2. After the public network can be interconnected , We need to start MPLS service , To create VRF Space :
[R2]mpls lsr-id 2.2.2.2
[R2]mpls
[R2-mpls]mpls ldp
[R2-mpls-ldp]int g0/0/0
[R2-GigabitEthernet0/0/0]mpls
[R2-GigabitEthernet0/0/0]mpls ldp
[R3]mpls lsr-id 3.3.3.3
[R3] mpls
[R3-mpls] mpls ldp
[R3-mpls-ldp]int g0/0/1
[R3-GigabitEthernet0/0/1] mpls
[R3-GigabitEthernet0/0/1] mpls ldp
[R3-GigabitEthernet0/0/1]int g0/0/0
[R3-GigabitEthernet0/0/0] mpls
[R3-GigabitEthernet0/0/0] mpls ldp
[R4]mpls lsr-id 4.4.4.4
[R4] mpls
[R4-mpls] mpls ldp
[R4-mpls-ldp]int g0/0/1
[R4-GigabitEthernet0/0/1] mpls
[R4-GigabitEthernet0/0/1] mpls ldp
So our MPLS The environment is set up . Next we can go to R2 R4 Do on VRF There's space :
[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]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
[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]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
So we can create two spaces ; We need to bind these two spaces to two interfaces and configure IP Address :
[R2-GigabitEthernet0/0/1]ip binding vpn-instance b1
[R2-GigabitEthernet0/0/1]ip address 192.168.2.2 24
[R2-GigabitEthernet0/0/2]ip binding vpn-instance a1
[R2-GigabitEthernet0/0/2]ip address 192.168.2.2 24
[R4-GigabitEthernet0/0/0]ip binding vpn-instance b2
[R4-GigabitEthernet0/0/0]ip address 192.168.3.1 24
[R4-GigabitEthernet0/0/2]ip binding vpn-instance a2
[R4-GigabitEthernet0/0/2]ip address 192.168.3.1 24
And then we were in R2 R4 Build a MP-BGP neighbor :
[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
[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
So far, all configurations of our public network have been completed .
3. Next is the configuration of customer network segment :
The private network IP:
R1:
R5:
R6:
R7:
4. We will first A1 A2 For internal use RIP And OSPF Get through , Through BGP Two way republication and mutual learning routing
A1:
[R6]rip 1
[R6-rip-1]ver 2
[R6-rip-1]network 192.168.1.0
[R6-rip-1]network 192.168.2.0
[R2]rip 1 vpn-instance a1
[R2-rip-1]ver 2
[R2-rip-1]network 192.168.2.0
Then we can go to R2 Take a look VPN Routes in space :
A2:
[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
[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
We will in R4 Take a look VPN Routes in space :
And then we can go in R2 R4 Two way republishing on :
R2:
[R2]rip 1 vpn-instance a1
[R2-rip-1]import-route bgp
[R2-rip-1]q
[R2]bgp 1
[R2-bgp]ipv4-family vpn-instance a1
[R2-bgp-a1]import-route rip 1
R4:
[R4-bgp]ipv4-family vpn-instance a2
[R4-bgp-a2]import-route ospf 2
[R4-bgp-a2]q
[R4-bgp]q
[R4]ospf 2 vpn-instance a2
[R4-ospf-2]import-route bgp
We are R6 R7 Take a look at the routing table :
We can see R6 R7 Have learned each other's routing ; We are R6 On can PING once 192.168.4.2
Then we A1 A2 Regional MPLS VPN Just set it up .
5.B1 B2 Of MPLS VPN We need to build it , Because it is static routing , So we need to add the route to them manually :
[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
[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
Let's see R2 R4 BGP VPN Routing table in space :
R1 PING once 192.168.4.1:
thus , End of experiment .
边栏推荐
- 26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
- 【Hot100】739. 每日溫度
- BUU的MISC(不定时更新)
- 【每日一题】729. 我的日程安排表 I
- 中青看点阅读新闻
- 攻防世界 MISC中reverseMe简述
- Visitor tweets about how you can layout the metauniverse
- Due to high network costs, arbitrum Odyssey activities are suspended, and nitro release is imminent
- Day 248/300 thoughts on how graduates find jobs
- Refer to how customer push e-commerce does content operation
猜你喜欢
Entity Developer数据库应用程序的开发
Blue Bridge Cup zero Foundation National Championship - day 20
leetcode59. 螺旋矩阵 II(中等)
Database basics exercise part 2
Interface automation test framework: pytest+allure+excel
【服务器数据恢复】IBM服务器raid5两块硬盘离线数据恢复案例
Bitcoinwin (BCW): the lending platform Celsius conceals losses of 35000 eth or insolvency
hydra常用命令
NFT on fingertips | evaluate ambire on G2, and have the opportunity to obtain limited edition collections
基于PyTorch和Fast RCNN快速实现目标识别
随机推荐
How to reconstruct the class explosion caused by m*n strategies?
前缀和数组系列
18.多级页表与快表
Leetcode - 152 product maximum subarray
【Hot100】739. 每日溫度
基于PyTorch和Fast RCNN快速实现目标识别
Applied stochastic process 01: basic concepts of stochastic process
LeetCode 78:子集
Supporting title of the book from 0 to 1: ctfer's growth road (Zhou Geng)
UniPro甘特图“初体验”:关注细节背后的多场景探索
Practical guidance for interface automation testing (Part I): what preparations should be made for interface automation
Prefix and array series
开源的网易云音乐API项目都是怎么实现的?
医疗软件检测机构怎么找,一航软件测评是专家
Zhongqing reading news
Day 248/300 thoughts on how graduates find jobs
[hot100] 739. Température quotidienne
L'Ia dans les nuages rend la recherche géoscientifique plus facile
26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
Kubernetes cluster builds ZABBIX monitoring platform