华为ipsec vpn配置案例

r1

interface GigabitEthernet0/0/0

ip address 10.0.12.1 255.255.255.0

interface GigabitEthernet0/0/1

ip address 10.0.13.1 255.255.255.0

R2

dhcp enable

acl number 3000 //捉取感兴趣的流,或都用虚拟隧道接口模式也可以

rule 5 permit ip source 192.168.0.0 0.0.0.255 destination 172.16.0.0 0.0.0.255

ipsec proposal ipp //定义IPSEC安全提义

ike proposal 1 //定义IKE安全提义

ike peer r3 v1 //定义IKE对等体

pre-shared-key cipher huawei

ike-proposal 1 //关联IKE安全提义

dpd type on-demand //对端存活检测

remote-address 10.0.13.3

ipsec policy r3 1 isakmp //定义ipsec安全策略

security acl 3000 //关联感兴趣流

ike-peer r3 //关联IKE对等体

proposal ipp //关联ipsec 安全提义

interface GigabitEthernet0/0/0

ip address 10.0.12.2 255.255.255.0

ipsec policy r3 //接口上应用安全ipsec安全策略

interface GigabitEthernet0/0/1

ip address 192.168.0.1 255.255.255.0

dhcp select interface

ip route-static 0.0.0.0 0.0.0.0 10.0.12.1

R3

acl number 3000

rule 5 permit ip source 172.16.0.0 0.0.0.255 destination 192.168.0.0 0.0.0.255

ipsec proposal ipp

ike proposal 1

ike peer r2 v1

pre-shared-key cipher huawei

ike-proposal 1

dpd type on-demand

remote-address 10.0.12.2

ipsec policy r2 1 isakmp

security acl 3000

ike-peer r2

proposal ipp

interface GigabitEthernet0/0/0

ip address 10.0.13.3 255.255.255.0

ipsec policy r2

interface GigabitEthernet0/0/1

ip address 172.16.0.1 255.255.255.0

dhcp select interface

ip route-static 0.0.0.0 0.0.0.0 10.0.13.1

查看

dis ipsec proposal

dis ike proposal number 1

dis ike peer name r2 verbose

dis ike sa

ping测试

相关推荐
老王熬夜敲代码11 分钟前
解决IP不够用的问题
linux·网络·笔记
来自于狂人29 分钟前
华为云Stack服务实例创建失败通用排查对照表(备考+生产故障定位必备)
服务器·数据库·华为云
QT 小鲜肉34 分钟前
【Linux命令大全】001.文件管理之file命令(实操篇)
linux·运维·前端·网络·chrome·笔记
摘星编程44 分钟前
CANN内存管理机制:从分配策略到性能优化
人工智能·华为·性能优化
qq_254674411 小时前
2025年软考网络规划设计师近期论文考题及范文分享
网络
问道飞鱼1 小时前
【Linux知识】Linux 虚拟机磁盘扩缩容操作指南(按文件系统分类)
linux·运维·服务器·磁盘扩缩容
_F_y2 小时前
Socket编程TCP
网络·网络协议·tcp/ip
风雨飘逸2 小时前
【shell&bash进阶系列】(二十一)向脚本传递参数(shift和getopts)
linux·运维·服务器·经验分享·bash
zly35002 小时前
删除文件(rm 命令 删除目录)
linux·运维·服务器
fbllfbll2 小时前
Alpine下部署Nginx+MAZANOKE在线批量压缩图片
服务器·nginx·pve·alpine·lxc容器·在线压缩图片·mazanoke