博客统计信息

51cto博客之星
用户名:hackerjx
文章数:61
评论数:538
访问量:357895
无忧币:2009
博客积分:3387
博客等级:7
注册日期:2008-05-18

使用SDM配置Cisco Easy VPN
2008-09-12 11:55:00
版权声明:原创作品,如需转载,请与作者联系。否则将追究法律责任。
XX公司,现在因为工作业务需求,需要搭建VPN,因为出差的用户比较多,而且又不同的客户,因为不同的客户和公司的业务关系也不一样。所以需要对于不同的用户,部署不同的VPN策略,在此给XX公司部署Easy VPN,比较节省成本。使用SDM(cisco安全设备管理,图形界面软件)来调试VPN
公司拓扑:
实验过程:
第一步   R1的预配置

R1(config)#int e1/0
R1(config-if)#ip add 192.168.1.200 255.255.255.0
R1(config-if)#no sh
R1(config-if)#int f0/0
R1(config-if)#ip add 172.16.0.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#
R1(config)#ip http server 启用http服务,用于SDM登陆
R1(config)#ip http authentication enable http认证采用enable密码来做认证
R1(config)#lin vty 0 4  进入VTY接口下
R1(config-line)#transport input ssh telnet  配置SSH和telnet
R1(config-line)#login local  登陆采用本地认证
R1(config-line)#end
第二步   在SDM中添加一个新的用户以便开启AAA
第三步   输入用户名和密码,将用户的权限设置为Level 15
第四步   在SDM上开启AAA服务
第五步   开始SDM配置Easy VPN Server,在VPN→Easy VPN Server→启动Easy VPN服务向导
第六步   在Easy VPN Server服务向导中点击下一步
第七步   在接口和验证中选择接口为FashEthernet0/0,认证方式选择为预共享密钥
第八步   在IKE策略中选择默认
第九步   在转换集中选择默认
第十步   在组授权和组策略查找中选择本地
第十一步   在用户验证中选择仅限本地
第十二步   组授权和用户组策略中选择添加
第十三步   配置组策略
第十四步   确认无误后点结束
 
第十五步   查看shou run实际执行效果
R1#show run
Building configuration...
Current configuration : 2094 bytes
!
upgrade fpd auto
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
aaa new-model
!
!
aaa authentication login default local
aaa authentication login sdm_vpn_xauth_ml_1 local
aaa authorization exec default local
aaa authorization network sdm_vpn_group_ml_1 local
!
!        
aaa session-id common
ip cef
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
multilink bundle-name authenticated
!
!   
username norvel privilege 15 secret 5 $1$EMdL$.RYjaI5OlA40s8rq0FsMJ/
archive
 log config
  hidekeys
!
!
crypto isakmp policy 1
 encr 3des
 authentication pre-share
 group 2
!
crypto isakmp client configuration group sdmeasyvpn
 key cisco
 pool SDM_POOL_1
crypto isakmp profile sdm-ike-profile-1
   match identity group sdmeasyvpn
   client authentication list sdm_vpn_xauth_ml_1
   isakmp authorization list sdm_vpn_group_ml_1
   client configuration address respond
   virtual-template 1
!        
!
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
!
crypto ipsec profile SDM_Profile1
 set transform-set ESP-3DES-SHA
 set isakmp-profile sdm-ike-profile-1
!
!
interface FastEthernet0/0
 ip address 172.16.0.1 255.255.255.0
 duplex half
!
interface Ethernet1/0
 ip address 192.168.1.200 255.255.255.0
 duplex half
!
interface Ethernet1/1
 no ip address
 shutdown
 duplex half
!
interface Ethernet1/2
 no ip address
 shutdown
 duplex half
!
interface Ethernet1/3
 no ip address
 shutdown
 duplex half
!
interface Virtual-Template1 type tunnel
 ip unnumbered FastEthernet0/0
 tunnel mode ipsec ipv4
 tunnel protection ipsec profile SDM_Profile1
!
ip local pool SDM_POOL_1 192.168.0.100 192.168.0.150
ip forward-protocol nd
ip http server
no ip http secure-server
!
!
!
logging alarm informational
!
!
control-plane
!
!
gatekeeper
 shutdown
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
 stopbits 1
line aux 0
 stopbits 1
line vty 0 4
 transport input telnet ssh
!
!
end
第十六步   配置VPN Client
 
第十七步   点击VPN连接,连接后要求输入密码
 
第十八部   连接后状态
 

本文出自 “王万利的博客” 博客,转载请与作者联系!

分享至
更多
一键收藏,随时查看,分享好友!
8411467、qq236299806
2人
了这篇文章
类别:Cisco技术圈()┆阅读()┆评论() ┆ 推送到技术圈返回首页

文章评论

 
2009-06-11 17:54:06
好文,学习了。

2009-06-11 17:57:44
谢谢支持 。不知道SDM你用过吗?

2009-11-02 00:02:20
这个我能配置,想让客户端cisco vpn client拨上Easy VPN server后,可以通过Easy VPN server的IP来上网怎么做? 类似windows 2003 server的VPN设置设置共享
博主回复:
2009-11-02 00:59:59
Easy VPN Server服务器在配置时,可以正确配置DNS,拨号成功之后,客户端得到IP地址,DNS,通过内网来上互联网,是可以实现的,如果你在真实环境下可以试试。

2010-08-09 10:57:45
请教一下,EASY VPN 的接口应该选哪一个,是连接外网的,还是内网的。而且我用外网的接口,配置完成时,选择让我选择要不要改变NAT,我选择改变。然后内网的DNS就无法查到外网的地址了。您知道是为什么么?谢谢!
博主回复:
2010-08-14 13:30:31
Easy VPN的策略应该应用在外网接口。
这个看到你的拓扑和实际的配置文件,才能完全答复你。

2010-12-06 11:20:31
哥们 你的配置要和拓扑最好一样啊
拓扑上明明是 f1/0 你 非要搞个 e1/0

2011-11-20 22:13:53
请教个问题,我在点击“启动easyvpn服务向导”时,没反应(没有出现 第六步 Easy VPN Server服务向导)怎么回事啊?哪位高手可以解决?

 

发表评论            

【技术门诊】专家解析:软考重点难点及应试技巧
昵  称:
登录  快速注册
验证码:

请点击后输入验证码博客过2级,无需填写验证码

内  容: