当前位置:网站首页>华为设备配置H-VPN
华为设备配置H-VPN
2022-06-11 21:35:00 【51CTO】

1. 配置IP地址
[UPE-LoopBack0]ip add 1.1.1.1 32
[UPE-GigabitEthernet0/0/0]ip add 20.1.1.1 24
[UPE-GigabitEthernet0/0/1]ip add 10.1.1.1 24
[SPE-LoopBack0]ip add 2.2.2.2 32
[SPE-GigabitEthernet0/0/0]ip add 20.1.1.2 24
[SPE-GigabitEthernet0/0/1]ip add 30.1.1.2 24
[PE]int LoopBack 0
[PE-LoopBack0]ip add 3.3.3.3 32
[PE-GigabitEthernet0/0/0]ip add 30.1.1.3 24
[PE-GigabitEthernet0/0/1]ip add 10.2.1.3 24
[CE1-GigabitEthernet0/0/0]ip add 10.1.1.4 24
[CE2-GigabitEthernet0/0/0]ip add 10.2.1.5 24
2. 在骨干网设备上配置OSPF,实现骨干网的IP连通性
[UPE]ospf 1
[UPE-ospf-1]area 0
[UPE-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[UPE-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[SPE]ospf 1
[SPE-ospf-1]area 0
[SPE-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[SPE-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
[SPE-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[PE]ospf 1
[PE-ospf-1]area 0
[PE-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[PE-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
3. 在骨干网上配置MPLS基本能力和MPLS LDP,建立LDP LSP
[UPE]mpls lsr-id 1.1.1.1
[UPE]mpls
[UPE]mpls ldp
[UPE-GigabitEthernet0/0/0]mpls
[UPE-GigabitEthernet0/0/0]mpls ldp
[SPE]mpls lsr-id 2.2.2.2
[SPE]mpls
[SPE]mpls ldp
[SPE-GigabitEthernet0/0/0]mpls
[SPE-GigabitEthernet0/0/0]mpls ldp
[SPE-GigabitEthernet0/0/1]mpls
[SPE-GigabitEthernet0/0/1]mpls ldp
[PE]mpls lsr-id 3.3.3.3
[PE]mpls
[PE]mpls ldp
[PE-GigabitEthernet0/0/0]mpls
[PE-GigabitEthernet0/0/0]mpls ldp
4. 配置UPE与SPE、PE与SPE的MP-IBGP对等体关系
[UPE]bgp 100
[UPE-bgp]peer 2.2.2.2 as-number 100
[UPE-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[UPE-bgp]ipv4-family vpnv4
[UPE-bgp-af-vpnv4]peer 2.2.2.2 enable
[SPE]bgp 100
[SPE-bgp]peer 1.1.1.1 as-number 100
[SPE-bgp]peer 1.1.1.1 connect-interface LoopBack 0
[SPE-bgp]peer 3.3.3.3 as-number 100
[SPE-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[SPE-bgp]ipv4-family vpnv4
[SPE-bgp-af-vpnv4]peer 1.1.1.1 enable
[SPE-bgp-af-vpnv4]peer 3.3.3.3 enable
[PE]bgp 100
[PE-bgp]peer 2.2.2.2 as-number 100
[PE-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[PE-bgp]ipv4-family vpnv4
[PE-bgp-af-vpnv4]peer 2.2.2.2 enable
5. UPE和PE上创建VPN实例,并与CE间配置EBGP
[UPE]ip vpn-instance vpna
[UPE-vpn-instance-vpna]ipv4-family
[UPE-vpn-instance-vpna-af-ipv4]route-distinguisher 100:1
[UPE-vpn-instance-vpna-af-ipv4]vpn-target 1:1
[UPE-GigabitEthernet0/0/1]ip binding vpn-instance vpna
[UPE-GigabitEthernet0/0/1]ip add 10.1.1.1 24
[UPE]bgp 100
[UPE-bgp]ipv4-family vpn-instance vpna
[UPE-bgp-vpna]peer 10.1.1.4 as-number 65410
[UPE-bgp-vpna]import-route direct
[CE1]bgp 65410
[CE1-bgp]peer 10.1.1.1 as-number 100
[CE1-bgp]import-route direct
[PE]ip vpn-instance vpna
[PE-vpn-instance-vpna]ipv
[PE-vpn-instance-vpna]ipv4-family
[PE-vpn-instance-vpna-af-ipv4]route-distinguisher 100:2
[PE-vpn-instance-vpna-af-ipv4]vpn-target 1:1
[PE-GigabitEthernet0/0/1]ip binding vpn-instance vpna
[PE-GigabitEthernet0/0/1]ip add 10.2.1.3 24
[PE]bgp 100
[PE-bgp]ipv4-family vpn-instance vpna
[PE-bgp-vpna]peer 10.2.1.5 as-number 65420
[PE-bgp-vpna]import-route direct
[CE2]bgp 65420
[CE2-bgp]peer 10.2.1.3 as-number 100
[CE2-bgp]import-route direct
6. SPE上配置路由反射器
[SPE]bgp 100
[SPE-bgp]ipv4-family vpnv4
[SPE-bgp-af-vpnv4]undo policy vpn-target
[SPE-bgp-af-vpnv4]peer 1.1.1.1 reflect-client
[SPE-bgp-af-vpnv4]peer 1.1.1.1 next-hop-local
7. 检查配置


边栏推荐
- Expérience 10 génération de courbes bezier - amélioration expérimentale - génération de courbes B - spline par point de contrôle
- Go language for loop
- Redis Foundation
- Stream Chinese sorting
- Customer information management software
- 2021-09-11 训练场补题
- 【C語言進階】整型在內存中的存儲
- 俩月没发过博客了,发一篇证明自己的账号还活着
- 行而不辍,未来可期|云扩科技入选上海市专精特新企业
- BZOJ3189 : [Coci2011] Slika
猜你喜欢

Leetcode-322- change exchange

ESP32C3 Arduino库使用方法

LeetCode-104-二叉树的最大深度

LabVIEW控制Arduino实现红外测距(进阶篇—6)

关于斜率优化

LeetCode-98-验证二叉搜索树
![Game client performance (memory) [previous]](/img/b6/869b83e92efcdf95aa6bd5e8ff0d10.jpg)
Game client performance (memory) [previous]

2021 Niuke multi school 5 double strings

Flutter series: detailed explanation of container layout commonly used in flutter

JVM object allocation policy TLAB
随机推荐
BZOJ3189 : [Coci2011] Slika
A problem of setting the private library of golang
LabVIEW控制Arduino实现红外测距(进阶篇—6)
Educational Codeforces Round 114 (Rated for Div. 2) D
[Part 15] use and basic principle of forkjoinpool [key]
线性表的链式存储结构
Flutter implements the JD address selection component
Codeworks round 744 (Div. 3) problem solving Report
As a senior abap consultant, which SAP technology can be selected as the main direction in the next step?
[Part 14] source code analysis and application details of completionservice class [key]
Use float to create a page header, footer, left content, and main content.
如何使用 SAP Kyma 控制台手动发送 SAP Commerce Cloud Mock 应用暴露的事件
【生活思考】文字与语音
网络连接正常但百度网页打不开显示无法访问此网站解决方案
Goto statement of go language
table_ Display status
BUG -- coredump使用
JVM runtime constant pool and direct memory
Comprehensive RTL code design method and precautions
LabVIEW Arduino电子称重系统(项目篇—1)