当前位置:网站首页>Huawei equipment is configured with bgp/mpls IP virtual private network
Huawei equipment is configured with bgp/mpls IP virtual private network
2022-06-11 04:51:00 【Tony_ long7483】

1. To configure IP Address
[PE1-LoopBack0]ip add 1.1.1.1 32
[PE1-GigabitEthernet0/0/0]ip add 20.1.1.1 24
[PE1-GigabitEthernet0/0/1]ip add 10.1.1.1 24
[PE1-GigabitEthernet0/0/2]ip add 10.2.1.1 24
[P-LoopBack0]ip add 2.2.2.2 32
[P-GigabitEthernet0/0/0]ip add 20.1.1.2 24
[P-GigabitEthernet0/0/1]ip add 30.1.1.2 24
[PE2-LoopBack0]ip add 3.3.3.3 32
[PE2-GigabitEthernet0/0/0]ip add 30.1.1.3 24
[PE2-GigabitEthernet0/0/1]ip add 10.3.1.3 24
[PE2-GigabitEthernet0/0/2]ip add 10.4.1.3 24
[CE1-GigabitEthernet0/0/0]ip add 10.1.1.10 24
[CE2-GigabitEthernet0/0/0]ip add 10.2.1.20 24
[CE3-GigabitEthernet0/0/0]ip add 10.3.1.30 24
[CE4-GigabitEthernet0/0/0]ip add 10.4.1.40 24
2. stay PE1、P、PE2 To configure OSPF agreement
[PE1]ospf 1
[PE1-ospf-1]area 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 1.1.1.1 0.0.0.0
[P]ospf 1
[P-ospf-1]area 0
[P-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[P-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
[P-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[PE2]ospf 1
[PE2-ospf-1]area 0
[PE2-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
3. stay PE1、P、PE2 To configure 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
[P]mpls lsr-id 2.2.2.2
[P]mpls
[P]mpls ldp
[P-GigabitEthernet0/0/0]mpls
[P-GigabitEthernet0/0/0]mpls ldp
[P-GigabitEthernet0/0/1]mpls
[P-GigabitEthernet0/0/1]mpls ldp
[PE2]mpls lsr-id 3.3.3.3
[PE2]mpls
[PE2]mpls ldp
[PE2-GigabitEthernet0/0/0]mpls
[PE2-GigabitEthernet0/0/0]mpls ldp
stay PE The device is configured with VPN example , take CE Access PE
[PE1]ip vpn-instance vpna
[PE1-vpn-instance-vpna]route-distinguisher 100:1
[PE1-vpn-instance-vpna-af-ipv4]vpn-target 111:1 both
[PE1]ip vpn-instance vpnb
[PE1-vpn-instance-vpnb]route-distinguisher 100:2
[PE1-vpn-instance-vpnb-af-ipv4]vpn-target 222:2 both
[PE1-GigabitEthernet0/0/1]ip binding vpn-instance vpna
[PE1-GigabitEthernet0/0/1]ip add 10.1.1.1 24
[PE1-GigabitEthernet0/0/2]ip binding vpn-instance vpnb
[PE1-GigabitEthernet0/0/2]ip add 10.2.1.1 24
[PE2]ip vpn-instance vpna
[PE2-vpn-instance-vpna]route-distinguisher 200:1
[PE2-vpn-instance-vpna-af-ipv4]vpn-target 111:1 both
[PE2]ip vpn-instance vpnb
[PE2-vpn-instance-vpnb]route-distinguisher 200:2
[PE2-vpn-instance-vpnb-af-ipv4]vpn-target 222:2 both
[PE2-GigabitEthernet0/0/1]ip binding vpn-instance vpna
[PE2-GigabitEthernet0/0/1]ip add 10.3.1.3 24
[PE2-GigabitEthernet0/0/2]ip binding vpn-instance vpnb
[PE2-GigabitEthernet0/0/2]ip add 10.4.1.3 24

stay PE And CE Establish between EBGP Peer relationship , introduce VPN route
[CE1]bgp 65410
[CE1-bgp]peer 10.1.1.1 as-number 100
[CE1-bgp]import-route direct
[CE2]bgp 65420
[CE2-bgp]peer 10.2.1.1 as-number 100
[CE2-bgp]import-route direct
[CE3]bgp 65430
[CE3-bgp]peer 10.3.1.3 as-number 100
[CE3-bgp]import-route direct
[CE4]bgp 65440
[CE4-bgp]peer 10.4.1.3 as-number 100
[CE4-bgp]import-route direct
[PE1]bgp 100
[PE1-bgp]ipv4-family vpn-instance vpna
[PE1-bgp-vpna]peer 10.1.1.10 as-number 65410
[PE1-bgp-vpna]import-route direct
[PE1-bgp]ipv4-family vpn-instance vpnb
[PE1-bgp-vpnb]peer 10.2.1.20 as-number 65420
[PE1-bgp-vpnb]import-route direct
[PE2]bgp 100
[PE2-bgp]ipv4-family vpn-instance vpna
[PE2-bgp-vpna]peer 10.3.1.30 as-number 65430
[PE2-bgp-vpna]import-route direct
[PE2-bgp]ipv4-family vpn-instance vpnb
[PE2-bgp-vpnb]peer 10.4.1.40 as-number 65440
[PE2-bgp-vpnb]import-route direct

stay PE Establish between MP-IBGP Peer relationship
[PE1]bgp 100
[PE1-bgp]peer 3.3.3.3 as-number 100
[PE1-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[PE1-bgp]ipv4-family vpnv4
[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 0
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp-af-vpnv4]peer 1.1.1.1 enable
Check the configuration


same VPN Of CE To be able to Ping through , Different VPN Of CE You can't talk to each other Ping through
边栏推荐
- 福州口罩洁净厂房建设知识概述
- Mathematical basis of information and communication -- the first experiment
- Leetcode question brushing series - mode 2 (datastructure linked list) - 19:remove nth node from end of list (medium) delete the penultimate node in the linked list
- Real time update of excellent team papers
- Free data | new library online | cnopendata data data of national heritage stores and auction enterprises
- Best practices and principles of lean product development system
- New library goes online | cnopendata immovable cultural relic data
- tensorflow1. X and tensorflow2 Conversion of X
- Parametric contractual learning: comparative learning in long tail problems
- go单元测试实例;文件读写;序列化
猜你喜欢

codesys 获取系统时间

精益产品开发体系最佳实践及原则

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

Parametric contractual learning: comparative learning in long tail problems

New library goes online | cnopendata immovable cultural relic data

Redis persistence (young people always set sail with a fast horse, with obstacles and long turns)

Powerful new UI installation force artifact wechat applet source code + multiple templates support multiple traffic main modes

Redis master-slave replication, sentinel, cluster cluster principle + experiment (wait, it will be later, but it will be better)

Acts: efficient test design (with an excellent test design tool)

Mindmanager22 professional mind mapping tool
随机推荐
tensorflow1. X and tensorflow2 Conversion of X
Tianchi - student test score forecast
C语言试题三(程序选择题——含知识点详解)
How to quickly find the official routine of STM32 Series MCU
go单元测试实例;文件读写;序列化
Redis persistence (young people always set sail with a fast horse, with obstacles and long turns)
Carbon path first, Huawei digital energy injects new momentum into the green development of Guangxi
Pytoch machine learning GPU usage (conversion from CPU to GPU)
Bas Bound, Upper Bound, deux points
2020-12-24
SAVING AND LOADING A GENERAL CHECKPOINT IN PYTORCH
[Transformer]MViTv2:Improved Multiscale Vision Transformers for Classification and Detection
Use of mmdetection
Split all words into single words and delete the product thesaurus suitable for the company
Hiredis determines the master node
华为设备配置MCE
Legend has it that setting shader attributes with shader ID can improve efficiency:)
MindManager22专业版思维导图工具
Collation of construction data of Meizhou plant tissue culture laboratory
Decision tree (hunt, ID3, C4.5, cart)