华为路由器 IPSec 与 GRE 结合实验

本文介绍了GRE隧道与IPSec相结合的配置方法,通过互补功能实现了安全的数据传输。包括R1、R2、R3三台路由器的具体配置步骤及抓包结果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

二者结合的目的

GRE 支持单播、组播、广播,IPSec 仅支持单播。GRE 不支持对于数据完整性以及身份认证的验证功能,并且也不具备数据加密保护。而 IPSec 恰恰拥有强大的安全机制。达到了互补的功效!

实验拓扑

1319058-20180624145808291-1439305557.png

各路由器配置

R1
sysname R1

ipsec proposal lance-proposal
esp authentication-algorithm sha1

ike peer lance-peer v2
pre-shared-key cipher huawei
 
ipsec profile lance
ike-peer lance-peer
proposal lance-proposal

interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0 

interface GigabitEthernet0/0/1
ip address 202.100.1.1 255.255.255.0 

interface Tunnel0/0/0
ip address 123.1.1.1 255.255.255.0 
tunnel-protocol gre
source 202.100.1.1
destination 61.128.1.1
gre key 1234
ipsec profile lance

ip route-static 61.128.1.0 255.255.255.0 202.100.1.10
R2
sysname R2

interface GigabitEthernet0/0/0
ip address 202.100.1.10 255.255.255.0 
interface GigabitEthernet0/0/1
ip address 61.128.1.10 255.255.255.0 
R3
sysname R3

ipsec proposal lance-proposal
esp authentication-algorithm sha1

ike peer lance-peer v2
pre-shared-key cipher huawei

ipsec profile lance
ike-peer lance-peer
proposal lance-proposal

interface GigabitEthernet0/0/0
ip address 10.0.0.1 255.255.255.0 

interface GigabitEthernet0/0/1
ip address 61.128.1.1 255.255.255.0 

interface Tunnel0/0/0
ip address 123.1.1.2 255.255.255.0 
tunnel-protocol gre
source 61.128.1.1
destination 202.100.1.1
gre key 1234
ipsec profile lance

ip route-static 0.0.0.0 0.0.0.0 61.128.1.10

抓包结果

1319058-20180624145817400-1467313269.png

转载于:https://www.cnblogs.com/GyForever1004/p/9220554.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值