当前位置:网站首页>Huawei equipment is configured with cross domain virtual private network
Huawei equipment is configured with cross domain virtual private network
2022-06-11 04:44:00 【Tony_ long7483】

Configure interface IP Address
[ASBR-PE1-LoopBack0]ip add 1.1.1.1 32
[ASBR-PE1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[ASBR-PE1-GigabitEthernet0/0/1]ip add 20.1.1.1 24
[ASBR-PE2-LoopBack0]ip add 2.2.2.2 32
[ASBR-PE2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[ASBR-PE2-GigabitEthernet0/0/1]ip add 30.1.1.2 24
[PE1-LoopBack0]ip add 3.3.3.3 32
[PE1-GigabitEthernet0/0/0]ip add 20.1.1.3 24
[PE1-GigabitEthernet0/0/1]ip add 10.1.1.3 24
[PE2-LoopBack0]ip add 4.4.4.4 32
[PE2-GigabitEthernet0/0/0]ip add 30.1.1.4 24
[PE2-GigabitEthernet0/0/1]ip add 10.2.1.4 24
[CE1-GigabitEthernet0/0/0]ip add 10.1.1.5 24
[CE2-GigabitEthernet0/0/0]ip add 10.2.1.6 24stay AS100 and AS200 Of MPLS The backbone network is configured separately OSPF agreement , Realize respective backbone network ASBR-PE and PE Interworking between
[ASBR-PE1]ospf 1
[ASBR-PE1-ospf-1]area 0
[ASBR-PE1-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[ASBR-PE1-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[ASBR-PE1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[ASBR-PE2]ospf 1
[ASBR-PE2-ospf-1]area 0
[ASBR-PE2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[ASBR-PE2-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
[ASBR-PE2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[PE1]ospf 1
[PE1-ospf-1]area 0
[PE1-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[PE1-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[PE2]ospf 1
[PE2-ospf-1]area 0
[PE2-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[PE2-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255stay AS100 and AS200 Of MPLS The backbone network is configured separately MPLS Basic abilities and MPLS LDP, establish LDP LSP
[ASBR-PE1]mpls lsr-id 1.1.1.1
[ASBR-PE1]mpls
[ASBR-PE1-mpls]label advertise non-null
[ASBR-PE1]mpls ldp
[ASBR-PE1-GigabitEthernet0/0/1]mpls
[ASBR-PE1-GigabitEthernet0/0/1]mpls ldp
[ASBR-PE2]mpls lsr-id 2.2.2.2
[ASBR-PE2]mpls
[ASBR-PE2-mpls]label advertise non-null
[ASBR-PE2]mpls ldp
[ASBR-PE2-GigabitEthernet0/0/1]mpls
[ASBR-PE2-GigabitEthernet0/0/1]mpls ldp
[PE1]mpls lsr-id 3.3.3.3
[PE1]mpls
[PE1-mpls]label advertise non-null
[PE1]mpls ldp
[PE1-GigabitEthernet0/0/0]mpls
[PE1-GigabitEthernet0/0/0]mpls ldp
[PE2]mpls lsr-id 4.4.4.4
[PE2]mpls
[PE2-mpls]label advertise non-null
[PE2]mpls ldp
[PE2-GigabitEthernet0/0/0]mpls
[PE2-GigabitEthernet0/0/0]mpls ldp

PE And ASBR-PE Establish between MP-IBGP Peer relationship , In exchange for VPN Routing information
[ASBR-PE1]bgp 100
[ASBR-PE1-bgp]peer 3.3.3.3 as-number 100
[ASBR-PE1-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[ASBR-PE1-bgp]ipv4-family vpnv4
[ASBR-PE1-bgp-af-vpnv4]peer 3.3.3.3 enable
[PE1]bgp 100
[PE1-bgp]peer 1.1.1.1 as-number 100
[PE1-bgp]peer 1.1.1.1 connect-interface LoopBack 0
[PE1-bgp]ipv4-family vpnv4
[PE1-bgp-af-vpnv4]peer 1.1.1.1 enable
[ASBR-PE2]bgp 200
[ASBR-PE2-bgp]peer 4.4.4.4 as-number 200
[ASBR-PE2-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[ASBR-PE2-bgp]ipv4-family vpnv4
[ASBR-PE2-bgp-af-vpnv4]peer 4.4.4.4 enable
[PE2]bgp 200
[PE2-bgp]peer 2.2.2.2 as-number 200
[PE2-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp-af-vpnv4]peer 2.2.2.2 enablestay PE Configure enable on the device IPv4 Address family VPN example , take CE Access PE
[PE1]ip vpn-instance vpn1
[PE1-vpn-instance-vpn1]ipv4-family
[PE1-vpn-instance-vpn1-af-ipv4]route-distinguisher 100:1
[PE1-vpn-instance-vpn1-af-ipv4]vpn-target 1:1 both
[PE1-GigabitEthernet0/0/1]ip binding vpn-instance vpn1
[PE1-GigabitEthernet0/0/1]ip add 10.1.1.3 24
[PE2]ip vpn-instance vpn1
[PE2-vpn-instance-vpn1]ipv4-family
[PE2-vpn-instance-vpn1-af-ipv4]route-distinguisher 200:1
[PE2-vpn-instance-vpn1-af-ipv4]vpn-target 2:2 both
[PE2-GigabitEthernet0/0/1]ip binding vpn-instance vpn1
[PE2-GigabitEthernet0/0/1]ip add 10.2.1.4 24To configure PE And CE establish EBGP Peer relationship , In exchange for VPN route
[CE1]bgp 65001
[CE1-bgp]peer 10.1.1.3 as-number 100
[CE1-bgp]import-route direct
[PE1]bgp 100
[PE1-bgp]ipv4-family vpn-instance vpn1
[PE1-bgp]peer 10.1.1.5 as-number 65001
[PE1-bgp]import-route direct
[CE2]bgp 65002
[CE2-bgp]peer 10.2.1.4 as-number 200
[CE2-bgp]import-route direct
[PE2]bgp 200
[PE2-bgp]ipv4-family vpn-instance vpn1
[PE2-bgp-vpn1]peer 10.2.1.6 as-number 65002
[PE2-bgp-vpn1]import-route direct
- To configure OptionA The way of cross domain VPN
[ASBR-PE1]ip vpn-instance vpn1
[ASBR-PE1-vpn-instance-vpn1]ipv4-family
[ASBR-PE1-vpn-instance-vpn1-af-ipv4]route-distinguisher 100:2
[ASBR-PE1-vpn-instance-vpn1-af-ipv4]vpn-target 1:1 both
[ASBR-PE1-GigabitEthernet0/0/0]ip binding vpn-instance vpn1
[ASBR-PE1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[ASBR-PE2]ip vpn-instance vpn1
[ASBR-PE2-vpn-instance-vpn1]ipv4-family
[ASBR-PE2-vpn-instance-vpn1-af-ipv4]route-distinguisher 200:2
[ASBR-PE2-vpn-instance-vpn1-af-ipv4]vpn-target 2:2
[ASBR-PE2-GigabitEthernet0/0/0]ip binding vpn-instance vpn1
[ASBR-PE2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[ASBR-PE1]bgp 100
[ASBR-PE1-bgp]ipv4-family vpn-instance vpn1
[ASBR-PE1-bgp-vpn1]peer 12.1.1.2 as-number 200
[ASBR-PE1-bgp-vpn1]import-route direct
[ASBR-PE2]bgp 200
[ASBR-PE2-bgp]ipv4-family vpn-instance vpn1
[ASBR-PE2-bgp-vpn1]peer 12.1.1.1 as-number 100
[ASBR-PE2-bgp-vpn1]import-route direct - Check the configuration



边栏推荐
- An adaptive chat site - anonymous online chat room PHP source code
- Leetcode classic guide
- ACTS:如何让缺陷无处藏身?
- Redis master-slave replication, sentinel, cluster cluster principle + experiment (wait, it will be later, but it will be better)
- 新UI学法减分专业版34235道题库学法减分专业版小程序源码
- USB to 232 to TTL overview
- Learning summary 01- machine learning
- Real time update of excellent team papers
- Writing a good research title: Tips & Things to avoid
- 国际期货黄金手续费怎么算?
猜你喜欢
![[Transformer]MViTv1:Multiscale Vision Transformers](/img/de/1f2751f08dbf4ea3f77a403365dbda.jpg)
[Transformer]MViTv1:Multiscale Vision Transformers

codesys 獲取系統時間

Win10+manjaro dual system installation

芯源cw32f030c8t6用keil5编译时出现的问题
![[Transformer]Is it Time to Replace CNNs with Transformers for Medical Images?](/img/83/7025050667c382857c032bdd8f6649.jpg)
[Transformer]Is it Time to Replace CNNs with Transformers for Medical Images?

Mathematical basis of information and communication -- the first experiment

Visual (Single) Object Tracking -- SiamRPN

Guanghetong officially released the annual theme of 2022 5g Huanxin: Five Forces co drive · Jizhi future

Check the digital tube with a multimeter

Codesys get System Time
随机推荐
精益产品开发体系最佳实践及原则
正大国际:真正会在琪貨投资都都应该知道
C语言试题三(程序选择题——含知识点详解)
特征工程 特征降维
Unity message framework notificationcenter
USB to 232 to TTL overview
强大新UI装逼神器微信小程序源码+多模板支持多种流量主模式
Collation of construction data of Meizhou plant tissue culture laboratory
PCB ground wire design_ Single point grounding_ Bobbin line bold
Programming Examples Using RDMA Verbs
[Transformer]On the Integration of Self-Attention and Convolution
Unity map mapping
Sorting out relevant programming contents of renderfeature of unity's URP
How can smart construction sites achieve digital transformation?
RGB image histogram equalization and visualization matlab code
Unity 伤害值的显示
用万用表检测数码管
Use of mmdetection
ACTS:如何让缺陷无处藏身?
梅州植物组培实验室建设资料整理