当前位置:网站首页>Configuring virtual private network FRR for Huawei equipment
Configuring virtual private network FRR for Huawei equipment
2022-06-13 02:02:00 【Tony_ long7483】

To configure IP Address
[PE1-LoopBack1]ip add 1.1.1.1 32
[PE1-GigabitEthernet0/0/0]ip add 20.1.1.1 24
[PE1-GigabitEthernet0/0/1]ip add 30.1.1.1 24
[PE2-LoopBack1]ip add 2.2.2.2 32
[PE2-GigabitEthernet0/0/0]ip add 20.1.1.2 24
[PE2-GigabitEthernet0/0/1]ip add 10.1.1.2 24
[PE3-LoopBack1]ip add 3.3.3.3 32
[PE3-GigabitEthernet0/0/0]ip add 30.1.1.3 24
[PE3-GigabitEthernet0/0/1]ip add 10.2.1.3 24
[CE1-GigabitEthernet0/0/0]ip add 10.1.1.4 24
[CE1-GigabitEthernet0/0/1]ip add 10.2.1.4 24
[CE1-GigabitEthernet0/0/2]ip add 10.3.1.4 24stay MPLS Backbone network configuration OSPF agreement , Realize backbone network PE Interworking
[PE1]ospf 1
[PE1-ospf-1]area 0
[PE1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[PE1-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
[PE2]ospf 1
[PE2-ospf-1]area 0
[PE2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[PE2-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[PE3]ospf 1
[PE3-ospf-1]area 0
[PE3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[PE3-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255stay MPLS Backbone network configuration MPLS Basic abilities and MPLS LDP, establish LDP LSP
[PE1]mpls lsr-id 1.1.1.1
[PE1]mpls
[PE1]mpls ldp
[PE1-GigabitEthernet0/0/0]mpls
[PE1-GigabitEthernet0/0/0]mpls ldp
[PE1-GigabitEthernet0/0/1]mpls
[PE1-GigabitEthernet0/0/1]mpls ldp
[PE2]mpls lsr-id 2.2.2.2
[PE2]mpls
[PE2]mpls ldp
[PE2-GigabitEthernet0/0/0]mpls
[PE2-GigabitEthernet0/0/0]mpls ldp
[PE3]mpls lsr-id 3.3.3.3
[PE3]mpls
[PE3]mpls ldp
[PE3-GigabitEthernet0/0/0]mpls
[PE3-GigabitEthernet0/0/0]mpls ldp

stay PE The device is configured with 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
[PE2]ip vpn-instance vpn1
[PE2-vpn-instance-vpn1]ipv4-family
[PE2-vpn-instance-vpn1-af-ipv4]route-distinguisher 100:2
[PE2-vpn-instance-vpn1-af-ipv4]vpn-target 1:1
[PE2-GigabitEthernet0/0/1]ip binding vpn-instance vpn1
[PE2-GigabitEthernet0/0/1]ip add 10.1.1.2 24
[PE3]ip vpn-instance vpn1
[PE3-vpn-instance-vpn1]ipv4-family
[PE3-vpn-instance-vpn1]route-distinguisher 100:3
[PE3-vpn-instance-vpn1]vpn-target 1:1
[PE3-GigabitEthernet0/0/1]ip binding vpn-instance vpn1
[PE3-GigabitEthernet0/0/1]ip add 10.2.1.3 24stay PE1 Introducing direct connection on VPN route ; stay PE2 And CE1, And PE3 And CE1 Establish between EBGP peers , introduce VPN route
[PE1]bgp 100
[PE1-bgp]ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1]import-route direct
[PE2]bgp 100
[PE2-bgp]ipv4-family vpn-instance vpn1
[PE2-bgp-vpn1]peer 10.1.1.4 as-number 65410
[PE2-bgp-vpn1]import-route direct
[PE3]bgp 100
[PE3-bgp]ipv4-family vpn-instance vpn1
[PE3-bgp-vpn1]peer 10.2.1.4 as-number 65410
[PE3-bgp-vpn1]import-route direct
[CE1]bgp 65410
[CE1-bgp]peer 10.1.1.2 as-number 100
[CE1-bgp]peer 10.2.1.3 as-number 100
[CE1-bgp]import-route direct
[CE1-bgp]network 10.3.1.0 24
stay PE Establish between MP-IBGP peers
[PE1]bgp 100
[PE1-bgp]peer 2.2.2.2 as-number 100
[PE1-bgp]peer 2.2.2.2 connect-interface LoopBack 1
[PE1-bgp]peer 3.3.3.3 as-number 100
[PE1-bgp]peer 3.3.3.3 connect-interface LoopBack 1
[PE1-bgp]ipv4-family vpnv4
[PE1-bgp-af-vpnv4]peer 2.2.2.2 enable
[PE1-bgp-af-vpnv4]peer 3.3.3.3 enable
[PE2]bgp 100
[PE2-bgp]peer 1.1.1.1 as-number 100
[PE2-bgp]peer 1.1.1.1 connect-interface LoopBack 1
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp-af-vpnv4]peer 1.1.1.1 enable
[PE3]bgp 100
[PE3-bgp]peer 1.1.1.1 as-number 100
[PE3-bgp]peer 1.1.1.1 connect-interface LoopBack 1
[PE3-bgp]ipv4-family vpnv4
[PE3-bgp-af-vpnv4]peer 1.1.1.1 enable
To configure VPN FRR Routing strategy : stay PE1 Configure backup on the next hop , send PE3 by PE2 Backup of ,PE2 In case of failure, you can quickly switch to PE3 On
[PE1]ip ip-prefix v1 permit 2.2.2.2 32
[PE1]route-policy v1 permit node 10
[PE1-route-policy]if-match ip next-hop ip-prefix v1
[PE1-route-policy]apply backup-nexthop 3.3.3.3Can make VPN FRR
[PE1]ip vpn-instance vpn1
[PE1-vpn-instance-vpn1]vpn frr route-policy v1

边栏推荐
- What is the path field—— Competitive advertising
- Pyflink implements custom sourcefunction
- Detailed explanation of deep learning parameter adjustment skills
- Devaxpress Chinese description -- tdxgallerycontrol object (gallery component)
- The new wild prospect of JD instant retailing from the perspective of "hour shopping"
- Application and examples of C language structure
- cin,cin. get(),cin. Summary of the use of getline() and getline()
- rsync 傳輸排除目錄
- uniapp 预览功能
- Decoding iFLYTEK open platform 2.0 is a fertile land for developers and a source of industrial innovation
猜你喜欢

微服务开发环境搭建

Qt实现思维导图功能(二)

传感器:MQ-5燃气模块测量燃气值(底部附代码)

Opencv camera calibration (1): internal and external parameters, distortion coefficient calibration and 3D point to 2D image projection

Introduction to Google unit testing tools GTEST and gmoke

Use of Arduino series pressure sensors and detected data displayed by OLED (detailed tutorial)
![[learning notes] xr872 GUI littlevgl 8.0 migration (display part)](/img/5e/fc8c3fe3029c36648fbc3f48bc0c2f.jpg)
[learning notes] xr872 GUI littlevgl 8.0 migration (display part)

Developer contributions amd Xilinx Chinese Forum sharing - wisdom of questioning

Build MySQL environment under mac
![[work notes] the problem of high leakage current in standby mode of dw7888 motor driver chip](/img/d1/c4776e3db1b7560331fa569c40831a.jpg)
[work notes] the problem of high leakage current in standby mode of dw7888 motor driver chip
随机推荐
The scientific innovation board successfully held the meeting, and the IPO of Kuangshi technology ushered in the dawn
16 embedded C language interview questions (Classic)
Pyflink implements custom sourcefunction
Répertoire d'exclusion du transport rsync
[work with notes] NDK compiles the open source library ffmpeg
LeetCode每日一题——890. 查找和替换模式
Vs how to enter chromium subprocess debugging
SWD debugging mode of stm32
Ctrip reshapes new Ctrip
Compiling minicom-2.7.1 under msys2
Topic creation and running example of ROS
Devexpress implementation flow chart
Devaxpress Chinese description --tcxpropertiesstore (property store recovery control)
SQL server deletes all tables and all stored procedures in the database
TensorFlow 2. X multi graphics card distributed training
Ten thousand words make it clear that synchronized and reentrantlock implement locks in concurrency
Detailed understanding of white noise
The first cell of devaxpress CXGRID after inserting a row is in focus editing status
STM32 external interrupt Usage Summary
Luzhengyao, who has entered the prefabricated vegetable track, still needs to stop being impatient