資源描述:
《cisco+ipsec+vpn配置大全》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、CISCOIPsecVPN配置大全紅頭發(fā)(akaCCIE#15101),?3x*x/?6i7rhttp://www.91lab.com%F/G,i:{5i2F5_www.91lab.com4K:R/c??H:r+B(G7@!ewww.91lab.com紐愛科網(wǎng)絡(luò)實(shí)驗(yàn)室社區(qū)2S!^2u!~!U??M)`.u6H$y+k8j一.基于PSK的IPsecVPN配置??Z2U+n8?,v*R'y首先IOS帶k的就可以了,支持加密特性,拓?fù)淙缦?6h:r4?,O0g%n/m紐愛科網(wǎng)絡(luò)實(shí)驗(yàn)室社區(qū)topo.jpg(57.02KB)2008-10-1120:147]/D
2、'b+S??x"g+_,p,S1f"X!M??s1.R1基本配置:3r#k,@![2u'^R1(config)#interfaceloopback0/P$Q;w8V%b)`4w!Owww.91lab.comR1(config-if)#ipaddress10.1.1.1255.255.255.0www.91lab.com1J1g??I1g;^R1(config-if)#noshutdown2A9T-u!]&w0v"@+y.gR1(config-if)#interfaceserial0/0#s,l"a3]!d1P%_*n#i??_www.91lab.com
3、R1(config-if)#ipaddress??192.168.1.1255.255.255.252紐愛科網(wǎng)絡(luò)實(shí)驗(yàn)室社區(qū)+l6m7Q$G6K2j1G7D1
4、R1(config-if)#clockrate56000,H2w6x/q4n)mR1(config-if)#noshutdown2g'E6g*g(m;~$k'e;RR1(config-if)#exit9e3h1O"p4A%i*J3U8}&}+R)y2Y.`/q#g*W2.定義感興趣流量與路由協(xié)議:,R7r#@.p't;f-CR1(config)#access-list100permitip10.1
5、.1.00.0.0.25510.2.2.00.0.0.2558S-M'X-A-[#D/lR1(config)#iproute0.0.0.00.0.0.0serial0/05J3w.i3R1@(q8]6T1P4p(`1d&G'h9u#K3.全局啟用ISAKMP并定義對等體及其PSK(預(yù)共享密鑰):.
6、']%D3~.y6u"i$XR1(config)#cryptoisakmpenablewww.91lab.com/v-P#M!d7o/y8V??FR1(config)#cryptoisakmpkey91labaddress192.168.1.2't6Y???
7、;z![0A(V!J#l3X6i1}7K1c'@4I:v4.定義IKE策略:9h4n/e/N"g(k7g!{0Owww.91lab.comR1(config)#cryptoisakmppolicy104V)f2v(F*H.w8K.j:b*v!FR1(config-isakmp)#encryptionaes128????/---默認(rèn)是DES加密---/$Y5r8b5i'W2F-e,b/VR1(config-isakmp)#hashsha????????/---默認(rèn)是SHA-1---/)s(^-m/r%X1w7H紐愛科網(wǎng)絡(luò)實(shí)驗(yàn)室社區(qū)R1(config-is
8、akmp)#authenticationpre-share????5R-f%p3T#d9q#@"hR1(config-isakmp)#group2????????/---默認(rèn)是768位的DH1---/)J"a9z0U9W9h'{??yR1(config-isakmp)#lifetime3600??????/---默認(rèn)是86400秒---/www.91lab.com4c+N/Y+M!T(a&D;
9、5nR1(config-isakmp)#exit3d(x9J$c'k0x:G4P.b5X-_!]www.91lab.com5.定義IPSec轉(zhuǎn)換集(transf
10、ormset):4n:T/J3
11、7Z4n&x._!KR1(config)#cryptoipsectransform-setttesp-aes128esp-sha-hmac$y1~6i!];[+b+PR1(cfg-crypto-trans)#modetunnel6x'O([6F/`"gR1(cfg-crypto-trans)#exit紐愛科網(wǎng)絡(luò)實(shí)驗(yàn)室社區(qū);K,y1G([(q"[*O0v!n1
12、2n$F"@-{%n紐愛科網(wǎng)絡(luò)實(shí)驗(yàn)室社區(qū)6.定義cryptomap并應(yīng)用在接口上:3C??H??Q#m+P!a:`%W2q*CR1(config)#cryptoma
13、pcisco10ipsec-isakmp9N$?2p#R,Q6J;DR1(config-cry