Example: GRE tunnel over an IPSec tunnel

The TX64-Rail device can be configured as an advertised set of routes through an IPSec tunnel. This allows you to leverage the dynamic route advertisement of GRE tunnels through a secured IPSec tunnel.

The example configuration provides instructions for configuring the TX64-Rail device with a GRE tunnel through IPsec.

TX64-Rail-1 configuration tasks

  1. Create an IPsec tunnel named ipsec_gre1 with:
    • A pre-shared key.
    • Remote endpoint set to the public IP address of the TX64-Rail-2 device.
    • A policy with:
      • Local network set to the IP address and subnet of the local GRE tunnel, 172.30.0.1/32.
      • Remote network set to the IP address and subnet of the remote GRE tunnel, 172.30.0.2/32.
  2. Create an IPsec endpoint interface named ipsec_endpoint1:
    1. Zone set to Internal.
    2. Device set to Ethernet: Loopback.
    3. IPv4 Address set to the IP address of the local GRE tunnel, 172.30.0.1/32.
  3. Create a GRE tunnel named gre_tunnel1:
    1. Local endpoint set to the IPsec endpoint interface, Interface: ipsec_endpoint1.
    2. Remote endpoint set to the IP address of the GRE tunnel on TX64-Rail-2, 172.30.0.2.
  4. Create an interface named gre_interface1 and add it to the GRE tunnel:
    1. Zone set to Internal.
    2. Device set to IP tunnel: gre_tunnel1.
    3. IPv4 Address set to a virtual IP address on the GRE tunnel, 172.31.0.1/30.

TX64-Rail-2 configuration tasks

  1. Create an IPsec tunnel named ipsec_gre2 with:
    • The same pre-shared key as the ipsec_gre1 tunnel on TX64-Rail-1.
    • Remote endpoint set to the public IP address of TX64-Rail-1.
    • A policy with:
      • Local network set to the IP address and subnet of the local GRE tunnel, 172.30.0.2/32.
      • Remote network set to the IP address of the remote GRE tunnel, 172.30.0.1/32.
  2. Create an IPsec endpoint interface named ipsec_endpoint2:
    1. Zone set to Internal.
    2. Device set to Ethernet: Loopback.
    3. IPv4 Address set to the IP address of the local GRE tunnel, 172.30.0.2/32.
  3. Create a GRE tunnel named gre_tunnel2:
    1. Local endpoint set to the IPsec endpoint interface, Interface: ipsec_endpoint2.
    2. Remote endpoint set to the IP address of the GRE tunnel on TX64-Rail-1, 172.30.0.1.
  4. Create an interface named gre_interface2 and add it to the GRE tunnel:
    1. Zone set to Internal.
    2. Device set to IP tunnel: gre_tunnel2.
    3. IPv4 Address set to a virtual IP address on the GRE tunnel, 172.31.0.2/30.

Configuration procedures

Configure the TX64-Rail-1 device

Configure the TX64-Rail-2 device