EASYVPN_Client#crypto ipsec client ezvpn connect EASYVPN_Client# *Mar 1 00:07:11.091: %CRYPTO-6-EZVPN_CONNECTION_UP: (Client) User=aaaa Group=mlgroup Server_public_addr=1.1.1.1 Assigned_client_addr=192.168.1.2 *Mar 1 00:07:11.095: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to up EASYVPN_Client# *Mar 1 00:07:11.591: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback10000, changed state to up *Mar 1 00:07:11.795: %LINEPROTO-5-UPDOWN: Line protocol on Interface NVI0, changed state to up *Mar 1 00:07:12.095: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2, changed state to up EASYVPN_Client#sho ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0 1.0.0.0/32 is subnetted, 1 subnets S 1.1.1.1 [1/0] via 2.2.2.254 2.0.0.0/24 is subnetted, 1 subnets C 2.2.2.0 is directly connected, FastEthernet0/0 20.0.0.0/24 is subnetted, 1 subnets C 20.20.20.0 is directly connected, FastEthernet0/1 22.0.0.0/32 is subnetted, 1 subnets C 22.22.22.2 is directly connected, Loopback0 192.168.1.0/32 is subnetted, 1 subnets C 192.168.1.2 is directly connected, Loopback10000 S* 0.0.0.0/0 [1/0] via 0.0.0.0, Virtual-Access2 EASYVPN_Client#ping 10.10.10.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 88/99/116 ms EASYVPN_Client#
EasyVPNServer[F0/1] ----- [F0/1][ISP_Router][F0/0] ----- [F0/0][EasyVPNClient]
configure terminal ! aaa new-model aaa authentication login default local aaa authentication login VPN-USER-AUTHENTICATION local aaa authorization exec default local aaa authorization network ML-GROUP local username aaaa privilege 15 password 0 cisco crypto isakmp policy 1 encr 3des authentication pre-share group 2 ! crypto isakmp client configuration group mlgroup key 6 aaCisco pool AAAA-POOL max-users 20 save-password crypto isakmp profile AAAA-PROFILE match identity group mlgroup client authentication list VPN-USER-AUTHENTICATION isakmp authorization list ML-GROUP client configuration address respond virtual-template 2 crypto ipsec transform-set AAAA-TRANSFORM-SET esp-3des esp-sha-hmac mode tunnel ! crypto ipsec profile AAAA-PROFILE-2 set transform-set AAAA-TRANSFORM-SET set isakmp-profile AAAA-PROFILE ! interface FastEthernet0/0 no shutdown description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-GE 0/0$ ip address 10.10.10.1 255.255.255.248 ! interface FastEthernet0/1 no shutdown ip address 1.1.1.1 255.255.255.0 ! interface Virtual-Template2 type tunnel ip unnumbered FastEthernet0/1 tunnel mode ipsec ipv4 tunnel protection ipsec profile AAAA-PROFILE-2 ! ip local pool AAAA-POOL 192.168.1.1 192.168.1.20 ip route 0.0.0.0 0.0.0.0 1.1.1.254
configure terminal ! ! BASIC CONFIGURATION OF ROUTER ! hostname EASYVPN_Client ! interface fastEthernet 0/0 no shutdown description WAN connection to ISP ip address dhcp ! interface fastEthernet 0/1 no shutdown description internal LAN connection ip address 20.20.20.1 255.255.255.0 ! ! DVTI CONFIGURATION OF ROUTER interface loopback 0 ip address 22.22.22.2 255.255.255.255 ! interface virtual-template1 type tunnel ip unnumbered loopback0 ! ip route 0.0.0.0 0.0.0.0 2.2.2.254 200 ! ! crypto ipsec client ezvpn CLIENT connect manual group mlgroup key 6 aaCisco mode client peer 1.1.1.1 virtual-interface 1 username aaaa password cisco xauth userid mode local ! interface fastEthernet0/0 crypto ipsec client ezvpn CLIENT ! interface fastEthernet0/1 crypto ipsec client ezvpn CLIENT inside end
configure terminal ! hostname ISP_Router ! interface FastEthernet 0/1 no shutdown description ISP connection to EasyVPNServer ip address 1.1.1.254 255.255.255.0 ! interface FastEthernet 0/0 no shutdown description ISP connection to EasyVPNClient ip address 2.2.2.254 255.255.255.0 ! ip dhcp excluded-address 2.2.2.254 2.2.2.254 ip dhcp pool DHCPCLIENT network 2.2.2.0 255.255.255.0 lease 7 ! end
ahmedahmed wrote: » Hi instant000, Thanks for the configuration but where you able to access the lan behind the router? because in my case I would get the VPN connection when i used a vpn client and It would get the VPN IP from the pool (192.168.1.2----) and I can ping the Internet interface (gi0/1) but cant get the Lan behind gi0/0. ie it is a server so i should be able to rdp etc.