华为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测试

相关推荐
binqian1 小时前
【linux】OpenSSH升级文档
linux·运维·网络
Bruce_Liuxiaowei1 小时前
2026年9月第2周网络安全形势周报
网络·安全·web安全·网络安全·漏洞评级
和裕1 小时前
蜂窝板 vs 七层瓦楞重型纸箱:大件工业设备运输性能与成本全对比
大数据·运维·网络·人工智能·算法
Dawn-bit2 小时前
Linux 运维基础扩展:跳板机、堡垒机与物理服务器全流程
linux·运维·服务器·云计算·运维开发
Jae den2 小时前
网络延迟为什么会影响游戏和实时业务?
网络·游戏
新时代牛马2 小时前
Linux 定时任务:crontab、anacron 与systemd timer
linux·运维·服务器
水域安全老周2 小时前
水趣钓鱼救生衣专利拆解:两级锁紧如何解决落水人衣分离
java·前端·网络
IT摆渡者2 小时前
1panel 配置申请手动解析网站SSL证书
服务器·网络协议·ssl
●VON2 小时前
Flutter 鸿蒙插件适配实战:用 clipboard_watcher 0.3.0 监听剪贴板变化
flutter·华为·harmonyos
疯狂打码的少年2 小时前
【计算机网络】子网掩码与子网划分计算(含CIDR表示法)
服务器·笔记·计算机网络·php