当前位置:网站首页>Huawei simulator ENSP - hcip - MPLS experiment
Huawei simulator ENSP - hcip - MPLS experiment
2022-07-05 23:29:00 【Fried chicken shop owner Z】
Topology :
The experimental requirements :
R1 And R5MPLS Virtual private line
R6 And R7MPLS Virtual private line
R7 You can visit R2/3/4 The loopback of
B1、B2 Using static routing protocol ;A1 Use RIP agreement ;A2 Use OSPF agreement ;A1、A2 Can pass R7 Visit the public network
All loopback addresses use 192.168.1.0;CE And PE Direct link usage 2.0、3.0;R5 Loopback 4.1;R6 Loopback 4.2
Ideas :
Configure router interface IP-> Configure the public network IGP agreement -> Configure the public network MPLS-> Configure the public network BGP agreement -> Configure private network IGP agreement -> To configure nat
Configuration command :
R1:
sys
sys r1
// Configure router interface IP Address
int g0/0/0
ip add 192.168.2.1 24
int lo0
ip add 192.168.1.1 24
// Static routing
ip route-static 192.168.3.0 24 192.168.2.2
ip route-static 192.168.4.0 24 192.168.2.2
R2:
sys
sys r2
// Configure router interface IP Address
int g0/0/2
ip add 23.0.0.1 24
int lo0
ip add 2.2.2.2 24
// To configure ospf
ospf 1 router-id 2.2.2.2
a 0
network 23.0.0.0 0.0.0.255
network 2.2.2.2 0.0.0.255
// Global activation MPLS
mpls lsr-id 2.2.2.2
mpls
mpls ldp
// Interface activation MPLS
int g0/0/2
mpls
mpls ldp
// establish VRF Space
ip vpn-instance B1
route-distinguisher 100:100
vpn-target 100:1 export-extcommunity
vpn-target 100:2 import-extcommunity
int g0/0/0
ip binding vpn-instance B1
ip vpn-instance A1
route-distinguisher 200:100
vpn-target 200:1 export-extcommunity
vpn-target 200:2 import-extcommunity
int g0/0/1
ip binding vpn-instance A1
int g0/0/0
ip add 192.168.2.2 24
int g0/0/1
ip add 192.168.2.4 24
// Static routing
ip route-static vpn-instance B1 192.168.1.0 24 192.168.2.1
// To configure RIP
rip 1 vpn-instance A1
v 2
net 192.168.2.0
// To configure BGP agreement
bgp 1
router-id 2.2.2.2
peer 4.4.4.4 as 1
peer 4.4.4.4 connect-interface LoopBack 0
peer 4.4.4.4 next-hop-local
ipv4-family vpnv4
peer 4.4.4.4 enable
ipv4-family vpn-instance B1
import-route direct
import-route static
ipv4-family vpn-instance A1
import-route direct
import-route rip 1
// stay RIP Medium weight distribution BGP
rip 1
import-route bgp
default-route originate
R3:
sys
sys r3
// Configure router interface IP Address
int g0/0/0
ip add 23.0.0.2 24
int g0/0/1
ip add 34.0.0.1 24
int lo0
ip add 3.3.3.3 24
// To configure ospf
ospf 1 router-id 3.3.3.3
a 0
network 23.0.0.0 0.0.0.255
network 34.0.0.0 0.0.0.255
network 3.3.3.3 0.0.0.255
// Global activation MPLS
mpls lsr-id 3.3.3.3
mpls
mpls ldp
// Interface activation MPLS
int g0/0/0
mpls
mpls ldp
int g0/0/1
mpls
mpls ldp
R4:
sys
sys r4
// Configure router interface IP Address
int g0/0/0
ip add 34.0.0.2 24
int lo0
ip add 4.4.4.4 24
// To configure ospf
ospf 1 router-id 4.4.4.4
a 0
network 34.0.0.0 0.0.0.255
network 4.4.4.4 0.0.0.255
// Global activation MPLS
mpls lsr-id 4.4.4.4
mpls
mpls ldp
// Interface activation MPLS
int g0/0/0
mpls
mpls ldp
// establish VRF Space
ip vpn-instance B2
route-distinguisher 100:200
vpn-target 100:1 import-extcommunity
vpn-target 100:2 export-extcommunity
int g0/0/1
ip binding vpn-instance B2
ip vpn-instance A2
route-distinguisher 200:200
vpn-target 200:1 import-extcommunity
vpn-target 200:2 export-extcommunity
int g0/0/2
ip binding vpn-instance A2
int g0/0/1
ip add 192.168.3.1 24
int g0/0/2
ip add 192.168.3.3 24
// Static routing
ip route-static vpn-instance B2 192.168.4.0 24 192.168.3.2
// To configure ospf
ospf 2 vpn-instance A2 router-id 4.4.4.4
a 0
network 192.168.3.0 0.0.0.255
// To configure BGP agreement
bgp 1
router-id 4.4.4.4
peer 2.2.2.2 as 1
peer 2.2.2.2 connect-interface LoopBack 0
peer 2.2.2.2 next-hop-local
ipv4-family vpnv4
peer 2.2.2.2 enable
ipv4-family vpn-instance B2
import-route direct
import-route static
ipv4-family vpn-instance A2
import-route direct
import-route ospf 2
//OSPF Zhongzhong release bgp
ospf 2
import-route bgp
default-route-advertise always
bgp 1
ipv4-family vpn-instance B2
default-route imported
R5:
sys
sys r5
// Configure router interface IP Address
int g0/0/0
ip add 192.168.3.2 24
int lo0
ip add 192.168.4.1 24
// Configure static routing
ip route-static 192.168.1.0 24 192.168.3.1
ip route-static 192.168.2.0 24 192.168.3.1
R6:
sys
sys r6
// Configure router interface IP Address
int g0/0/0
ip add 192.168.2.3 24
int lo0
ip add 192.168.1.1 24
// To configure RIP
rip 1
v 2
net 192.168.1.0
net 192.168.2.0
R7:
sys
sys r7
// Configure router interface IP Address
int g0/0/0
ip add 192.168.3.4 24
int lo0
ip add 192.168.4.2 24
// To configure OSPF
ospf 1 router-id 7.7.7.7
a 0
network 192.168.3.0 0.0.0.255
network 192.168.4.0 0.0.0.255
// To configure nat
acl 2000
rule permit source 192.168.0.0 0.0.255.255
int g0/0/1
nat outbound 2000
verification :
B1(192.168.1.1)ping B2(192.168.4.1)
A1(192.168.1.1)ping A2(192.168.4.2)
边栏推荐
- Leetcode buys and sells stocks
- Latex multiple linebreaks
- Getting started stm32--gpio (running lantern) (nanny level)
- VS2010 writes DLL and unit test of dynamic link library, and transfers the correctness of DLL test
- 芯源&立创EDA训练营——无刷电机驱动
- 11gR2 Database Services for " Policy" and " Administrator" Managed databases (file I
- What is the process of building a website
- CJ mccullem autograph: to dear Portland
- 并查集实践
- 2022.6.20-6.26 AI行业周刊(第103期):新的小生命
猜你喜欢
2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank
Comparison of parameters between TVs tube and zener diode
[classical control theory] summary of automatic control experiment
【经典控制理论】自控实验总结
数据库基础知识(面试)
CIS benchmark tool Kube bench
Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?
数学公式截图识别神器Mathpix无限使用教程
Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
Negative sampling
随机推荐
98. 验证二叉搜索树 ●●
2.13 summary
[original] what is the core of programmer team management?
Calculating the number of daffodils in C language
Debian 10 installation configuration
UVA11294-Wedding(2-SAT)
Idea rundashboard window configuration
Multi sensor fusion of imu/ optical mouse / wheel encoder (nonlinear Kalman filter)
Xinyuan & Lichuang EDA training camp - brushless motor drive
yate.conf
2:第一章:认识JVM规范1:JVM简介;
Shell: operator
TVS管和ESD管的技术指标和选型指南-嘉立创推荐
Neural structured learning - Part 2: training with natural graphs
并查集实践
The PNG image is normal when LabVIEW is opened, and the full black image is obtained when Photoshop is opened
Latex multiple linebreaks
Negative sampling
(4)UART應用設計及仿真驗證2 —— TX模塊設計(無狀態機)
Déterminer si un arbre binaire est un arbre binaire complet