当前位置:网站首页>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)
边栏推荐
- MySQL (2) -- simple query, conditional query
- Go语言实现原理——锁实现原理
- Dynamic memory management (malloc/calloc/realloc)
- 判斷二叉樹是否為完全二叉樹
- 98. Verify the binary search tree ●●
- Neural structured learning - Part 3: training with synthesized graphs
- Multi sensor fusion of imu/ optical mouse / wheel encoder (nonlinear Kalman filter)
- Rethinking about MySQL query optimization
- poj 2762 Going from u to v or from v to u? (推断它是否是一个薄弱环节图)
- Use of grpc interceptor
猜你喜欢
Non rigid / flexible point cloud ICP registration
Realize reverse proxy client IP transparent transmission
3: Chapter 1: understanding JVM specification 2: JVM specification, introduction;
How to quickly understand complex businesses and systematically think about problems?
Pyqt control part (I)
基于脉冲神经网络的物体检测
Scala concurrent programming (II) akka
Comparison of parameters between TVs tube and zener diode
芯源&立创EDA训练营——无刷电机驱动
Basic knowledge of database (interview)
随机推荐
Three. Js-01 getting started
LeetCode——Add Binary
Multi camera stereo calibration
Summary of binary tree recursive routines
Comparison of parameters between TVs tube and zener diode
Common static methods of math class
Difference between out of band and in band
3: Chapter 1: understanding JVM specification 2: JVM specification, introduction;
2022.6.20-6.26 AI行业周刊(第103期):新的小生命
Switching power supply buck circuit CCM and DCM working mode
UART Application Design and Simulation Verification 2 - TX Module Design (Stateless machine)
424. The longest repeated character after replacement ●●
LabVIEW打开PNG 图像正常而 Photoshop打开得到全黑的图像
11gR2 Database Services for "Policy" and "Administrator" Managed Databases (文件 I
Go language implementation principle -- lock implementation principle
Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
进击的技术er——自动化
证明 poj 1014 模优化修剪,部分递归 有错误
Mathematical formula screenshot recognition artifact mathpix unlimited use tutorial
成为程序员的你,后悔了吗?