Friday, June 25, 2010

How to configure the PPTP on Cisco sever

How to configure the PPTP on Cisco sever


1) Enable VPDN (virtual private dial-up networking) on Router.To do so use this command:

Router(config)# vpdn enable

2) Create a VPDN group for PPTP, just like the Microsoft VPN client will use, by default

Router(config)# vpdn-group TEST-VPN

Router(config-vpdn)# accept-dialin

Router(config-vpdn)# protocol pptp

virtual-template 1


Router(config-vpdn)# exit

3) configure the ip address on local LAN interface
Router(config)# interface FA0/0

Router(config-if)# ip address z.z.z.z

Router(config-if)# no shutdown

4) Create your virtual-template that will apply to the inbound VPN connections. This template references the FA/0 interface for its IP address. It also references a pool of IP addresses that will be handed out to VPN clients. Finally, it configures the PPP encryption and authentication mechanisms to match what the Microsoft VPN client defaults to:
5)
Router(config)# interface Virtual-Template1

Router(config-if)# ip unnumbered FA0/0

Router(config-if)# peer default ip address pool defaultpool

Router(config-if)# ppp encrypt mppe auto required

Router(config-if)# ppp authentication ms-chap ms-chap-v2

No keepalive

Create the pool of IP addresses for PPTP Users

Router(config)# ip local pool defaultpool x.x.x.x y.y.y.y

Where x.x.x.x is the Stariug IP and y.y.y.y is the Last IP ,also above Range of IP should
be excluded from DHCP List



6) Create a test vpn user:

Router(config)# username pathway password 0 1q2w3e4r