我这里有一现成配置, 静态VPN, site-to-site 及 client-to-site互相访口都没问题$ ]+ w- C' \5 K- Y* c
即:都能访问中心端的10.28.0.0网段
5 ?' L3 X. h1 |1 h+ Y# ?
2 I' j, R' J2 ?* \ Jaaa new-model
: H( ~1 M) A' [!# r8 x1 I3 @7 O5 T: i9 H3 I
!
* W: j) o7 H6 ?! A% U. O0 ?aaa authentication login default local
( T f. J4 q% M5 eaaa authorization network vpn_group local 9 h, q: ~ z0 t1 N
aaa session-id common4 \8 ^, g; ^. K4 H
ip subnet-zero
2 K/ ]& R9 M7 Z& u# |1 W!
2 C3 b3 }7 Y0 t) J E) P3 p!; a+ @9 i$ Z- h2 E
crypto isakmp policy 1
6 z% U: J# Y: ] encr 3des- N6 n0 x: z7 T; ?, T
authentication pre-share
8 w/ v$ _$ B( ]8 X9 X4 c# W group 2
1 ?7 V# P8 D* x6 B!
/ W) s; p& U2 ^7 ~crypto isakmp policy 24 T" C9 @( ?; L) T+ ^9 u
hash md5
3 X7 l% Q- e l# n authentication pre-share
6 F8 E, r; a. V, T!
$ ]8 H0 ]' @8 S) Vcrypto isakmp policy 3
! A( P( |; C2 @1 ~ authentication pre-share4 f6 w/ `: M& B5 |6 r. F9 C
crypto isakmp key 123456 address 0.0.0.0 0.0.0.0
' B/ B, T1 Y7 [!7 w( }) k' F0 ]) f( O- e
crypto isakmp client configuration group vpn_group
7 {& k7 j( h: E key abc123
* l- D5 e1 u' n! b+ F3 N2 }" ^ pool vpn_pool
$ W( t) N# }; t) ^) a6 d1 d!& @. X) m) A- i
crypto ipsec security-association lifetime seconds 86400
7 M* D/ d; q8 x2 a% Y( w!
3 s D9 r2 ]- o# V! ~4 fcrypto ipsec transform-set basic-des esp-des esp-md5-hmac 1 S. N2 r' m- q: R, r
crypto ipsec transform-set basic2-des esp-des esp-sha-hmac
2 D# m; ~6 @% K$ Q! rcrypto ipsec transform-set advan-3des esp-3des esp-md5-hmac
2 Y* N) Y* @9 Y& @% Mcrypto ipsec transform-set advan2-3des esp-3des esp-sha-hmac
! _- \" d! A+ n' B9 \5 F A9 z! C4 T/ J' t$ |* d7 _
crypto dynamic-map adsl 1/ @' i2 J# l0 s8 h
set transform-set basic-des ! L: s+ Z* L9 V
match address 1116 j: Y& ~8 F7 ?* x4 h0 i6 q- s
crypto dynamic-map adsl 2
* n6 U) b3 r9 _- D! `$ [ set transform-set basic-des
+ [) Y& a: [- d' h match address 1125 C Q3 |" E9 k. |4 ]7 ^4 }- T. J
crypto dynamic-map adsl 3$ L1 `5 D {, n; o1 J0 l. R& F+ n9 k
set transform-set basic-des
& d- }+ a: p: s. h' j9 b6 C( x3 y match address 113
# s F; z8 q7 |...
; q; @$ y0 @; l" O!
# O+ k; p2 R6 J) c- x( v# Ocrypto dynamic-map client 1
" P3 m" V$ Q9 J set transform-set advan-3des
, U9 k! d+ l% j+ l! y) B% r9 Q& h! ?2 B!3 N; c ^( ?) i+ i" z( C
!
g2 X% l# u9 {! n8 rcrypto map vpn isakmp authorization list vpn_group
, p* V8 {& Z8 j, o+ k7 Jcrypto map vpn client configuration address respond& U) p2 W" g, A: k
crypto map vpn 1 ipsec-isakmp
$ A0 F1 t2 b. o9 r8 w& t6 v7 M set peer 195.6.174.202
3 q$ a) j% e, p* C6 [" | set transform-set basic-des
2 A1 C2 _+ s) h1 ]+ r. V match address 110
& u9 b" k) i5 V0 J: ]5 ~crypto map vpn 98 ipsec-isakmp dynamic adsl
: ?( k/ g3 o# |crypto map vpn 99 ipsec-isakmp dynamic client - E. n, ?6 S1 D3 I( L: O5 Z
!2 K4 T! x( a9 X, L6 H$ M2 p
....
/ Q1 L; z: ], D9 b9 y9 iinterface FastEthernet0/1) ?% k. F7 W7 y8 b
description Internet Connection; X3 Q( t7 Y3 e# [9 q- }. q
ip address 222.202.209.27 255.255.255.04 R$ g- [+ b2 D( Q2 H8 g0 A
ip nat outside$ N- e* V1 c# }
duplex auto0 W% z& {" x+ a
speed auto
) \' {9 p1 g8 }& ^$ C$ |2 n, _ no cdp enable
+ H3 |3 X3 l6 d0 i0 e crypto map vpn
4 P" T! Z. w) @6 L$ S!
3 K" G+ ^9 r, j$ G+ P7 ]% F0 i+ ]% Cip local pool vpn_pool 192.201.0.1 192.201.0.300 L5 Q4 b% ?* u
no ip http server1 j( i" |( r% @) `
no ip http secure-server
; c$ A' n: K0 D6 l' a( Nip classless
8 R; w# x" F3 J# H( A0 pip route 0.0.0.0 0.0.0.0 222.202.209.254
; J* p6 k$ O2 t9 K l!( y- _) ^8 X/ k" q) \$ Z) S
!
7 }: H! G, k$ P* I+ a( E. U; _access-list 110 permit ip 10.28.0.0 0.0.0.255 10.203.50.32 0.0.0.15
7 s2 {4 @ S; W1 B4 J3 F z, Z, raccess-list 110 permit ip 10.28.0.0 0.0.0.255 10.204.2.0 0.0.0.2550 e+ e, B# F% X& w, }* B7 c0 W
access-list 110 permit ip 10.28.0.0 0.0.0.255 10.229.0.0 0.0.255.255
7 E! [( u, D* v: w8 Y( `access-list 110 permit ip 10.28.0.0 0.0.0.255 10.251.0.0 0.0.255.2555 i {% R0 e$ j7 W. I
access-list 111 permit ip 10.28.0.0 0.0.0.255 192.201.1.0 0.0.0.255
6 Z( E% x" U: i& V, xaccess-list 112 permit ip 10.28.0.0 0.0.0.255 192.201.2.0 0.0.0.255
/ h3 f' f1 w( }$ O0 T$ }. yaccess-list 113 permit ip 10.28.0.0 0.0.0.255 192.201.3.0 0.0.0.255, Q! [" s+ h2 T+ E$ {9 q2 B, r
.... |