当前位置:网站首页>华为设备配置通过GRE接入虚拟专用网
华为设备配置通过GRE接入虚拟专用网
2022-06-11 04:43:00 【Tony_long7483】

配置IP地址
[CE1-GigabitEthernet0/0/0]ip add 20.1.1.1 24
[CE1-GigabitEthernet0/0/1]ip add 10.1.1.1 24
[AR2-GigabitEthernet0/0/0]ip add 20.1.1.2 24
[AR2-GigabitEthernet0/0/1]ip add 30.1.1.2 24
[PE1-GigabitEthernet0/0/0]ip add 30.1.1.3 24
[PE1-GigabitEthernet0/0/1]ip add 40.1.1.3 24
[PE1-LoopBack0]ip add 3.3.3.3 32
[PE2-GigabitEthernet0/0/0]ip add 40.1.1.4 24
[PE2-GigabitEthernet0/0/1]ip add 11.1.1.4 24
[PE2-LoopBack0]ip add 4.4.4.4 32
[CE2-GigabitEthernet0/0/0]ip add 11.1.1.5 24
[CE2-GigabitEthernet0/0/1]ip add 10.2.1.5 24

配置PE的路由及MPLS
[PE1]mpls lsr-id 3.3.3.3
[PE1]mpls
[PE1-mpls]lsp-trigger all
[PE1]mpls ldp
[PE1]ospf 1
[PE1-ospf-1]area 0
[PE1-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[PE1-ospf-1-area-0.0.0.0]network 40.1.1.0 0.0.0.255
[PE1-GigabitEthernet0/0/1]mpls
[PE1-GigabitEthernet0/0/1]mpls ldp
[PE2]mpls lsr-id 4.4.4.4
[PE2]mpls
[PE2-mpls]lsp-trigger all
[PE2]mpls ldp
[PE2]ospf 1
[PE2-ospf-1]area 0
[PE2-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[PE2-ospf-1-area-0.0.0.0]network 40.1.1.0 0.0.0.255
[PE2-GigabitEthernet0/0/0]mpls
[PE2-GigabitEthernet0/0/0]mpls ldp在PE1创建VPN实例vpn1并与GRE隧道绑定
[PE1]ip vpn-instance vpn1
[PE1-vpn-instance-vpn1]route-distinguisher 100:1
[PE1-vpn-instance-vpn1-af-ipv4]vpn-target 111:1 export-extcommunity
[PE1-vpn-instance-vpn1-af-ipv4]vpn-target 111:1 import-extcommunity
[PE1]int Tunnel 0/0/1
[PE1-Tunnel0/0/1]ip binding vpn-instance vpn1
[PE1-Tunnel0/0/1]ip add 2.2.2.3 24在PE2创建VPN实例vpn1并与PC侧接口绑定
[PE2]ip vpn-instance vpn1
[PE2-vpn-instance-vpn1]route-distinguisher 200:1
[PE2-vpn-instance-vpn1-af-ipv4]vpn-target 111:1 export-extcommunity
[PE2-vpn-instance-vpn1-af-ipv4]vpn-target 111:1 import-extcommunity
[PE2-GigabitEthernet0/0/1]ip binding vpn-instance vpn1
[PE2-GigabitEthernet0/0/1]ip add 11.1.1.4 24配置GRE隧道的Tunnel接口
[CE1]int Tunnel 0/0/1
[CE1-Tunnel0/0/1]tunnel-protocol gre
[CE1-Tunnel0/0/1]source 20.1.1.1
[CE1-Tunnel0/0/1]destination 30.1.1.3
[CE1-Tunnel0/0/1]ip add 2.2.2.1 24
[PE1]int Tunnel 0/0/1
[PE1-Tunnel0/0/1]tunnel-protocol gre
[PE1-Tunnel0/0/1]source 30.1.1.3
[PE1-Tunnel0/0/1]destination 20.1.1.1配置CE1、AR2和PE1之间的路由协议
[CE1]ospf 2
[CE1-ospf-2]area 0
[CE1-ospf-2-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[AR2]ospf 2
[AR2-ospf-2]area 0
[AR2-ospf-2-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[AR2-ospf-2-area-0.0.0.0]network 30.1.1.0 0.0.0.255
[PE1]ospf 2
[PE1-ospf-2]area 0
[PE1-ospf-2-area-0.0.0.0]network 30.1.1.0 0.0.0.255配置CE1与PE1之间的IS-IS路由
[CE1]isis 20
[CE1-isis-20]network-entity 20.0000.0000.0001.00
[CE1-GigabitEthernet0/0/0]isis enable 20
[CE1-Tunnel0/0/1]isis enable 20
[PE1]isis 20 vpn-instance vpn1
[PE1-isis-20]network-entity 20.0000.0000.0003.00
[PE1]int Tunnel 0/0/1
[PE1-Tunnel0/0/1]isis enable 20配置CE2与PE2之间的IS-IS路由
[CE2]isis 20
[CE2-isis-20]network-entity 20.0000.0000.0005.00
[CE2-GigabitEthernet0/0/0]isis enable 20
[CE2-GigabitEthernet0/0/1]isis enable 20
[PE2]isis 20 vpn-instance vpn1
[PE2-isis-20]network-entity 20.0000.0000.0004.00
[PE2-GigabitEthernet0/0/1]isis enable 20在PE之间建立MP-IBGP对等体
[PE1]bgp 100
[PE1-bgp]peer 4.4.4.4 as-number 100
[PE1-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[PE1-bgp]ipv4-family vpnv4
[PE1-bgp-af-vpnv4]peer 4.4.4.4 enable
[PE1-bgp]ipv4-family vpn-instance vpn1 //进入BGP的vpn1实例
[PE1-bgp-vpn1]import-route isis 20 //引入IS-IS路由
[PE2]bgp 100
[PE2-bgp]peer 3.3.3.3 as-number 100
[PE2-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp-af-vpnv4]peer 3.3.3.3 enable
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp]ipv4-family vpn-instance vpn1
[PE2-bgp-vpn1]import-route isis 20在IS-IS中引入BGP路由
[PE1]isis 20
[PE1-isis-20]import-route bgp
[PE2]isis 20
[PE2-isis-20]import-route bgp检查配置


边栏推荐
- C语言试题三(语法选择题——含知识点详解)
- 数据中台和数据仓库有什么异同?
- Sorting out relevant programming contents of renderfeature of unity's URP
- Possible errors during alphapose installation test
- 关于串口波特率的的记录
- Simple knowledge distillation
- 华为设备配置跨域虚拟专用网
- [Transformer]On the Integration of Self-Attention and Convolution
- Hiredis determines the master node
- 图的最短路径问题 详细分解版
猜你喜欢

Check the digital tube with a multimeter

Huawei equipment is configured with cross domain virtual private network

Redis持久化(少年一贯快马扬帆,道阻且长不转弯)

Carbon path first, Huawei digital energy injects new momentum into the green development of Guangxi

Cartographer learning record: cartographer Map 3D visualization configuration (self recording dataset version)

Exness: liquidity series - order block, imbalance (II)

What are the similarities and differences between the data center and the data warehouse?

Unity Editor Extension save location

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

meedu知识付费解决方案 v4.5.4源码
随机推荐
[Transformer]MViTv2:Improved Multiscale Vision Transformers for Classification and Detection
Pytoch machine learning GPU usage (conversion from CPU to GPU)
CONDA switching
图的最短路径问题 详细分解版
Sorting out relevant programming contents of renderfeature of unity's URP
Ican uses fast r-cnn to get an empty object detection result file
RGB image histogram equalization and visualization matlab code
Simple knowledge distillation
2022年新高考1卷17题解析
International qihuo: what are the risks of Zhengda master account
Huawei equipment is configured with cross domain virtual private network
How to calculate the handling charge of international futures gold?
国际期货黄金手续费怎么算?
[Transformer]AutoFormerV2:Searching the Search Space of Vision Transformer
Feature engineering feature dimension reduction
梅州P2实验室建设方案阐述
国际琪貨:做正大主帐户风险有那些
Batch naming picture names
USB to 232 to TTL overview
关于串口波特率的的记录