当前位置:网站首页>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
边栏推荐
- Chapter IV expression
- WinDbg preview debug analysis createtoolhelp32snapshot
- Design of PLC intelligent slave station based on PROFIBUS DP protocol
- Is Shell Scripting really a big technology?
- Mémoire de l'examen d'entrée à l'université
- 使用make方法创建slice切片的坑
- Getting started alicloud haas510 open board DTU (version 2.0) --510-as
- Socket model of punctual atom stm32f429 core board
- 2022版Redis数据删除策略
- Leetcode questions brushing February /1020 Number of enclaves
猜你喜欢
NotePad 常用设置
Player practice 15 xdemux and avcodecparameters
Why do Chinese programmers change jobs?
How to realize the bidding strategy that pays more attention to transformation in the company's operation Google sem
CSDN blog points rule
TestEngine with ID ‘junit-vintage‘ failed to discover tests
Postgresql14 installation and use tutorial
How to package QT program learning records with inno setup
华为设备配置H虚拟专用网
Introduction to database system (Fifth Edition) notes Chapter 1 Introduction
随机推荐
注重点击,追求更多用户进入网站,可以选择什么出价策略?
SystemC:SC_ Thread and SC_ METHOD
QT realize picture dragging
Des File Encryptor based on MFC framework
【MySQL】数据库基本操作
To SystemC Beginners: the first program
Wait function in SystemC
Use of pytorch (to be supplemented)
Player practice 19 xaudio turn on audio
En langage C, la fonction principale appelle une autre fonction et assemble le Code pour comprendre
PMP敏捷知识点
Tool notes - common custom tool classes (regular, random, etc.)
Introduction to QT reflection mechanism and signal slot mechanism
【活动早知道】LiveVideoStack近期活动一览
Player practice 18 xresample
[MySQL] basic database operation
Sizeof calculation space size summary
Player actual combat 12 QT playing audio
Socket model of punctual atom stm32f429 core board
Dismantle and modify the advertising machine - Amateur decompression