成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

GRE隧道與IPsec的結合

安全
有關于IPsec的相關內容,這篇文章主要講解GRE隧道與IPsec的相關內容。希望本文的內容,能夠對網管員有一個很好的幫助。

在前面,我們講解過了關于采用積極模式并PSK的IPsec VPN配置基于PSK的IPsec VPN配置的相關內容,那么下面我們主要分析一下GRE和IPsec的相關內容。GRE隧道本身不帶安全特性,可以通過結合基于PSK的IPsec來實現安全功能.拓撲如下:

GRE隧道與IPsec的結合

1.R1基本配置:

  1. R1(config)#interface loopback0  
  2. R1(config-if)#ip address 10.1.1.1 255.255.255.0  
  3. R1(config-if)#no shutdown  
  4. R1(config-if)#interface serial0/0  
  5. R1(config-if)#ip address  192.168.1.1 255.255.255.252  
  6. R1(config-if)#clock rate 56000  
  7. R1(config-if)#no shutdown  
  8. R1(config)#interface tunnel 0  
  9. R1(config-if)#ip unnumbered serial0/0  
  10. R1(config-if)#tunnel source serial0/0  
  11. R1(config-if)#tunnel destination 192.168.1.1  
  12. R1(config-if)#tunnel mode gre ip       /---可以不打,默認即為GRE---/  
  13. R1(config-if)#no shutdown  
  14. R1(config-if)#exit  
  15.  

2.定義感興趣流量與路由協議:

  1. R1(config)#access-list 100 permit gre host 192.168.1.1 host 192.168.1.2  
  2. R1(config)#ip route 0.0.0.0 0.0.0.0 serial0/0  
  3. R1(config)#ip route 10.2.2.0 255.255.255.0 serial0/0  
  4.  

3.全局啟用ISAKMP并定義對等體及其PSK(預共享密鑰):

  1. R1(config)#crypto isakmp enable   
  2. R1(config)#crypto isakmp key 91lab address 192.168.1.2  
  3.  

4.定義IKE策略:

  1. R1(config)#crypto isakmp policy 10  
  2. R1(config-isakmp)#encryption aes 128     /---默認是DES加密---/  
  3. R1(config-isakmp)#hash sha            /---默認是SHA-1---/  
  4. R1(config-isakmp)#authentication pre-share       
  5. R1(config-isakmp)#group 2             /---默認是768位的DH1---/  
  6. R1(config-isakmp)#lifetime 3600        /---默認是86400秒---/  
  7. R1(config-isakmp)#exit  
  8.  

5.定義IPSec轉換集(transform set):

  1. R1(config)#crypto ipsec transform-set tt esp-aes 128 esp-sha-hmac   
  2. R1(cfg-crypto-trans)#mode tunnel   
  3. R1(cfg-crypto-trans)#exit  
  4.  

6.定義crypto map并應用在接口上:

  1. R1(config)#crypto map cisco 10 ipsec-isakmp   
  2. R1(config-crypto-map)#match address 100       
  3. R1(config-crypto-map)#set peer 192.168.1.2     /---定義要應用crypto map的對等體地址---/  
  4. R1(config-crypto-map)#set transform-set tt     /---定義crypto map要應用的IPsec轉換集---/  
  5. R1(config-crypto-map)#exit  
  6. R1(config)#interface serial0/0  
  7. R1(config-if)#crypto map cisco  
  8.  
  9.    
  10. *Mar  1 00:08:31.131: %CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is ON  
  11.  
  12. R1(config-if)#end  
  13. R1#  
  14.  

R1配置完成.

同理,R2相關配置如下:

  1. !   
  2. !  
  3. crypto isakmp policy 10  
  4. encr aes  
  5. authentication pre-share  
  6. group 2    
  7. crypto isakmp key 91lab address 192.168.1.1  
  8. !  
  9. !  
  10. crypto ipsec transform-set tt esp-aes esp-sha-hmac   
  11. !  
  12. crypto map cisco 10 ipsec-isakmp   
  13. set peer 192.168.1.1  
  14. set transform-set tt   
  15. match address 100  
  16. !  
  17. !  
  18. !  
  19. interface Tunnel0  
  20. ip unnumbered Serial0/0  
  21. tunnel source Serial0/0  
  22. tunnel destination 192.168.1.1  
  23. !  
  24. interface Loopback0  
  25. ip address 10.2.2.1 255.255.255.0  
  26. !  
  27. interface Serial0/0  
  28. ip address 192.168.1.2 255.255.255.252  
  29. crypto map cisco  
  30. !  
  31. ip route 0.0.0.0 0.0.0.0 Serial0/0  
  32. !  
  33. access-list 100 permit gre host 10.2.2.1 host 10.1.1.1  

 

責任編輯:佟健 來源: 51CTO整理
相關推薦

2009-12-28 14:00:46

2012-07-17 09:57:15

2009-08-25 17:12:33

思科認證CCNP

2023-10-22 11:54:19

2020-11-19 09:24:18

Linux GRE配置

2015-01-19 14:38:03

青云QingCloud

2015-01-20 09:07:26

青云青云QingCloud私有網絡

2011-11-25 13:34:56

IPsec VPNIPsec VPN協議

2014-09-03 10:09:23

LinuxOpenswan

2011-11-29 12:13:21

VPN

2010-08-26 15:36:30

DHCP路由

2010-06-03 15:04:31

NAP IPSEC配置

2012-09-26 09:49:44

2017-08-16 08:45:50

EVPNVXLAN網絡

2010-07-12 17:06:04

GRE協議

2011-03-14 18:30:16

GRE

2011-11-25 13:49:17

2009-06-04 10:44:34

StrutsHibernate配合

2010-03-19 15:39:41

云計算

2022-05-17 09:19:17

XebianLinuxLinux 發行版
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 久久亚洲国产精品 | 欧美4p | 羞羞在线视频 | 成人欧美一区二区三区黑人孕妇 | 日日做夜夜爽毛片麻豆 | 性高湖久久久久久久久 | 国产精品一区二区三区免费观看 | 国产精品久久9 | av在线黄 | 日韩一区二区三区av | 免费亚洲一区二区 | 欧美黄色免费网站 | 天天成人综合网 | www精品美女久久久tv | 欧美日韩在线一区二区三区 | 毛片com | 插插插干干干 | 毛片一级黄色 | 成人av鲁丝片一区二区小说 | 日韩视频免费看 | 中文字幕在线观看第一页 | 影音先锋中文在线 | www.色.com| 在线观看中文字幕亚洲 | 中文字幕视频三区 | 久久一区二区三区四区 | 黄色成人免费在线观看 | 青草青草久热精品视频在线观看 | 精品国产一区三区 | 黑人巨大精品欧美一区二区免费 | 亚洲福利在线视频 | 四虎影视| 精品久久久久一区二区国产 | 日本一区二区在线视频 | 一级黄色网页 | 日韩视频在线免费观看 | 中文在线a在线 | 日韩精品视频中文字幕 | 亚洲激情视频在线 | 欧美精品1区 | 国产欧美精品一区二区色综合朱莉 |