
我公司原来VPN模式为site-to-site 现需增加client-to-site先配置如下,也就是说两种方式同时支持,但能出现登陆窗口,而无法连接vpn,配置如下,请高手求解。
0 a8 T h: s9 S a' O0 ]8 e4 k! n" D* i9 z1 j2 T9 j
第一步:配置3A服务
! s \# u% i5 x8 z2811(config)#aaa new-model
+ z/ u2 H% A% k2811(config)#aaa authentication login hh-user local
$ z1 M2 |8 Y$ Z/ g! f, U2811(config)#username huahuigroup password huahuigroup88" D% {% t) I+ P( X/ y+ k( {
2811(config)#aaa authorization network hh-group local* Y5 Q/ o1 Q1 |" Q2 |, [; }! ^: Q. `
第二步:建IP地址池
! K4 y/ m X' i( N- R2811(config)#ip local pool p1 172.19.200.10 172.19.200.100- |5 e$ [; K1 j2 I" m8 Q: F
第三步:配置IKE策略* t* Q8 ] j$ q4 k; ^ a# P
2811(config)#crypto isakmp policy 1
" f6 C1 W ^ ~% \( G6 R2811(config-isakmp)#encr 3des& e* n) v" s# E, G6 j) K- @4 T% e) v
2811(config-isakmp)#authentication pre-share; X/ A, j7 o# {7 Z
2811(config)#crypto isakmp policy 3
1 e/ ^ J" s2 i/ S, w8 T2811(config-isakmp)# authentication pre-share
% w% _' \6 l* I3 V6 x: m2811(config-isakmp)#cypto isakmp 123456 address 0.0.0.0 0.0.0.0
8 e3 ]# x+ Z8 D* l. t8 y' e2811(config)#crypto isakmp policy 10
, \4 y$ I2 \* n& P' v. a2811(config-isakmp)#encr 3des( q8 d7 P D3 U3 p$ e p) G2 ~
2811(config-isakmp)#authentication pre-share
( l Z& L' b% R: i2811(config-isakmp)#group 2* |- \( w" T6 j7 v- a
第四步:客户端配置+ S+ M2 ^* b% A% j) d' h3 z4 h. i
2811(config)#crypto isakmp client configuration group hh-client
6 h+ p4 I+ i6 ?2811(config-isakmp-group)#key test
7 ? h6 m" M1 O2 w2811(config-isakmp-group)#pool p1: L- \- C. b+ g$ M" S7 L$ a4 ]/ o& j
2811(config-isakmp-group)#save-password
% C) x; b) R" F$ V2811(config-isakmp-group)#netmask 255.255.255.0
8 v; c" F2 r# P第五步:建变换集
( ^3 q v- E& B! T1 T3 V$ k2811(config)#crypto ipsec transform-set VPN esp-des esp-md5-hmac: p6 W) h- M: E2 H4 G
2811(config)#crypto ipsec transform-set tran-hh esp-3des esp-md5-hmac
o+ [% K! ^5 \6 L( E+ ]" d第六步:建动态加密映射4 e; e- X% H) \" J2 M# A4 c6 S% |* ^6 C
2811(config)#crypto dynamic-map DYNMAP 1" |4 Q O! q, F; }4 w3 g0 v) F* B5 F
2811(config-crypto-map)#set transform-set VPN
( u8 x0 b# L+ C7 {0 x5 D2811(config-crypto-map)#match address 102( q g8 e5 {" Q1 |5 }- f
2811(config)#crypto dynamic-map dy-hh 10
$ K% C9 q) `9 B) G2811(config-crypto-map)#set transform-set tran-hh( Y- E3 B1 x0 E+ p7 K$ W+ V* s
2811(config-crypto-map)#reverse-route* x6 R, S1 R! r! p% x8 o" p3 b5 B2 }" V9 g
第七步:将MC应用到动态映射
# }5 [* c) H" C- _2811(config)#crypto map CMAP client configuration address user-hh( ?% x- _& P+ d- ?
2811(config)#crypto map CMAP isakmp authorization list group-hh: g: S* m+ n4 v- F( b7 j- J% G
2811(config)#crypto map CMAP 60000 ipsec-isakmp dynamic DYNMAP. v- X- s* N. t I4 V
2811(config)#crypto map CMAP 10 ipsec-isakmp dynamic dy-hh
" k9 m& s) g" b# P9 c( T5 L
' q1 `& x! w _! k N
0 r; _6 d1 T1 N1 K用cisco system vpn client 连接,有登录信息,但输入帐号,密码后,中断连接,! ?7 y O1 F' E. t# t
连接日志中有:No private IP address was assigned by the peer
" h! t; u( {* n+ s+ j+ n% |* m" v; [4 e# r- O% i, T3 M0 v
不知配置有何问题? |
|