Cisco Systems, Inc.(R)    Cisco | Profile | Contacts & Feedback | Help
Cisco SMB Support Assistant
Set Up a Secure GRE Tunnel over IPSEC on a Router
Home > Work With My Routers > Cisco Routers > Set Up a Secure GRE Tunnel over IPSEC on a Router  
 

Set Up a Secure GRE Tunnel over IPSEC on a Router




Introduction

This document explains how to configure a secure GRE Tunnel (GRE over IPSEC) on your router.

Generic routing encapsulation (GRE) is a tunneling protocol developed by Cisco that can encapsulate a wide variety of protocol packet types inside IP tunnels, to create a virtual point-to-point link to Cisco routers at remote points over an IP internetwork. Normal IP Security (IPSec) configurations are unable to transfer routing protocols, such as Enhanced Interior Gateway Routing Protocol (EIGRP) and Open Shortest Path First (OSPF), or non-IP traffic, such as Internetwork Packet Exchange (IPX) and AppleTalk. This document illustrates how to route between different networks that use a routing protocol and non-IP traffic with IPSec. This example uses generic routing encapsulation (GRE) in order to accomplish routing between the different networks.

Note: This document uses examples from SDM version 2.3.4. Other versions of SDM displays a different output.


Back to Top



Requirements

To perform the steps described in this document, you need to have these items:

  • Complete the Configure Your Router with Security Device Manager document.

  • Complete the Set Up Internet Security on a Cisco Router document.

  • You must have these information about the remote VPN site:

    • Peer IP Address

    • Subnet of remote network, such as 192.168.18.0/255.255.255.0

    Note: If the remote site VPN is already configured, ensure that all the VPN settings match at both sites.

  • Complete the Worksheets from the Site Survey:

    • Internet Worksheet

    • Security Appliance Worksheet

    • LAN Addressing Worksheet


Back to Top



Configure GRE Tunnel (GRE over IPSEC) on a Router

