8.7.1.3 Lab - (Optional) Configuring A Remote Access VPN Server and Client - Instructor
8.7.1.3 Lab - (Optional) Configuring A Remote Access VPN Server and Client - Instructor
Topology
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
IP Addressing Table
Objectives
Part 1: Configure Basic Device Settings
Configure hostnames, interface IP addresses, and access passwords.
Configure the OSPF dynamic routing protocol on R2 and R3.
Part 2: Configuring a Remote Access VPN
Use CCP to configure a router to support an Easy VPN server.
Configure the Cisco VPN client on PC-A and connect to R2.
Verify the configuration.
Test VPN functionality.
Background / Scenario
VPNs can provide a secure method of transmitting data over a public network, such as the Internet. A
common VPN implementation is used for remote access to a corporate office from a telecommuter location
such as a small office or home office (SOHO).
In this lab, you build a multi-router network and configure the routers and hosts. You configure a remote
access IPsec VPN between a client computer and a simulated corporate network. You use CCP to configure
a Cisco Easy VPN server on the corporate edge gateway router and configure the Cisco VPN client on a host.
Then you connect to the corporate network through a simulated ISP router.
The Cisco VPN client allows organizations to establish end-to-end, encrypted (IPsec) VPN tunnels for secure
connectivity for mobile employees or teleworkers. It supports Cisco Easy VPN, which allows the client to
receive security policies upon a VPN tunnel connection from the central site VPN device (Cisco Easy VPN
Server), minimizing configuration requirements at the remote location. This is a scalable solution for remote
access deployments where it is impractical to individually configure policies for multiple remote PCs.
Note: The router commands and output in this lab are from a Cisco 1841 router with Cisco IOS Release
15.1(4)M8 (Advanced IP Services image). Other routers and Cisco IOS versions can be used. See the Router
Interface Summary Table at the end of the lab to determine which interface identifiers to use based on the
equipment in the lab. Depending on the router model and Cisco IOS version, the commands available and
output produced might vary from what is shown in this lab.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
Note: Ensure that the routers and switches have been erased and have no startup configurations.
Instructor Note: Instructions for initializing the network devices are provided in Lab 0.0.0.0.
Required Resources
3 Routers (Cisco 1841 with Cisco IOS Release 15.1(4)M8 Advanced IP Services image or comparable)
2 Switches (Cisco 2960 or comparable)
2 PCs (Windows Vista or Windows 7 with CCP 2.5, Cisco VPN Client, latest version of Java, Internet
Explorer, and Flash Player)
Serial and Ethernet cables as shown in the topology
Console cables to configure Cisco networking devices
CCP Notes:
Refer to Lab 0.0.0.0 for instructions on how to install and run CCP.
If the PC on which CCP is installed is running Windows Vista or Windows 7, it may be necessary to right-
click the CCP icon or menu item, and select Run as administrator.
To run CCP, it may be necessary to temporarily disable antivirus programs and O/S firewalls. Ensure that
all pop-up blockers are turned off in the browser.
Instructor Notes:
Host PC-A is connected to R1, which simulates an ISP router. R1 is connected to R2, the corporate edge
gateway router. Router R2 connects to R3 to represent a multi-router internal corporate network. Routers R2
and R3 are configured with OSPF. The ISP router, R1, does not participate in the OSPF process. PC-A is
used to connect to R2 through R1 to configure R2 as a VPN server.
Although switches are shown in the topology, students can omit the switches and use crossover cables
between the PCs and routers R1 and R3.
The version of the Cisco VPN Client used in this lab is 5.0.07.0440 for use with Windows. You must have a
valid CCO account and service contract to download the file.
The basic running configurations for all three routers are captured after Part 2 of the lab is completed. All
configurations are found at the end of the lab.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
Note: PC-A should be able to ping external R2 interface S0/0/0, but is unable to ping any of the internal
OSPF network IP addresses on R2 and R3.
b. Ping from R2 to PC-C on the R3 LAN.
If the pings are unsuccessful, troubleshoot the basic device configurations before continuing.
Note: If you can ping from R2 to PC-C, you have demonstrated that the OSPF routing protocol is
configured and functioning correctly. If you cannot ping, but the device interfaces are up and IP
addresses are correct, use the show run and show ip route commands to help identify routing protocol-
related problems.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
Step 11: Save the basic running configuration for all three routers.
Save the running configuration to the startup configuration from the privileged EXEC mode prompt.
R1# copy running-config startup-config
Task 1: Prepare R2 for CCP Access and Easy VPN Server Setup.
Step 1: Configure user credentials for HTTPS router access prior to starting CCP.
a. Enable the secure HTTP server on R2.
R2(config)# ip http secure-server
b. Create an admin account on R2 with privilege level 15 for use with AAA and CCP.
R2(config)# username admin privilege 15 password cisco12345
c. Have CCP use the local database to authenticate web sessions.
R2(config)# ip http authentication local
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
b. At the CCP Dashboard, click Discover to discover and connect to R1. If the discovery process fails, click
Discover Details to determine the possible problem in order to resolve the issue.
c. Click Yes to accept the certificate when the Security Certificate Alert window displays.
Task 2: Use the CCP VPN Wizard to Configure the Easy VPN Server.
Step 1: Launch the Easy VPN server wizard and configure AAA services.
a. At the top of the CCP home screen, click Configure. In the left pane, click Security > VPN > Easy VPN
Server.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
What is the encryption method used with the default IKE policy?
____________________________________________________________________________________
3DES
What is the hash algorithm used to ensure that the keys have not been tampered with?
____________________________________________________________________________________
SHA_1
b. Click Next to accept the default IKE policy.
Note: Configurations on both sides of the tunnel must match exactly. However, the Cisco VPN client
automatically selects the proper configuration for itself. Therefore, no IKE configuration is necessary on
the client PC.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 10 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
b. Click Next to create a new AAA method list for the group policy lookup that uses the local router
database.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 11 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
Where does the router look for valid user account and passwords to authenticate remote VPN users
when they attempt to log in?
____________________________________________________________________________________
____________________________________________________________________________________
The local router user database. If the username is not locally defined on R2, the user cannot log in.
b. Click Add User Credentials. In the User Accounts window, you can view currently defined users or add
new users. What is the name of the user currently defined, and what is the user privilege level?
____________________________________________________________________________________
admin, with privilege level 15
How was this user defined?
____________________________________________________________________________________
It was defined during the initial Cisco IOS CLI configuration.
c. In the User Accounts window, click Add to add another user. Enter the username user01 with a
password of user01pass, and check the Encrypt Password Using MD5 Hash Algorithm check box. Leave
the privilege level at 1.
What is the range of privilege levels that can be set for a user?
____________________________________________________________________________________
0 through 15
d. Click OK to accept the user01 entries, and then click OK to close the User Accounts window.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 12 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 13 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
g. If a CCP warning message displays indicating that the IP addresses in the pool and the IP address of the
Loopback0 interface are in the same subnet. Click Yes to confirm.
Why use an IP network for the VPN clients pool that is associated with a loopback interface?
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
R2 will advertise the entire loopback network 192.168.2.0/24 to other routers as one full subnet and not
simply host routes for VPN clients. This significantly increases stability throughout the OSPF routing
domain.
How does R3 route traffic to the VPN clients?
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
R3 learns the subnet used by R2’s loopback interface as advertised through OSPF. Therefore, R3 sends
traffic destined for VPN clients to a next hop of R2.
h. When you return to the Group Authorization window, click the Configure Idle Timer check box and enter
one hour (1). This disconnects idle users if there is no activity for one hour and allows others to connect.
Click Next to continue.
i. If the Cisco Tunneling Control Protocol (cTCP) window displays, do not enable cTCP. Click Next to
continue.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 14 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
c. In the Command Delivery Status window, click OK. How many commands were delivered?
____________________________________________________________________________________
35 with CCP 2.5
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 15 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
Note: If you receive a failure after testing the VPN server, close the VPN Troubleshooting window.
1) Click the Edit button on top right of Edit Easy VPN Server Tab.
2) Click OK in the Edit Easy VPN Server Connection window.
3) Click OK in the Easy VPN Server Passthrough Configuration window.
4) Click the box to the right of the FastEthernet0/1 interface indicating that it is inside (Trusted).
5) Rerun Test VPN Server by clicking on that button on bottom right of Edit Easy VPN Server Tab.
6) Click Start button and test should pass this time.
Task 3: Use the Cisco VPN Client to Test the Remote Access VPN.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 16 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
b. Enter the following information to define the new connection entry. Click Save when you are finished.
Connection Entry: VPN-R2
Description: Connection to R2 internal network
Host: 10.1.1.2 (IP address of the R2 S0/0/0 interface)
Group Authentication Name: VPN-Access (Defines the address pool configured in Task 2)
Password: cisco12345 (Pre-shared key configured in Task 2)
Confirm Password: cisco12345
Note: The group authentication name and password are case-sensitive and must match the ones created
on the VPN server.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 17 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 18 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
b. Enter the username user01 created previously on the VPN router, and enter the password user01pass.
c. Click OK to continue. The VPN Client window minimizes to a lock icon in the tools system tray of the
taskbar. When the lock is closed, the VPN tunnel is up. When it is open, the VPN connection is down.
Task 4: Verify the VPN Tunnel between the Client, Server, and Internal Network.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 19 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
Step 3: Check the Cisco IOS messages on R2 when the tunnel is created.
Open the console connection for R2 and locate the message displayed indicating that the virtual interface
came up when the VPN Client connection was created.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 20 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
R2#
*Feb 2 16:09:08.907: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2,
changed state to up
R2#
Windows IP Configuration
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 21 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
Step 5: Test the access from the client with the VPN connection.
With the VPN connection from computer PC-A to router R2 activated, open a command prompt on PC-A, and
ping the PC-C IP address at 192.168.3.3 on the R3 LAN. Are the pings successful? Explain.
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
The pings are now successful because PC-A has an IP address (192.168.2.104 in this case) that was
assigned by the VPN server and is inside the OSPF domain. PC-A can access the internal PC-C host in the
OSPF network 192.168.3.0/24 now because it is in the VPN access group associated with the 192.168.2.0/24
network.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 22 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
g. Right-click the VPN Client icon in the tools tray and select Disconnect, or click the VPN-R2 connection
and click the Disconnect icon.
Reflection
Why is VPN a good option for remote users?
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
Answers will vary but should include the following: It is a flexible technology that is widely supported by
equipment vendors. Service is commonly available from ISPs. A VPN server can be set up independent of the
ISP if desired. VPN provides easy and secure access to internal LAN resources for remote workers and
business partners. Any authorized person with an Internet connection can access internal resources as if they
were on the local LAN.
Router Model Ethernet Interface #1 Ethernet Interface #2 Serial Interface #1 Serial Interface #2
1800 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(Fa0/0) (Fa0/1)
1900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
2801 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/1)
(Fa0/0) (Fa0/1)
2811 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(Fa0/0) (Fa0/1)
2900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router
class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device.
The table does not include any other type of interface, even though a specific router may contain one. An
example of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be
used in Cisco IOS commands to represent the interface.
Router Configs
Note: ISR G2 devices have Gigabit Ethernet interfaces instead of Fast Ethernet Interfaces.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 23 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
Building configuration...
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 24 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
!
interface Serial0/0/0
ip address 10.1.1.1 255.255.255.252
clock rate 64000
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
interface Vlan1
no ip address
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
control-plane
!
line con 0
exec-timeout 0 0
password ciscoconpass
logging synchronous
login
line aux 0
line vty 0 4
exec-timeout 5 0
password ciscovtypass
login
!
scheduler allocate 20000 1000
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 25 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 26 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 27 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 28 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
!
archive
log config
hidekeys
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1/0
!
interface FastEthernet0/1/1
!
interface FastEthernet0/1/2
!
interface FastEthernet0/1/3
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
clock rate 2000000
!
interface Serial0/0/1
ip address 10.2.2.1 255.255.255.252
!
interface Vlan1
no ip address
!
router ospf 101
network 10.2.2.0 0.0.0.3 area 0
network 192.168.3.0 area 0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
control-plane
!
line con 0
exec-timeout 0 0
password 7 03075218050022434019181604
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 29 of 30
Lab - (Optional) Configuring a Remote Access VPN Server and Client
logging synchronous
login
line aux 0
line vty 0 4
exec-timeout 5 0
password 7 121A0C0411041A10333B253B20
login
!
scheduler allocate 20000 1000
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 30 of 30