当前位置: 首页 > news >正文

华为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测试
在这里插入图片描述

相关文章:

  • 备考ICA----Istio实验17---TCP流量授权
  • .NET 设计模式—装饰器模式(Decorator Pattern)
  • 【java面试题-Redis篇-2024】
  • ardupilot安装python
  • TSINGSEE青犀边缘计算AI智能分析网关V4客流统计算法的配置步骤及使用
  • 7-36 输入年份和月份
  • 公网环境下如何端口映射?
  • k8s_入门_kubelet安装
  • 全国火情预报卫星遥感应用方案
  • c语言中有哪些格式说明符,在scanf 会在遇到空白字符(空格、制表符或换行符)时停止读取(即scanf会忽略空格)
  • Verilog语法——按位取反“~“和位宽扩展的优先级
  • ADB 操作命令及其详细用法
  • 蓝桥杯小白入门赛第9场第5题 无理数位数查询
  • 跨越网络边界:借助C++编写的下载器程序,轻松获取Amazon商品信息
  • 关于项目中遇到的一些form表单校验
  • 常规的k8s的监控指标
  • 京东滑块验证逆向分析与算法还原
  • 合并主分支到子分支
  • 设计模式总结-外观模式(门面模式)
  • 前端三剑客 —— CSS (第五节)
  • 从孔雀尾巴到蒙娜丽莎,一个鸟类学博士眼中的“美”
  • 中国人保不再设监事会,国寿集团未再设置监事长职务
  • 巴西外长维埃拉:国际形势日益复杂,金砖国家必须发挥核心作用
  • 成都警方:在地铁公共区域用改装设备偷拍女乘客,男子被行拘
  • 解放日报头版聚焦“人民城市”:共建共享展新卷
  • 2025上海体育消费节启动,多形式联动打造体育消费盛宴