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

相关推荐
Hill_HUIL1 小时前
学习日志23-路由高级特性(静态路由)
网络·学习
cyhty1 小时前
静态路由实验报告
网络·网络安全
Chen放放1 小时前
【华三】VXLAN-三层集中式网关配置
运维·网络
花火Neko`1 小时前
openwrt防火墙安全配置
网络·安全·智能路由器·istoreos
Wen1 小时前
小米路由器4A千兆刷OPENWRT(简单快速)
网络·经验分享·智能路由器
碎梦归途1 小时前
思科网络设备配置命令大全,涵盖从交换机到路由器的核心配置命令
linux·运维·服务器·网络·网络协议·路由器·交换机
七维大脑虚拟机1 小时前
飞牛NAS公网IPv6+DDNS远程访问零延迟教程
运维·服务器·网络
小天源2 小时前
nginx在centos7上热升级步骤
linux·服务器·nginx
珠海西格电力科技2 小时前
微电网系统架构设计:并网/孤岛双模式运行与控制策略
网络·人工智能·物联网·系统架构·云计算·智慧城市
浩浩测试一下2 小时前
从Web 到 域控 <----> 企业级内网渗透思路
网络