当前位置:网站首页>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)
边栏推荐
- C Primer Plus Chapter 9 question 10 binary conversion
- 判断二叉树是否为完全二叉树
- Rethinking about MySQL query optimization
- Three. JS VR house viewing
- LeetCode——Add Binary
- Getting started stm32--gpio (running lantern) (nanny level)
- When to use useImperativeHandle, useLayoutEffect, and useDebugValue
- Golang code checking tool
- 2:第一章:认识JVM规范1:JVM简介;
- Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
猜你喜欢
东南亚电商指南,卖家如何布局东南亚市场?
Selenium+pytest automated test framework practice
Week 17 homework
98. 验证二叉搜索树 ●●
数学公式截图识别神器Mathpix无限使用教程
TVS管和ESD管的技术指标和选型指南-嘉立创推荐
Neural structured learning - Part 2: training with natural graphs
成为程序员的你,后悔了吗?
98. Verify the binary search tree ●●
Switching power supply buck circuit CCM and DCM working mode
随机推荐
asp. Net pop-up layer instance
Common static methods of math class
MySQL (1) -- related concepts, SQL classification, and simple operations
Switching power supply buck circuit CCM and DCM working mode
Calculating the number of daffodils in C language
Solution to the packaging problem of asyncsocket long connecting rod
MySQL delete uniqueness constraint unique
Multi camera stereo calibration
Hainan Nuanshen tea recruits warmhearted people: recruitment of the product experience recommender of Nuanshen multi bubble honey orchid single cluster
3D reconstruction of point cloud
Hj16 shopping list
Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
基于脉冲神经网络的物体检测
(4) UART application design and simulation verification 2 - TX module design (stateless machine)
两数之和、三数之和(排序+双指针)
Alibaba Tianchi SQL training camp task4 learning notes
2.13 summary
C Primer Plus Chapter 9 question 9 POW function
npm ELECTRON_ Mirror is set as domestic source (npmmirror China mirror)
LeetCode——Add Binary