当前位置:网站首页>华为设备配置BGP/MPLS IP 虚拟专用网地址空间重叠
华为设备配置BGP/MPLS IP 虚拟专用网地址空间重叠
2022-06-11 04:43:00 【Tony_long7483】

1.配置IP地址
[PE1-LoopBack0]ip add 1.1.1.1 32
[PE1-GigabitEthernet0/0/0]ip add 20.1.1.1 24
[P-LoopBack0]ip add 2.2.2.2 32
[P-GigabitEthernet0/0/0]ip add 20.1.1.2 24
[P-GigabitEthernet0/0/1]ip add 30.1.1.2 24
[PE2-LoopBack0]ip add 3.3.3.3 32
[PE2-GigabitEthernet0/0/0]ip add 30.1.1.3 24
[CE1-GigabitEthernet0/0/0]ip add 10.1.1.10 24
[CE2-GigabitEthernet0/0/0]ip add 10.1.1.10 24
[CE3-GigabitEthernet0/0/0]ip add 10.3.1.30 24
[CE4-GigabitEthernet0/0/0]ip add 10.3.1.30 24
2.在PE1、P、PE2配置OSPF协议
[PE1]ospf 1
[PE1-ospf-1]area 0
[PE1-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[P]ospf 1
[P-ospf-1]area 0
[P-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[P-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
[P-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[PE2]ospf 1
[PE2-ospf-1]area 0
[PE2-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
3. 在PE1、P、PE2配置MPLS基本能力和MPLS LDP,建立LDP LSP
[PE1]mpls lsr-id 1.1.1.1
[PE1]mpls
[PE1]mpls ldp
[PE1-GigabitEthernet0/0/0]mpls
[PE1-GigabitEthernet0/0/0]mpls ldp
[P]mpls lsr-id 2.2.2.2
[P]mpls
[P]mpls ldp
[P-GigabitEthernet0/0/0]mpls
[P-GigabitEthernet0/0/0]mpls ldp
[P-GigabitEthernet0/0/1]mpls
[P-GigabitEthernet0/0/1]mpls ldp
[PE2]mpls lsr-id 3.3.3.3
[PE2]mpls
[PE2]mpls ldp
[PE2-GigabitEthernet0/0/0]mpls
[PE2-GigabitEthernet0/0/0]mpls ldp
在PE设备上配置VPN实例,将CE接入PE
[PE1]ip vpn-instance vpna
[PE1-vpn-instance-vpna]ipv4-family
[PE1-vpn-instance-vpna-af-ipv4]route-distinguisher 100:100
[PE1-vpn-instance-vpna-af-ipv4]vpn-target 100:100 export-extcommunity
[PE1-vpn-instance-vpna-af-ipv4]vpn-target 100:100 import-extcommunity
[PE1]ip vpn-instance vpnb
[PE1-vpn-instance-vpnb]ipv4-family
[PE1-vpn-instance-vpnb-af-ipv4]route-distinguisher 300:300
[PE1-vpn-instance-vpnb-af-ipv4]vpn-target 200:200 export-extcommunity
[PE1-vpn-instance-vpnb-af-ipv4]vpn-target 200:200 import-extcommunity
[PE1-GigabitEthernet0/0/1]ip binding vpn-instance vpna
[PE1-GigabitEthernet0/0/1]ip add 10.1.1.10 24
[PE1-GigabitEthernet0/0/2]ip binding vpn-instance vpnb
[PE1-GigabitEthernet0/0/2]ip add 10.1.1.10 24
[PE2]ip vpn-instance vpna
[PE2-vpn-instance-vpna]ipv4-family
[PE2-vpn-instance-vpna-af-ipv4]route-distinguisher 200:200
[PE2-vpn-instance-vpna-af-ipv4]vpn-target 100:100 both
[PE2]ip vpn-instance vpnb
[PE2-vpn-instance-vpnb]ipv4-family
[PE2-vpn-instance-vpnb-af-ipv4]route-distinguisher 400:400
[PE2-vpn-instance-vpnb-af-ipv4]vpn-target 200:200 both [PE2-GigabitEthernet0/0/1]ip binding vpn-instance vpna
[PE2-GigabitEthernet0/0/1]ip add 10.3.1.30 24
[PE2-GigabitEthernet0/0/2]ip binding vpn-instance vpnb
[PE2-GigabitEthernet0/0/2]ip add 10.3.1.30 24

在PE之间建立MP-IBGP对等体关系
[PE1]bgp 100
[PE1-bgp]peer 3.3.3.3 as-number 100
[PE1-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[PE1-bgp]ipv4-family vpnv4
[PE1-bgp-af-vpnv4]peer 3.3.3.3 enable
[PE1-bgp]ipv4-family vpn-instance vpna
[PE1-bgp-vpna]import-route direct
[PE1-bgp]ipv4-family vpn-instance vpnb
[PE1-bgp-vpnb]import-route direct
[PE2]bgp 100
[PE2-bgp]peer 1.1.1.1 as-number 100
[PE2-bgp]peer 1.1.1.1 connect-interface LoopBack 0
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp-af-vpnv4]peer 1.1.1.1 enable
[PE2-bgp]ipv4-family vpn-instance vpna
[PE2-bgp-vpna]import-route direct
[PE2-bgp]ipv4-family vpn-instance vpnb
[PE2-bgp-vpnb]import-route direct在CE1、CE2、CE3、CE4设备上配置到各自连接PE的静态路由
[CE1]ip route-static 0.0.0.0 0.0.0.0 10.1.1.1
[CE2]ip route-static 0.0.0.0 0.0.0.0 10.1.1.1
[CE3]ip route-static 0.0.0.0 0.0.0.0 30.1.1.3
[CE4]ip route-static 0.0.0.0 0.0.0.0 30.1.1.3检查配置

边栏推荐
- Unity MonoSingleton
- 特征工程 特征降维
- Sharing of precautions for the construction of dioxin laboratory in Meizhou
- exness:流动性系列-订单块、不平衡(二)
- 把所有单词拆分成单个字词,删选适合公司得产品词库
- 福州化工实验室建设注意隐患分析
- Unity creates rivers on uneven terrain
- How to quickly find the official routine of STM32 Series MCU
- 福州核酸检测实验室建设须知事项探讨
- International qihuo: what are the risks of Zhengda master account
猜你喜欢

Writing a good research title: Tips & Things to avoid

四大MQ的区别

Meedu knowledge payment solution v4.5.4 source code

强大新UI装逼神器微信小程序源码+多模板支持多种流量主模式

谷歌的代码覆盖率最佳实践
![[Transformer]MViTv2:Improved Multiscale Vision Transformers for Classification and Detection](/img/97/a3e91e703b01aaceeb0d61545f9609.jpg)
[Transformer]MViTv2:Improved Multiscale Vision Transformers for Classification and Detection

The 4th small class discussion class on fundamentals of information and communication

Detailed decomposition of the shortest path problem in Figure

Acts: efficient test design (with an excellent test design tool)

Guanghetong officially released the annual theme of 2022 5g Huanxin: Five Forces co drive · Jizhi future
随机推荐
[cf571e] geometric progressions -- number theory and prime factor decomposition
C语言试题三(程序选择题进阶_含知识点详解)
[Transformer]MViTv1:Multiscale Vision Transformers
Leetcode question brushing series - mode 2 (datastructure linked list) - 206:reverse linked list
Cartographer learning record: cartographer Map 3D visualization configuration (self recording dataset version)
福州核酸检测实验室建设须知事项探讨
Yolact paper reading and analysis
Mathematical basis of information and communication -- the first experiment
Redis主从复制、哨兵、cluster集群原理+实验(好好等,会晚些,但会更好)
把所有单词拆分成单个字词,删选适合公司得产品词库
Anaconda installation and use process
lower_ bound,upper_ Bound, two points
图的最短路径问题 详细分解版
Holiday Homework
Codesys get System Time
Description of construction scheme of Meizhou P2 Laboratory
Leetcode question brushing series - mode 2 (datastructure linked list) - 21:merge two sorted lists merge two ordered linked lists
codesys 获取系统时间
DL deep learning experiment management script
Project architecture evolution