This is a brief “Sample configuration”, to create a VPN in the Packet tracer v5.3
Step 1: Add two routers 2811
Step 2: Here are the configuration files.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
hostname Left ! ! ! ! ! ! ! ! crypto isakmp policy 5 encr 3des authentication pre-share group 2 lifetime 72000 ! crypto isakmp key cisco address 10.0.0.2 ! ! crypto ipsec transform-set STRONG esp-3des esp-sha-hmac ! crypto map CISCO 10 ipsec-isakmp set peer 10.0.0.2 set pfs group2 set transform-set STRONG match address 101 ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 10.0.0.1 255.255.255.0 duplex auto speed auto crypto map CISCO ! interface FastEthernet0/1 ip address 192.168.0.1 255.255.255.0 duplex auto speed auto ! interface Vlan1 no ip address shutdown ! ip classless ip route 0.0.0.0 0.0.0.0 10.0.0.0 ip route 192.168.2.0 255.255.255.0 10.0.0.0 ! ! access-list 101 permit ip 192.168.0.0 0.0.0.255 192.168.2.0 0.0.0.255 ! ! ! ! ! line con 0 line vty 0 4 login ! ! ! end |
And the Second Configuration :
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
hostname Right ! ! ! ! ! ! ! ! crypto isakmp policy 5 encr 3des authentication pre-share group 2 lifetime 72000 ! crypto isakmp key cisco address 10.0.0.1 ! ! crypto ipsec transform-set STRONG esp-3des esp-sha-hmac ! crypto map Cisco 10 ipsec-isakmp set peer 10.0.0.1 set pfs group2 set transform-set STRONG match address 101 ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 10.0.0.2 255.255.255.0 duplex auto speed auto crypto map Cisco ! interface FastEthernet0/1 ip address 192.168.2.1 255.255.255.0 duplex auto speed auto ! interface Vlan1 no ip address shutdown ! ip classless ip route 0.0.0.0 0.0.0.0 10.0.0.0 ip route 192.168.0.0 255.255.255.0 10.0.0.0 ! ! access-list 101 permit ip 192.168.2.0 0.0.0.255 192.168.0.0 0.0.0.255 ! ! ! ! ! line con 0 line vty 0 4 login ! ! ! end |
This works perfectly, and it is a good start for someone who wants to create a VPN on Packet tracer. It is also possible to Implement GRE tunnels since the Version 3.2 ( if I remember well)
Have fun with it.

{ 25 } Comments
t’oses appeler ça un tuto :O c’est plus un config sample qu’un tuto m’gamin ^^
thanx for the tutorial .. i found few others on http://www.bestvpnservice.com …why dont u ad your tuts there
thanx
I’ve modified the title
je voulais juste avoir les informations sur la configuration des VPN avec Packet Tracer
I
Why did you post your comment on the Python page and not on Packet tracer ?
anyway, what do you wanna do with packet tracer ?
How you use the VPN server from the client?
what do you put as username and password??
what do you put as Groupname, key and server ip????
You don’t use it from the clients, the VPN is established between the 2 routers.
and actually the password is “cisco”
but on real routers you have more options ! and if you use routing you also need to use GRE tunnels
Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specifically the last part
I care for such info a lot. I was seeking this certain information for a very long time. Thank you and best of luck.
can you put haw to configurate an easy VPN betwin client and site VPN
and thanks
I’m sorry, but no I wont, but from this example you should be able to figure it out.
hi
nice post
sry i am not familier with packet tracer and i need this project.would u please send this project to my mail?i install packet tracer and i tried to make this project by myself but i couldnt:((
plzzzz send this to my mail thank youuu@};-
I will not do your work !
I can give you some hints but not work for you.
It’s perfect and worked but I want to know how to set VPN via PC, I mean (I have packet tracer version 5.3) when I accessed the Desktop -> VPN configuration using the pc and appear “the GroupName”, “GroupKey”, “Host IP (Server IP)”, “Username” and “Password”…and my question is – What should I enter in these fields to establish the connection?
Basically in this case the VPN is established between the two routers and not between the computers, so in this case, everything that the computer sends on the wire is not into a VPN (until it reaches the router) then when reaching the second routeur the VPN ends and the packets are un-encrypted and transmitted to the second computer !
tnx a lot.
this learning was perfext …
tres cool
can you provide the thesis of this vpn project
There was no thesis done, it’s a simple example that I implemented.
if i have 2 more routers in between the 2 vpn routers. would the code be the same?? i mean, how will be the configuration of the two vpn routers when there are multiple routers between them with Dynamic Routing protocols. If you know the solution, Please Help.
If you have dynamic routing protocols you will probably have to create a GRE tunnel between the two end point routers and then establish the VPN inside the GRE tunnel.
Thanks for the tut!
Is it possible to do GRE IPsec tunnel configs in packet tracer 5.3.3? it seems you cannot adjust mtu or mss. Thanks!
Actually some functionalities are disabled, so I believe that you could check that information directly on the packet tracer’s website where they probably published all the included functionalities related to GRE.
yaeh i see but i think other features are not here. thanks a lot for your project we have benefited a lot
sir please help me project on site to site vpn implimention on GNS3 softwere.
Dear Anjam,
There are plenty of tutorials available in Google !
Post a Comment