当前位置:网站首页>华为设备配置H虚拟专用网
华为设备配置H虚拟专用网
2022-06-12 14:11:00 【Tony_long7483】

- 配置IP地址
[UPE-LoopBack0]ip add 1.1.1.1 32
[UPE-GigabitEthernet0/0/0]ip add 20.1.1.1 24
[UPE-GigabitEthernet0/0/1]ip add 10.1.1.1 24
[SPE-LoopBack0]ip add 2.2.2.2 32
[SPE-GigabitEthernet0/0/0]ip add 20.1.1.2 24
[SPE-GigabitEthernet0/0/1]ip add 30.1.1.2 24
[PE]int LoopBack 0
[PE-LoopBack0]ip add 3.3.3.3 32
[PE-GigabitEthernet0/0/0]ip add 30.1.1.3 24
[PE-GigabitEthernet0/0/1]ip add 10.2.1.3 24
[CE1-GigabitEthernet0/0/0]ip add 10.1.1.4 24
[CE2-GigabitEthernet0/0/0]ip add 10.2.1.5 24 - 在骨干网设备上配置OSPF,实现骨干网的IP连通性
[UPE]ospf 1
[UPE-ospf-1]area 0
[UPE-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[UPE-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[SPE]ospf 1
[SPE-ospf-1]area 0
[SPE-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[SPE-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255
[SPE-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[PE]ospf 1
[PE-ospf-1]area 0
[PE-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[PE-ospf-1-area-0.0.0.0]network 30.1.1.0 0.0.0.255 - 在骨干网上配置MPLS基本能力和MPLS LDP,建立LDP LSP
[UPE]mpls lsr-id 1.1.1.1
[UPE]mpls
[UPE]mpls ldp
[UPE-GigabitEthernet0/0/0]mpls
[UPE-GigabitEthernet0/0/0]mpls ldp
[SPE]mpls lsr-id 2.2.2.2
[SPE]mpls
[SPE]mpls ldp
[SPE-GigabitEthernet0/0/0]mpls
[SPE-GigabitEthernet0/0/0]mpls ldp
[SPE-GigabitEthernet0/0/1]mpls
[SPE-GigabitEthernet0/0/1]mpls ldp
[PE]mpls lsr-id 3.3.3.3
[PE]mpls
[PE]mpls ldp
[PE-GigabitEthernet0/0/0]mpls
[PE-GigabitEthernet0/0/0]mpls ldp - 配置UPE与SPE、PE与SPE的MP-IBGP对等体关系
[UPE]bgp 100
[UPE-bgp]peer 2.2.2.2 as-number 100
[UPE-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[UPE-bgp]ipv4-family vpnv4
[UPE-bgp-af-vpnv4]peer 2.2.2.2 enable
[SPE]bgp 100
[SPE-bgp]peer 1.1.1.1 as-number 100
[SPE-bgp]peer 1.1.1.1 connect-interface LoopBack 0
[SPE-bgp]peer 3.3.3.3 as-number 100
[SPE-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[SPE-bgp]ipv4-family vpnv4
[SPE-bgp-af-vpnv4]peer 1.1.1.1 enable
[SPE-bgp-af-vpnv4]peer 3.3.3.3 enable
[PE]bgp 100
[PE-bgp]peer 2.2.2.2 as-number 100
[PE-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[PE-bgp]ipv4-family vpnv4
[PE-bgp-af-vpnv4]peer 2.2.2.2 enable - UPE和PE上创建VPN实例,并与CE间配置EBGP
[UPE]ip vpn-instance vpna
[UPE-vpn-instance-vpna]ipv4-family
[UPE-vpn-instance-vpna-af-ipv4]route-distinguisher 100:1
[UPE-vpn-instance-vpna-af-ipv4]vpn-target 1:1
[UPE-GigabitEthernet0/0/1]ip binding vpn-instance vpna
[UPE-GigabitEthernet0/0/1]ip add 10.1.1.1 24
[UPE]bgp 100
[UPE-bgp]ipv4-family vpn-instance vpna
[UPE-bgp-vpna]peer 10.1.1.4 as-number 65410
[UPE-bgp-vpna]import-route direct
[CE1]bgp 65410
[CE1-bgp]peer 10.1.1.1 as-number 100
[CE1-bgp]import-route direct
[PE]ip vpn-instance vpna
[PE-vpn-instance-vpna]ipv
[PE-vpn-instance-vpna]ipv4-family
[PE-vpn-instance-vpna-af-ipv4]route-distinguisher 100:2
[PE-vpn-instance-vpna-af-ipv4]vpn-target 1:1
[PE-GigabitEthernet0/0/1]ip binding vpn-instance vpna
[PE-GigabitEthernet0/0/1]ip add 10.2.1.3 24
[PE]bgp 100
[PE-bgp]ipv4-family vpn-instance vpna
[PE-bgp-vpna]peer 10.2.1.5 as-number 65420
[PE-bgp-vpna]import-route direct
[CE2]bgp 65420
[CE2-bgp]peer 10.2.1.3 as-number 100
[CE2-bgp]import-route direct - SPE上配置路由反射器
[SPE]bgp 100
[SPE-bgp]ipv4-family vpnv4
[SPE-bgp-af-vpnv4]undo policy vpn-target
[SPE-bgp-af-vpnv4]peer 1.1.1.1 reflect-client
[SPE-bgp-af-vpnv4]peer 1.1.1.1 next-hop-local - 检查配置


边栏推荐
- Knowledge of wireless card driver
- Redis data deletion policy in 2022
- TestEngine with ID ‘junit-vintage‘ failed to discover tests
- 拆改廣告機---業餘解壓
- Pay attention to click and pursue more users to enter the website. What bidding strategy can you choose?
- Player actual combat 22 to solve the problems of flower screen and Caton
- How to use Android studio to create an Alibaba cloud Internet of things app
- CSDN博客积分规则
- 测试工程师如何转型测开
- Player actual combat 16 xdecode class
猜你喜欢

Player actual combat 21 audio and video synchronization

CSDN blog points rule

Llvm pass-- virtual function protection

CSDN博客积分规则

Leetcode 2185. Counts the string containing the given prefix

Démontage et modification de la machine publicitaire - décompression amateur

对某热水软件的加密参数逆向

注重点击,追求更多用户进入网站,可以选择什么出价策略?

Tcp/ip network communication knowledge record

Display logs in the database through loganalyzer
随机推荐
Socket model of punctual atom stm32f429 core board
QA of some high frequency problems in oauth2 learning
Fourteen week assignment
Introduction to functions (inline functions and function overloading)
Why do Chinese programmers change jobs?
Word insert picture blocked by text
Tool notes - common custom tool classes (regular, random, etc.)
C语言中主函数调用另外一个函数,汇编代码理解
Démontage et modification de la machine publicitaire - décompression amateur
Tlm/systemc: TLM socket binding problem
Alibaba cloud development board haas510 submission device attributes
Lua tvalue structure
Reverse analysis from x86 to x64tips
Llvm 13.1 new pass plug-in form [for win]
阿里云开发板HaaS510连接物联网平台--HaaS征文
Now you must know the pointer
Shell notes
SystemC learning materials
3. Process concealment under the ring ----- continuous concealment and new opening prevention
Player practice 19 xaudio turn on audio