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

相关推荐
叫我龙翔22 分钟前
【Linux】进程间关系与守护进程
linux·运维·服务器·计算机网络
麻辣韭菜23 分钟前
网络基础 【HTTP】
网络·c++·http
S hh43 分钟前
【Linux】进程地址空间
java·linux·运维·服务器·学习
萧鼎2 小时前
Python调试技巧:高效定位与修复问题
服务器·开发语言·python
Deryck_德瑞克2 小时前
Java网络通信—TCP
java·网络·tcp/ip
GodK7772 小时前
IP 数据包分包组包
服务器·网络·tcp/ip
梁诚斌2 小时前
VSOMEIP代码阅读整理(1) - 网卡状态监听
运维·服务器·网络
深情废杨杨2 小时前
服务器几核几G几M是什么意思?如何选择?
运维·服务器
康熙38bdc2 小时前
Linux 进程优先级
linux·运维·服务器
Web极客码2 小时前
常见的VPS或者独立服务器的控制面板推荐
运维·服务器·控制面板