当前位置:网站首页>Huawei device configuration hub and spoke
Huawei device configuration hub and spoke
2022-06-10 08:02:00 【Tony_ long7483】

- 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 - 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 - 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 - 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 - 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 - 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 - Check the configuration


边栏推荐
- 【无标题】
- How to make sql-mode=“NO_ENGINE_SUBSTITUTION” permanent in MySQL my. cnf
- 【無標題】
- What if online gambling can't be withdrawn?
- Notice on the issuance of Shenzhen action plan for cultivating and developing new material industry clusters (2022-2025)
- The entryset of map implements that maps are arranged in ascending order by key or descending order by value
- Dynamic programming 0/1 knapsack problem
- 618 big promotion is in progress, Cloud Computing supports e-commerce live broadcast
- OS实验七【文件管理】
- easyexcel实现简单的上传下载
猜你喜欢

Redis數據類型之list和set以及sorted_set排序

10 useful flutter widgets

Diode, triode

2. ZK's working mechanism

数字展厅设计方案的制定要注意这四点

Don't stop pre training practice (II) - see all MLM in one day
![[chapter 65 of the flutter problem series] a solution to setting the maximum height of showmodalbottomsheet in the flutter is invalid](/img/a3/7db76a03bfa6c036e576074af84428.png)
[chapter 65 of the flutter problem series] a solution to setting the maximum height of showmodalbottomsheet in the flutter is invalid

Using pyqt5 + Agora + leancloud to realize online class based on student fatigue detection

Liste et ensemble des types de données redis et triés Définir le tri

Next generation enterprise IT architecture: cloud native architecture
随机推荐
Convenient ultraviolet air purifier 2022 Global Industry Analysis Report
Global industry analysis report of proton therapy technology in 2022
Using the traversal sequence of the first and middle order of the binary tree to create the binary tree again
PHP security development 07 article module modification function compilation
Jenkins-API
后疫情时代,医疗行业如何做好数字化转型?
Global industry analysis report of food dehydrators in 2022
漏洞复现_CVE-2020-0796 永恒之黑漏洞_遇坑_已解决
华为设备配置Hub and Spoke
In the post epidemic era, how can the medical industry do a good job in digital transformation?
目前技术圈最全面的 Layer2 研究总结
[untitled]
UE全景图,碰到the outpout directory时的问题
Transplantation method of MySQL UUID function in Dameng
Notice on the issuance of Shenzhen action plan for cultivating and developing semiconductor and integrated circuit industry clusters (2022-2025)
Notice on the issuance of Shenzhen action plan for cultivating and developing biomedical industry clusters (2022-2025)
Relay log performance optimization practice in DM - tidb tool sharing
Swagger quick use
QT makes simple video calls
Using pyqt5 + Agora + leancloud to realize online class based on student fatigue detection