当前位置:网站首页>Huawei device configuration hub and spoke
Huawei device configuration hub and spoke
2022-06-09 22:19:00 【51CTO】

1. Configure interface IP Address
[hub-CE-GigabitEthernet0/0/0]ip add 10.1.1.1 24
[hub-CE-GigabitEthernet0/0/1]ip add 20.1.1.1 24
[hub-PE-GigabitEthernet0/0/0]ip add 10.1.1.2 24
[hub-PE-GigabitEthernet0/0/1]ip add 20.1.1.2 24
[hub-PE-GigabitEthernet0/0/2]ip add 30.1.1.2 24
[hub-PE-GigabitEthernet4/0/0]ip add 40.1.1.2 24
[hub-PE-LoopBack0]ip add 2.2.2.2 32
[spoke-PE1-GigabitEthernet0/0/0]ip add 30.1.1.3 24
[spoke-PE1-GigabitEthernet0/0/1]ip add 50.1.1.3 24
[spoke-PE1-LoopBack0]ip add 3.3.3.3 32
[spoke-PE2-GigabitEthernet0/0/0]ip add 40.1.1.4 24
[spoke-PE2-GigabitEthernet0/0/1]ip add 60.1.1.4 24
[spoke-PE2-LoopBack0]ip add 4.4.4.4 32
[spoke-CE1-GigabitEthernet0/0/0]ip add 50.1.1.5 24
[spoke-CE2-GigabitEthernet0/0/0]ip add 60.1.1.6 24
2. Configure on the backbone network OSPF agreement , Realize backbone network Hub-PE and Spoke-PE Interworking of
[hub-PE]ospf 1
[hub-PE-ospf-1]area 0
[hub-PE-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[hub-PE-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
[hub-PE-ospf-1-area-0.0.0.0]network 40.1.1.0 0.0.0.255
[spoke-PE1]ospf 1
[spoke-PE1-ospf-1]area 0
[spoke-PE1-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
[spoke-PE1-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[spoke-PE2]ospf 1
[spoke-PE2-ospf-1]area 0
[spoke-PE2-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[spoke-PE2-ospf-1-area-0.0.0.0]network 40.1.1.0 0.0.0.255
3. Configure on the backbone network MPLS Basic abilities and MPLS LDP, establish LDP LSP
[hub-PE]mpls lsr-id 2.2.2.2
[hub-PE]mpls
[hub-PE-mpls]label advertise non-null
[hub-PE]mpls ldp
[hub-PE-GigabitEthernet0/0/2]mpls
[hub-PE-GigabitEthernet0/0/2]mpls ldp
[hub-PE-GigabitEthernet4/0/0]mpls
[hub-PE-GigabitEthernet4/0/0]mpls ldp
[spoke-PE1]mpls lsr-id 3.3.3.3
[spoke-PE1]mpls
[spoke-PE1-mpls]label advertise non-null
[spoke-PE1]mpls ldp
[spoke-PE1-GigabitEthernet0/0/0]mpls
[spoke-PE1-GigabitEthernet0/0/0]mpls ldp
[spoke-PE2]mpls lsr-id 4.4.4.4
[spoke-PE2]mpls
[spoke-PE2-mpls]label advertise non-null
[spoke-PE2]mpls ldp
[spoke-PE2-GigabitEthernet0/0/0]mpls
[spoke-PE2-GigabitEthernet0/0/0]mpls ldp
4. In each PE The device is configured with VPN example , take CE Access PE
[spoke-PE1]ip vpn-instance vpna
[spoke-PE1-vpn-instance-vpna]ipv4-family
[spoke-PE1-vpn-instance-vpna-af-ipv4]route-distinguisher 100:1
[spoke-PE1-vpn-instance-vpna-af-ipv4]vpn-target 100:1 export-extcommunity
[spoke-PE1-vpn-instance-vpna-af-ipv4]vpn-target 200:1 import-extcommunity
[spoke-PE1-GigabitEthernet0/0/1]ip binding vpn-instance vpna
[spoke-PE1-GigabitEthernet0/0/1]ip add 50.1.1.3 24
[spoke-PE2]ip vpn-instance vpna
[spoke-PE2-vpn-instance-vpna]ipv4-family
[spoke-PE2-vpn-instance-vpna-af-ipv4]route-distinguisher 100:3
[spoke-PE2-vpn-instance-vpna-af-ipv4]vpn-target 100:1 export-extcommunity
[spoke-PE2-vpn-instance-vpna-af-ipv4]vpn-target 200:1 import-extcommunity
[spoke-PE2-GigabitEthernet0/0/1]ip binding vpn-instance vpna
[spoke-PE2-GigabitEthernet0/0/1]ip add 60.1.1.4 24
[hub-PE]ip vpn-instance vpn_in
[hub-PE-vpn-instance-vpn_in]ipv4-family
[hub-PE-vpn-instance-vpn_in-af-ipv4]route-distinguisher 100:21
[hub-PE-vpn-instance-vpn_in-af-ipv4]vpn-target 100:1 import-extcommunity
[hub-PE]ip vpn-instance vpn_out
[hub-PE-vpn-instance-vpn_out]ipv4-family
[hub-PE-vpn-instance-vpn_out-af-ipv4]route-distinguisher 100:22
[hub-PE-vpn-instance-vpn_out-af-ipv4]vpn-target 200:1 export-extcommunity
[hub-PE-GigabitEthernet0/0/0]ip binding vpn-instance vpn_in
[hub-PE-GigabitEthernet0/0/0]ip add 10.1.1.2 24
[hub-PE-GigabitEthernet0/0/1]ip binding vpn-instance vpn_out
[hub-PE-GigabitEthernet0/0/1]ip add 20.1.1.2 24
5. stay PE And CE Establish between EBGP Peer relationship , introduce VPN route
[spoke-CE1]bgp 65450
[spoke-CE1-bgp]peer 50.1.1.3 as-number 100
[spoke-CE1-bgp]import-route direct
[spoke-PE1]bgp 100
[spoke-PE1-bgp]ipv4-family vpn-instance vpna
[spoke-PE1-bgp-vpna]peer 50.1.1.5 as-number 65450
[spoke-PE1-bgp-vpna]import-route direct
[spoke-CE2]bgp 65460
[spoke-CE2-bgp]peer 60.1.1.4 as-number 100
[spoke-CE2-bgp]import-route direct
[spoke-PE2]bgp 100
[spoke-PE2-bgp]ipv4-family vpn-instance vpna
[spoke-PE2-bgp-vpna]peer 60.1.1.6 as-number 65460
[spoke-PE2-bgp-vpna]import-route direct
[hub-CE]bgp 65410
[hub-CE-bgp]peer 10.1.1.2 as-number 100
[hub-CE-bgp]peer 20.1.1.2 as-number 100
[hub-CE-bgp]import-route direct
[hub-PE]bgp 100
[hub-PE-bgp]ipv4-family vpn-instance vpn_in
[hub-PE-bgp-vpn_in]peer 10.1.1.1 as-number 65410
[hub-PE-bgp-vpn_in]import-route direct
[hub-PE-bgp]ipv4-family vpn-instance vpn_out
[hub-PE-bgp-vpn_out]peer 20.1.1.1 as-number 65410
[hub-PE-bgp-vpn_out]peer 20.1.1.1 allow-as-loop 1
[hub-PE-bgp-vpn_out]import-route direct
6. stay Spoke-PE And Hub-PE Establish between MP-IBGP Peer relationship
[spoke-PE1]bgp 100
[spoke-PE1-bgp]peer 2.2.2.2 as-number 100
[spoke-PE1-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[spoke-PE1-bgp]ipv4-family vpnv4
[spoke-PE1-bgp-af-vpnv4]peer 2.2.2.2 enable
[spoke-PE2]bgp 100
[spoke-PE2-bgp]peer 2.2.2.2 as-number 100
[spoke-PE2-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[spoke-PE2-bgp]ipv4-family vpnv4
[spoke-PE2-bgp-af-vpnv4]peer 2.2.2.2 enable
[hub-PE]bgp 100
[hub-PE-bgp]peer 3.3.3.3 as-number 100
[hub-PE-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[hub-PE-bgp]peer 4.4.4.4 as-number 100
[hub-PE-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[hub-PE-bgp]ipv4-family vpnv4
[hub-PE-bgp-af-vpnv4]peer 3.3.3.3 enable
[hub-PE-bgp-af-vpnv4]peer 4.4.4.4 enable
7. Check the configuration


边栏推荐
- 2022 safety production month activity starts safety production and epidemic prevention and control
- Some Oracle DDL operations
- LiDAR相关介绍
- 化工企业双重预防体系数字化综合管理系统
- 浅谈倍增法求解LCA
- node. JS connecting sqlserver encapsulating MSSQL
- 什么是“大安全”产业?数字化赋能大安全产业发展
- Spider PI intelligent vision hexapod robot in direct connection mode 0603
- ST-Link V2 下载出现:internal command error&Error: Flash Download failed - Target DLL has been cancelled
- Pi of C language test question 162
猜你喜欢

Industrial Internet + Digital Integrated Management cloud platform for hazardous chemical safety production

什么是“大安全”产业?数字化赋能大安全产业发展

Scratch Programming flying birds Development Notes 0604

Digital supervision of construction sites and the wisdom of scientific warfare

Slightly more complex queries

Actions before purchasing memory modules

List of database import and database structure for the development of yimai.com 0605

List of resources of yimai.com development interest buying project 0605

MATLAB实现Pettitt突变检验

尽一份孝心,为家人做一个老人防摔报警系统
随机推荐
C语言试题168之获取矩阵的最大值及其下标
202206007 Simulation Competition summary
MATLAB实现Pettitt突变检验
Spider PI intelligent vision hexapod robot in direct connection mode 0603
MySQL的集合运算
校园锐捷路由器使用指南
Discussion on solving LCA by multiplication method
Basic use of WinForm programming control treeview tree view 20220527
es5中构造函数的属性继承 借用父构造函数 方法继承 原型对象
GameFi新的启程,AQUANEE将于6.9日登陆Gate以及BitMart
「ClickHouse系列」ClickHouse的优化之Block+LSM
浅谈倍增法求解LCA
Why fitness?
Gamefi's new departure, aquanee will log in to gate and bitmart on June 9
Intelligent prevention and control of safety production risk at construction site in flood season
TL, how do you manage project risks?
为什么健身?
Sqlserver2012 does not allow to modify the table structure 0607
C语言试题165之求三色旗问题
调查显示macOS应用开发者普遍表示产品如何被用户发现是他们最大的挑战