• 核心实验23_GRE over IPsec vpn_ENSP


    项目场景:

    核心实验23_GRE over IPsec vpn_ENSP


    实搭拓扑图:

    在这里插入图片描述


    总部R3具体操作:

    1.确保公网地址可达

    
    [R3]ip route-static 0.0.0.0 0 23.1.1.2
    [R4]ip route-static 0.0.0.0 0 24.1.1.2
    
    • 1
    • 2
    • 3

    2.创建安全提议以及安全策略

    对数据加密和
    认证的一个方案(认证算法、加密算法、以及隧道封装模式 、IKE版本 、认证密码 等等)

    AH 只能用来做认证和校验
    ESP 既能用来做认证、校验也能用来做数据加密
    AH : 可以选择认证算法
    ESP:可以选择认证和加密两类算法
    默认封装方式:
    默认采用esp模式的隧道封装
    相应esp认证算法:MD5-HMAC-96
    esp加密算法:DES

    ipsec proposal aa 创建安全提议aa
    #
    ike proposal 5
    #
    ike peer ShangHai v2
    pre-shared-key cipher huawei
    ike-proposal 5
    #
    ipsec profile TO_ShangHai
    ike-peer ShangHai
    proposal aa
    ike peer NanJing v2
    pre-shared-key cipher huawei
    ike-proposal 5
    #
    ipsec profile TO_NanJing
    ike-peer NanJing
    proposal aa
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18

    3.创建GRE隧道接口 并将ipsec vpn 策略文件调用到隧道口

    interface Tunnel0/0/0
    ip address 192.168.13.3 255.255.255.0
    tunnel-protocol gre
    source GigabitEthernet0/0/0
    destination 12.1.1.1
    ipsec profile TO_ShangHai
    interface Tunnel0/0/1
    ip address 192.168.34.3 255.255.255.0
    tunnel-protocol gre
    source GigabitEthernet0/0/0
    destination 24.1.1.4
    ipsec profile TO_NanJing
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12

    4.配置动态路由协议 (静态也可以)

    ospf 1
    area 0
    network 192.168.3.0 0.0.0.255
    network 192.168.13.0 0.0.0.255
    network 192.168.34.0 0.0.0.255
    
    • 1
    • 2
    • 3
    • 4
    • 5

    上海分支R1具体操作(南京同理):

    1.公网地址可达

    [R1]ip route-static 0.0.0.0 0 12.1.1.2
    
    • 1

    2.创建 安全提议:对数据加密和认证的一个方案(认证算法、加密算法、以及隧道封装模式 、IKE版本 、认证密码 等等)

    ipsec proposal aa
    #
    ike proposal 5
    #
    ike peer ZongBu v2
    pre-shared-key cipher huawei
    ike-proposal 5
    #
    ipsec profile TO_ZongBu
    ike-peer ZongBu
    proposal aa
    #
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12

    3.创建tunnel 隧道 并调用ipsec

    int tu0/0/0
    ip address 192.168.13.1 255.255.255.0
    tunnel-protocol gre
    source GigabitEthernet0/0/0
    destination 23.1.1.3
    ipsec profile TO_ZongBu
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    4.配置ospf (或者静态)

    ospf 1
    area 0
    network 192.168.1.0 0.0.0.255
    network 192.168.13.0 0.0.0.255
    
    • 1
    • 2
    • 3
    • 4
  • 相关阅读:
    KepServer EX6模拟仿真PlC数据以及点表的复制跟项目的迁移
    Apache Doris (五十一): Doris数据缓存
    SWIFT中最常见的内存泄漏陷阱
    GitHub要求开启2FA,否则不让用了。
    薪资25k,从华为外包测试“跳”入字节,说说我转行做测试的这5年...
    javascript从0到0.9手写一个windows计算器
    Spring-MVC
    定压补水装置 隔膜式定压补水装置
    【金TECH频道】从第一性原理出发,数字原生银行原来可以这样做
    优先队列题目:数据流的中位数
  • 原文地址:https://blog.csdn.net/garliccc/article/details/132872450