CCNP實(shí)驗(yàn):GRE隧道流量的IPSEC加密_第1頁
CCNP實(shí)驗(yàn):GRE隧道流量的IPSEC加密_第2頁
CCNP實(shí)驗(yàn):GRE隧道流量的IPSEC加密_第3頁
CCNP實(shí)驗(yàn):GRE隧道流量的IPSEC加密_第4頁
CCNP實(shí)驗(yàn):GRE隧道流量的IPSEC加密_第5頁
已閱讀5頁,還剩3頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

CCNP實(shí)驗(yàn):GRE隧道流量的IPSEC加密由于IPSEC只支持對(duì)單播流量的加密,所以我們使用GRE隧道可以將播送、組播包封裝在一個(gè)單播包中,再用IPSEC進(jìn)展加密。

在進(jìn)展IPSEC配置前應(yīng)首先配置好GRE隧道,下面是R1上的GRE隧道配置:

R1:

interfacetunnel0

ipaddress192.168.3.1255.255.255.0

tunnelsources1/1

tunneldestination192.1.1.20

exit

interfaces1/1

ipaddress192.1.1.40255.255.255.0

ipaccess-groupperimeterin

exit

interfacelo0

ipaddress192.168.1.1255.255.255.0

exit

iproute0.0.0.00.0.0.0192.1.1.20

!在這里我將總公司內(nèi)部的骨干網(wǎng)絡(luò)設(shè)為Area0,隧道局部和分公司內(nèi)部網(wǎng)絡(luò)設(shè)為Area1

routerospf1

network192.168.1.00.0.0.255area0

network192.168.3.00.0.0.255area1

exit

ipaccess-listextendedperimeter

permitudphost192.1.1.20host192.1.1.40eq500

permitesphost193.1.1.20host192.1.1.40

permitgrehost193.1.1.20host192.1.1.40

denyipanyany

exit

R2:

interfacetunnel0

ipaddress192.168.3.2255.255.255.0

tunnelsources1/0

tunneldestination192.1.1.40

exit

interfaces1/0

ipaddress192.1.1.20255.255.255.0

ipaccess-groupperimeterin

exit

interfacelo0

ipaddress192.168.2.1255.255.255.0

exit

iproute0.0.0.00.0.0.0192.1.1.40

routerospf1

network192.168.2.00.0.0.255area1

network192.168.3.00.0.0.255area1

exit

ipaccess-listextendedperimeter

permitudphost192.1.1.40host192.1.1.20eq500

permitesphost192.1.1.40host192.1.1.20

permitgrehost192.1.1.40host192.1.1.20

denyipanyany

exit

GRE隧道建立好后,就可以進(jìn)展IPSEC配置了:

R1上的配置:

cryptoisakmpenable

cryptoisakmpidentityaddress

cryptoisakmppolicy10

encryptionaes

authenticationpre-share

group2

hashsha

exit

cryptoisakmpkeycisco123address192.1.1.20no-xauth

!IPSEC只對(duì)進(jìn)入GRE隧道的流量進(jìn)展加密

ipaccess-listextendedToR2

permitgrehost192.1.1.40host192.1.1.20

exit

!這里的GRE隧道是點(diǎn)對(duì)點(diǎn)模式的,所以傳輸集應(yīng)使用傳輸模式

cryptoipsectransform-settransesp-aesesp-sha-hmac

modetransport

exit

cryptomapmymap10ipsec-isakmp

matchaddressToR2

settransform-settrans

setpeer192.1.1.20

exit

interfaces1/1

cryptomapmymap

exit

!最終別遺忘刪除測(cè)試隧道時(shí)建立的流量:

ipaccess-listextendedperimeter

nopermitgrehost192.1.1.20host192.1.1.40

R2上的配置:

cryptoisakmpenable

cryptoisakmpidentityaddress

cryptoisakmppolicy10

encryptionaes

authenticationpre-share

group2

hashsha

exit

cryptoisakmpkeycisco123address192.1.1.40no-xauth

ipaccess-listextendedToR1

permitgrehost192.1.1.20host192.1.1.40

exit

cryptoipsectransform-settransesp-aesesp-sha-hmac

modetransport

exit

cryptomapmymap10ipsec-isakmp

matchaddressToR1

settransform-settrans

setpeer192.1.1.40

exit

interfaces1/0

cryptomapmymap

exit

ipaccess-listextendedperimeter

nopermitgrehost192.1.1.40host192.1.1.20

測(cè)試試驗(yàn)結(jié)果:

r1#shiproute

Codes:C-connected,S-static,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2

ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute

o-ODR,P-periodicdownloadedstaticroute

Gatewayoflastresortis192.1.1.20tonetwork0.0.0.0

C192.1.1.0/24isdirectlyconnected,Serial1/1

C192.168.1.0/24isdirectlyconnected,Loopback0

192.168.2.0/32issubnetted,1subnets

O192.168.2.1[110/11112]via192.168.3.2,00:00:17,Tunnel0

C192.168.3.0/24isdirectlyconnected,Tunnel0

S*0.0.0.0/0[1/0]via192.1.1.20

R1上pingPC2:

r1#ping192.168.2.1

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto192.168.2.1,timeoutis2seconds:

!!!!!

Successrateis100percent(5/5),round-tripmin/avg/max=36/56/84ms

PC1上pingPC2:

r1#ping192.168.2.1sourcelo0

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto192.168.2.1,timeoutis

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論