当前位置:网站首页>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)
边栏推荐
猜你喜欢
Registration and skills of hoisting machinery command examination in 2022
Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?
Object detection based on impulse neural network
3:第一章:认识JVM规范2:JVM规范,简介;
LabVIEW打开PNG 图像正常而 Photoshop打开得到全黑的图像
98. 验证二叉搜索树 ●●
Neural structured learning 4 antagonistic learning for image classification
TVS管 与 稳压二极管参数对比
Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
CIS基准测试工具kube-bench使用
随机推荐
From the perspective of quantitative genetics, why do you get the bride price when you get married
YML configuration, binding and injection, verification, unit of bean
Initial experience | purchase and activate typora software
Spécifications techniques et lignes directrices pour la sélection des tubes TVS et ESD - Recommandation de jialichuang
Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?
3: Chapter 1: understanding JVM specification 2: JVM specification, introduction;
进击的技术er——自动化
(4)UART應用設計及仿真驗證2 —— TX模塊設計(無狀態機)
Use of metadata in golang grpc
How to enable relationship view in phpMyAdmin - how to enable relationship view in phpMyAdmin
424. 替换后的最长重复字符 ●●
Creative mode 1 - single case mode
Go language implementation principle -- map implementation principle
C Primer Plus Chapter 9 question 10 binary conversion
February 13, 2022-4-symmetric binary tree
MySQL (1) -- related concepts, SQL classification, and simple operations
Douban scoring applet Part-2
TVS管 与 稳压二极管参数对比
【LeetCode】5. Valid Palindrome·有效回文
Three. Js-01 getting started