Follow these steps to set up a GRE Tunnel (GRE over IPSEC) on your router:

  1. Open a web browser and type http:// router-IP-address in the Address field. Use the IP address that you entered in field L6A of the LAN Addressing Worksheet. Press Enter to launch SDM. For more information about how to launch SDM, refer to Configure your Router with Security Device Manager.

  2. Click Configure.

    Sec_GRE_tunnel_ovr_IPSEC_01.gif

  3. Click VPN.

    Sec_GRE_tunnel_ovr_IPSEC_02.gif

  4. On the VPN screen, click Site-to-Site VPN.

    Sec_GRE_tunnel_ovr_IPSEC_03.gif

  5. On the Create Site to Site VPN screen, choose Create a Secure GRE tunnel (GRE over IPSEC) radio button and click Launch the Selected task button.

    Sec_GRE_tunnel_ovr_IPSEC_04.gif

  6. On the Create a Secure GRE tunnel (GRE over IPSEC) screen, click Next.

    Sec_GRE_tunnel_ovr_IPSEC_05.gif

  7. On the GRE Tunnel Information window, enter these values:

    • For Tunnel Source, select the interface name or the IP address of the interface that the tunnel uses. The interface is the Internet interface that you entered in field B37 of the Router Worksheet. The IP address of the interface must be reachable from the other end of the tunnel; therefore it must be a public, routable IP address. The IP address is the one that you entered in the field B 46 of the Internet Worksheet.

    • For Tunnel Destination, enter the Peer IP Address of the Tunnel Destination.

    • For IP address of the GRE tunnel, enter the IP address and the subnet mask of the tunnel. The IP addresses at both ends of the tunnel must be in the same subnet.

      Note: The tunnel is given a separate IP address so that it can be a private address, if necessary.

    • Click Next.

    Sec_GRE_tunnel_ovr_IPSEC_06.gif

  8. On the Backup GRE Tunnel Information screen, click Next.

    Sec_GRE_tunnel_ovr_IPSEC_07.gif

  9. On the VPN Authentication Information screen, for Authentication, choose Pre-shared Keys and enter the VPN group password in the pre-share key that you entered in field R22 of the Security Appliance Worksheet and reenter it for confirmation.

    Sec_GRE_tunnel_ovr_IPSEC_08.gif

  10. On the IKE Proposals screen, click Next to accept the SDM default IKE proposals settings.

    Sec_GRE_tunnel_ovr_IPSEC_09.gif

  11. On the Transform Set screen, click Next to accept the SDM default Transform Set settings.

    Sec_GRE_tunnel_ovr_IPSEC_10.gif

  12. On the Select Routing Protocol screen, enter these values:

    • If you use EIGRP as the routing protocol in your network, check the EIGRP box to use the Enhanced Interior Gateway Routing Protocol to route traffic. Click Next and specify EIGRP AS number and networks which participate in the GRE-over-IPSec VPN in the Routing Information window. For more details on how to configure EIGRP, refer Configure Enhanced Interior Gateway Routing Protocol (EIGRP) with Security Device Manager. Proceed to step 14.

    • If you use OSPF as the routing protocol in your network, check the OSPF box to use the Open Shortest Path First protocol to route traffic. Click Next to specify OSPF Process ID and Area ID along with the networks which participate in the GRE-over-IPSec VPN in the Routing Information window. For more details on how to configure OSPF, refer Configure Open Shortest Path First (OSPF) with Security Device Manager. Proceed to sep 14.

    • If you use RIP as the routing protocol in your network, check the RIP box to use the Routing Information Protocol to route traffic. Click Next to specify which networks participate in the GRE-over-IPSec VPN in the Routing Information window. For more details on how to configure RIP, refer Configure Routing Internet Protocol (RIP) with Security Device Manager. Proceed to step 14.

    • If you use Static Routing in your network, check the Static Routing box and click Next.

      Note: Configuring routing enables you to specify the networks which participate in the GRE-over-IPSec VPN and changes that you make in the Routing window affects routing of VPN traffic. For further assistance contact SMB Technical Assistance Center (SMB TAC).

    Sec_GRE_tunnel_ovr_IPSEC_11.gif

  13. On the Static Routing Information screen, choose the default option Do split tunneling and enter the IP address of the network at the other end of the tunnel. Also, you must ensure that the IP address entered in this field is reachable before you configure this option. If it is not reachable, no tunnel is established.

    Note: Split tunneling allows traffic that is destined for the network specified in the IP Address and Network Mask, fields to be encrypted and routed through the tunnel interface. All other traffic is not encrypted. When this option is selected, SDM creates a static route to the network, with the IP address and network mask.

    Sec_GRE_tunnel_ovr_IPSEC_12.gif

  14. On the Summary of the Configuration screen, click Finish.

    Sec_GRE_tunnel_ovr_IPSEC_13.gif

  15. On the Commands Delivery Status window, click OK.

    Sec_GRE_tunnel_ovr_IPSEC_14.gif

  16. Click the Save icon to save the new configuration.

    Sec_GRE_tunnel_ovr_IPSEC_15.gif


Back to Top



Next Step

You have completed this procedure.

To make further changes to the router, refer to the Router Support Page.

To configure other devices in your network, refer to the Configuration Overview Page.


Back to Top



Troubleshoot the Procedure

This section provides information about common problems that you may encounter. If this information does not solve your problem, contact the SMB Technical Assistance Center (SMB TAC) for assistance.

Problem

Cause(s) and Suggested Solution(s)

You are unable to connect to the router with Security Device Manager (SDM).

Refer to Configure Your Router with Security Device Manager.


Back to Top



Related Information

Service Requests

  Open a service request
  Update a service request

Feedback

Please rate this site:
++ + +/- - --

Suggestions for improvement:




If Cisco may contact you for more details
or for future feedback opportunities,
please enter your contact information:

Full Name:
Email:



© 1992-2006 Cisco Systems, Inc. All rights reserved. Terms and Conditions, Privacy Statement, Cookie Policy and Trademarks of Cisco Systems, Inc.