当前位置:网站首页>Huawei equipment configuration h-vpn
Huawei equipment configuration h-vpn
2022-06-11 21:46:00 【51CTO】

1. To configure IP Address
[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. Configure on the backbone network device OSPF, Realize the backbone network IP Connectivity
[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. Configure on the backbone network MPLS Basic abilities and MPLS LDP, establish 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. To configure UPE And SPE、PE And SPE Of MP-IBGP Peer relationship
[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 and PE To create a VPN example , And with CE Inter configuration 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 Configure routing reflector on
[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. Check the configuration


边栏推荐
- 类和对象(4)
- Leetcode - 第2天
- Introduction à endnotex9 et instructions pour les tutoriels de base
- Bipartite King
- The network connection is normal, but Baidu web page can not be opened and displayed. You can't access this website solution
- Codeworks round 739 (Div. 3) problem solving Report
- Building a custom CNN model: identifying covid-19
- 网络连接正常但百度网页打不开显示无法访问此网站解决方案
- As a senior abap consultant, which SAP technology can be selected as the main direction in the next step?
- 实验10 Bezier曲线生成-实验提高-控制点生成B样条曲线
猜你喜欢

网络连接正常但百度网页打不开显示无法访问此网站解决方案

206.反转链表

Leetcode-322- change exchange

LaTex实战笔记 3-宏包与控制命令

R语言相关文章、文献整理合集(持续更新)

Why is rpa+ low code a powerful tool to accelerate the digital transformation of finance?

类和对象(1)

LabVIEW controls Arduino to realize infrared ranging (advanced chapter-6)

RPA超自动化 | 农耕记携手云扩加速财务智能化运营

JVM|虚拟机栈(局部变量表;操作数栈;动态链接;方法的绑定机制;方法的调用;方法返回地址)
随机推荐
R语言相关文章、文献整理合集(持续更新)
快速排序的三种方法
每日一题 - 罗马数字转整数
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
建造者模式
LeetCode-32-最长有效括号
Jenkins+allure integrated report construction
每日一题 -- 验证回文串
动态内存管理(1)
flutter系列之:flutter中常用的container layout详解
C语言实现八种排序 - 归并排序
多态的所有特征
Apache local multi port configuration
Experiment 10 Bezier curve generation - experiment improvement - control point generation of B-spline curve
Codeforces Round #742 (Div. 2) F. One-Four Overload
Educational codeforces round 111 (rated for Div. 2) C Supplement
go io模块
即将首发 | 业界首个零售数字化创新白皮书,解锁全链路数字化致胜秘籍
Educational Codeforces Round 114 (Rated for Div. 2) D
Leetcode-76- minimum covering substring