当前位置:网站首页>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



边栏推荐
- Unity item model rotating display
- Commissioning experience and reliability design of brushless motor
- Temporary website English Writing
- Guanghetong successfully won the bidding for China Unicom Yanfei CAT1 customized module with the largest share
- Google drive download failed, network error
- CoDeSys get system time
- ACTS:高效的测试设计(并赠送一个优秀的测试设计工具)
- exness:流动性系列-订单块、不平衡(二)
- What are the similarities and differences between the data center and the data warehouse?
- Redis主从复制、哨兵、cluster集群原理+实验(好好等,会晚些,但会更好)
猜你喜欢

ACTS:高效的测试设计(并赠送一个优秀的测试设计工具)

数据中台和数据仓库有什么异同?

MindManager22专业版思维导图工具

PHP phone charge recharge channel website complete operation source code / full decryption without authorization / docking with the contract free payment interface
![[Transformer]MViTv1:Multiscale Vision Transformers](/img/de/1f2751f08dbf4ea3f77a403365dbda.jpg)
[Transformer]MViTv1:Multiscale Vision Transformers

Check the digital tube with a multimeter

ACTS:如何让缺陷无处藏身?

Exness: Liquidity Series - order Block, Unbalanced (II)
![[Transformer]AutoFormerV2:Searching the Search Space of Vision Transformer](/img/33/32796e4f807db99898d471ac5dfe2c.jpg)
[Transformer]AutoFormerV2:Searching the Search Space of Vision Transformer

RGB image histogram equalization and visualization matlab code
随机推荐
2022年新高考1卷17题解析
Exness: Liquidity Series - order Block, Unbalanced (II)
lower_ bound,upper_ Bound, two points
Meedu knowledge payment solution v4.5.4 source code
Programming Examples Using RDMA Verbs
福州核酸检测实验室建设须知事项探讨
Minor problems encountered in installing the deep learning environment -- the jupyter service is busy
Implementation of unity transport mechanism
Acts: efficient test design (with an excellent test design tool)
World programming language ranking in January 2022
Project architecture evolution
Google drive download failed, network error
Unity Advanced Backpack System
一款自适应的聊天网站-匿名在线聊天室PHP源码
C语言试题三(语法选择题——含知识点详解)
Leetcode classic guide
Record of serial baud rate
Chia Tai International; What does a master account need to know
把所有单词拆分成单个字词,删选适合公司得产品词库
Unity item model rotating display