[ 永远的UNIX::UNIX技术资料的宝库 ]

首页 > 应用专题 > VPN > 正文

实现cisco vpn client 和 windows pptp 两种方式连接路由器

作者:onidle 来源:不详 (2005-09-13 14:42:29)

 !
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname vpnrouter
!
aaa new-model
!
!
aaa authentication login userauth local
aaa authorization network groupauth local
aaa session-id common
!
username cisco password 0 cisco
ip subnet-zero
!
!
!
vpdn enable
!
vpdn-group 1
! Default PPTP VPDN group
accept-dialin
protocol pptp
virtual-template 1
!
!
crypto isakmp policy 3
hash md5
authentication pre-share
group 2
crypto isakmp client configuration address-pool local ippool
!
crypto isakmp client configuration group 3000client
key cisco123
pool ippool
!
!
crypto ipsec transform-set myset esp-des esp-md5-hmac
!
crypto dynamic-map dynmap 10
set transform-set myset
!
!
crypto map clientmap client authentication list userauth
crypto map clientmap isakmp authorization list groupauth
crypto map clientmap client configuration address respond
crypto map clientmap 10 ipsec-isakmp dynamic dynmap
!
!
!
voice call carrier capacity active
!
!
!
!
!
!
!
!
!
mta receive maximum-recipients 0
!
!
!
!
interface Loopback0
ip address 172.16.0.1 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
crypto map clientmap
!
interface Serial0/0
no ip address
shutdown
!
interface FastEthernet0/1
ip address 193.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface Virtual-Template1
ip unnumbered FastEthernet0/0
no keepaliv
peer default ip address pool ippool
ppp encrypt mppe auto
ppp authentication pap chap ms-chap
!
router eigrp 100
network 172.168.0.0
network 192.168.1.0
network 193.16.1.0
auto-summary
no eigrp log-neighbor-changes
!
ip local pool ippool 192.168.1.10 192.168.1.254
ip classless
ip http server
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
dial-peer cor custom
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end




















vpnrouter>
vpnrouter>en
vpnrouter#show run
Building configuration...

Current configuration : 1893 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname vpnrouter
!
aaa new-model
!
!
aaa authentication login userauth local
aaa authorization network groupauth local
aaa session-id common
!
username cisco password 0 cisco
ip subnet-zero
!
!
!
vpdn enable
!
vpdn-group 1
! Default PPTP VPDN group
accept-dialin
protocol pptp
virtual-template 1
!
!
crypto isakmp policy 3
hash md5
authentication pre-share
group 2
crypto isakmp client configuration address-pool local ippool
!
crypto isakmp client configuration group 3000client
key cisco123
pool ippool
!
!
crypto ipsec transform-set myset esp-des esp-md5-hmac
!
crypto dynamic-map dynmap 10
set transform-set myset
!
!
crypto map clientmap client authentication list userauth
crypto map clientmap isakmp authorization list groupauth
crypto map clientmap client configuration address respond
crypto map clientmap 10 ipsec-isakmp dynamic dynmap
!
!
!
voice call carrier capacity active
!
!
!
!
!
!
!
!
!
mta receive maximum-recipients 0
!
!
!
!
interface Loopback0
ip address 172.16.0.1 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
crypto map clientmap
!
interface Serial0/0
no ip address
shutdown
!
interface FastEthernet0/1
ip address 193.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface Virtual-Template1
ip unnumbered FastEthernet0/0
no keepaliv
peer default ip address pool ippool
ppp encrypt mppe auto
ppp authentication pap chap ms-chap
!
router eigrp 100
network 172.168.0.0
network 192.168.1.0
network 193.16.1.0
auto-summary
no eigrp log-neighbor-changes
!
ip local pool ippool 192.168.1.10 192.168.1.254
ip classless
ip http server
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
dial-peer cor custom
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end

vpnrouter#

(http://www.fanqiang.com)



 相关文章
VPN技术概述 2002-08-14 06:02:01
VPN及目前Firewall 在DDoS 攻击防上的缺陷 2001-05-20 08:10:00
架设linux下最简单的VPN系统 2005-03-21 13:30:45
利用openbsd+openvpn快速建立企业vpn 2005-03-30 14:34:57
Linux下架设VPN服务器指南 2005-04-06 18:10:17
使用SSH建立基于Linux/Unix的VPN网络 2005-04-07 14:05:01
在debian下用pptp 实现VPN 2005-04-07 14:07:33
使用FreeBSD配置基于ADSL的VPN网关+防火墙 2005-04-14 11:57:45
SLACKWARE 10.0 做MPPE加密VPN服务器的详细过程 2005-05-16 14:25:29
RH Linux 9下面的VPN Server架设 2005-07-10 22:33:31
OpenVPN 配置和使用 2005-07-10 22:47:35
MPLS VPN 实现技术原理详解 (1) 2005-07-26 10:45:02
MPLS VPN 实现技术原理详解 (2) 2005-07-26 10:50:00
MPLS VPN 实现技术原理详解 (3) 2005-07-26 10:51:44
MPLS VPN 实现技术原理详解 (4) 2005-07-26 10:56:52

★  感谢所有的作者为我们学习技术知识提供了一条捷径  ★
www.fanqiang.com