1. <var id="fe6gj"></var>

    <rp id="fe6gj"><nav id="fe6gj"></nav></rp>

    <noframes id="fe6gj"><cite id="fe6gj"></cite>

    <ins id="fe6gj"><button id="fe6gj"><p id="fe6gj"></p></button></ins>
    1. <tt id="fe6gj"><i id="fe6gj"><sub id="fe6gj"></sub></i></tt>
        始創于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊有禮 登錄
        • 掛牌上市企業
        • 60秒人工響應
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補償
        您的位置: 網站首頁 > 幫助中心>文章內容

        IPsec VPN配置

        發布時間:  2012/9/4 18:00:41

        環境:接口地址都已經配置完,路由也配置了,雙方可以互相通信了

        密鑰認證的算法2種:md5和sha1

        加密算法2種: des和3des

        IPsec傳輸模式3種:

        AH驗證參數:ah-md5-hmac(md5驗證)、ah-sha-hmac(sha1驗證)

        ESP加密參數:esp-des(des加密)、esp-3des(3des加密)、esp-null(不對數據進行加密)

        ESP驗證參數:esp-md5-hma(md5驗證)、esp-sha-hmac(采用sha1驗證)

        1 啟用IKE協商

        routerA(config)#crypto isakmp policy 1 建立IKE協商策略(1是策略編號1-1000,號

        越小,優先級越高

        routerA(config-isakmap)#hash md5 密鑰認證的算法

        routerA(config-isakmap)#authentication pre-share 告訴路由使用預先共享的密鑰

        routerA(config)#crypto isakmp key 123456 address 20.20.20.22 (123456是設置的共享密

        20.20.20.22是對端的IP地

        址)。

        routerB(config)#crypto isakmp policy 1

        routerB(config-isakmap)#hash md5

        routerB(config-isakmap)#authentication pre-share

        routerB(config)#crypto isakmp key 123456 address 20.20.20.21 (路由B和A的配置除了這里

        的對端IP地址變成了20.20.20.21,其他都要一樣的)。

        2 配置IPSec相關參數

        routerA(cnfog)#crypto ipsec transform-set test ah-md5-hamc esp-des (test傳輸模式的名

        稱。ah-md5-hamc esp-des表示傳輸模式中采用的驗證和加

        密參數 )。

        routerA(config)#acess-list 101 permit ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255

        (定義哪些地址的報文加密或是不加密)

        routerB(config)#crypto ipsec transform-set test ah-md5-hamc esp-des

        routerB(config)#acess-list 101 permit ip 192.168.2.0 0.0.0.255 192.168.1.0 0.0.0.255

        (路由器B和A的配置除了這里的源和目的IP地址變了,其他都一樣)

        3 設置crypto map (目的把IKE的協商信息和IPSec的參數,整合到一起,起一個名字)

        routerA(config)#crypto map testmap 1 ipsec-isakmp (testmap:給crypto map起的名字。

        1:優先級。ipsec-isakmp:表示此IPSec鏈接采用IKE自動協商)

        routerA(config-crypto-map)#set peer 20.20.20.22 (指定此VPN鏈路,對端的IP地址)。

        routerA(config-crypto-map)#set transform-set test (IPSec傳輸模式的名字)

        routerA(config-crypto-map)#match address 101 (上面定義的ACL列表號)

        routerA(config)#crypto map testmap 1 ipsec-isakmp

        routerA(config-crypto-map)#set peer 20.20.20.21 (和A路由的配置只有這里的對端IP不一樣)

        routerA(config-crypto-map)#set transform-set test

        routerA(config-crypto-map)#match address 101

        4 把crypto map 的名字應用到端口

        routerA(config)#inter s0/0 (進入應用VPN的接口)

        routerA(config-if)#crypto map testmap (testmap:crypto map的名字)

        B路由和A完全一樣

        查看VPN的配置

        查看安全聯盟(SA)

        Router#show crypto ipsec sa

        顯示crypto map 內的所有配置

        router#show crypto map

        查看優先級

        router#show crypto isakmp policy


        本文出自:億恩科技【www.endtimedelusion.com】

        服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]

      1. 您可能在找
      2. 億恩北京公司:
      3. 經營性ICP/ISP證:京B2-20150015
      4. 億恩鄭州公司:
      5. 經營性ICP/ISP/IDC證:豫B1.B2-20060070
      6. 億恩南昌公司:
      7. 經營性ICP/ISP證:贛B2-20080012
      8. 服務器/云主機 24小時售后服務電話:0371-60135900
      9. 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
      10. 專注服務器托管17年
        掃掃關注-微信公眾號
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權所有  地址:鄭州市高新區翠竹街1號總部企業基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師   京公網安備41019702002023號
          0
         
         
         
         

        0371-60135900
        7*24小時客服服務熱線

         
         
        av不卡不卡在线观看_最近2018年中文字幕_亚洲欧美一区二区三区_一级A爱做片免费观看国产_日韩在线中文天天更新_伊人中文无码在线