当前位置:网站首页>Huawei equipment configuration BGP as number replacement
Huawei equipment configuration BGP as number replacement
2022-06-12 14:21:00 【Tony_ long7483】

- P、PE Configuration between OSPF, Realize the backbone network IP Connectivity
[PE1-LoopBack1]ip add 1.1.1.1 32
[PE1-GigabitEthernet0/0/0]ip add 20.1.1.1 24
[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
[PE2-LoopBack1]ip add 3.3.3.3 32
[PE2-GigabitEthernet0/0/0]ip add 30.1.1.3 24
[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
[P-LoopBack1]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
[P]ospf 1
[P-ospf-1]area 0
[P-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.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 - PE、P On the configuration MPLS Basic abilities and MPLS LDP, establish MPLS LSP Public network tunnel , transmission VPN data
[PE1]mpls lsr-id 1.1.1.1
[PE1]mpls
[PE1]mpls ldp
[PE1-GigabitEthernet0/0/0]mpls
[PE1-GigabitEthernet0/0/0]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
[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 - PE Establish between MP-IBGP Peer relationship , Release VPNv4 route
[PE1]bgp 100
[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 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 - PE1 and PE2 On the configuration VPN example ,VPN-target Attributes are all 1:1, In order to realize the VPN Intercommunication . meanwhile , And CE Connected interfaces and corresponding VPN Instance binding , To access VPN user
[PE1]ip vpn-instance vpn1
[PE1-vpn-instance-vpn1]route-distinguisher 100:1
[PE1-vpn-instance-vpn1-af-ipv4]vpn-target 1:1
[PE1-GigabitEthernet0/0/1]ip binding vpn-instance vpn1
[PE1-GigabitEthernet0/0/1]ip add 10.1.1.1 24
[PE2]ip vpn-instance vpn1
[PE2-vpn-instance-vpn1]route-distinguisher 200:1
[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.2.1.3 24 - PE and CE Establish between EBGP Relationship , take CE Routing is introduced into PE in
[CE1-GigabitEthernet0/0/0]ip add 10.1.1.4 24
[CE1-GigabitEthernet0/0/1]ip add 192.168.1.4 24
[CE1]bgp 600
[CE1-bgp]peer 10.1.1.1 as-number 100
[CE1-bgp]import-route direct
[CE2-GigabitEthernet0/0/0]ip add 10.2.1.5 24
[CE2-GigabitEthernet0/0/1]ip add 192.168.2.5 24
[CE2]bgp 600
[CE2-bgp]peer 10.2.1.3 as-number 100
[CE2-bgp]import-route direct
[PE1]bgp 100
[PE1-bgp]ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1]peer 10.1.1.4 as-number 600
[PE1-bgp-vpn1]import-route direct
[PE2]bgp 100
[PE2-bgp]ipv4-family vpn-instance vpn1
[PE2-bgp-vpn1]peer 10.2.1.5 as-number 600
[PE2-bgp-vpn1]import-route direct

notice CE2 Be able to learn CE1 Access PE1 The network segment of the interface (10.1.1.0/24) The routing , But it didn't arrive CE1 Inside VPN(192.168.1.0/24) The routing .CE1 The same phenomenon also exists in 
notice PE Of VPN The instance has reached the opposite end CE Inside VPN The routing 
notice CE2 Did not receive 192.168.1.0/24 The routing
6. PE On the configuration BGP Of AS No. replacement function , To be able to receive AS Route with the same number , complete VPN Routing Exchange
[PE2]bgp 100
[PE2-bgp]ipv4-family vpn-instance vpn1
[PE2-bgp-vpn1]peer 10.2.1.5 substitute-as

notice PE2 towards CE2 Published route ,192.168.1.0/24 Of AS Path information is “100 100”
[PE1]bgp 100
[PE1-bgp]ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1]peer 10.1.1.4 substitute-as
7. Verify configuration

边栏推荐
- Player actual combat 16 xdecode class
- Two methods of implementing asynchronous calling function with QT
- If you want to build brand awareness, what bidding strategy can you choose?
- Summary of virtual box usage problems
- 【活动早知道】LiveVideoStack近期活动一览
- PMP敏捷知识点
- Word insert picture blocked by text
- [MySQL] basic database operation
- Mémoire de l'examen d'entrée à l'université
- What is automatic bidding? What are its advantages?
猜你喜欢

Two methods of implementing asynchronous calling function with QT

Lua tvalue structure

If you want to build brand awareness, what bidding strategy can you choose?

NotePad 常用设置

完美收官|详解 Go 分布式链路追踪实现原理

PMP敏捷知识点

Player practice 15 xdemux and avcodecparameters

After reading the question, you will point to offer 16 Integer power of numeric value

En langage C, la fonction principale appelle une autre fonction et assemble le Code pour comprendre

TestEngine with ID ‘junit-vintage‘ failed to discover tests
随机推荐
Shell脚本到底是什么高大上的技术吗?
正点原子STM32F429核心板的插座型号
Redis core configuration and advanced data types
Void pointer (void*) usage
WinDbg preview debug analysis createtoolhelp32snapshot
肝了一个月的原创小袁个人博客项目开源啦(博客基本功能都有,还包含后台管理)
Alicloud development board vscode development environment setup
Is Shell Scripting really a big technology?
Program analysis and Optimization - 6 loop optimization
SystemC uses SC_ report_ Handler processing log printing
Bridging and net
Leetcode 2185. Counts the string containing the given prefix
测试工程师如何转型测开
拆改廣告機---業餘解壓
Player practice 11 audio resampling
Axi4 increase burst / wrap burst/ fix burst and narrow transfer
C语言中主函数调用另外一个函数,汇编代码理解
CSDN博客积分规则
Communication flow analysis
Visual studio common shortcuts