Connect to Floating IP Addresses in Multiple AWS AZs

Overview

A subnet cannot span more than one availability zone (AZ) in AWS [1]. Because of this, the IP address assigned to an instance in one AZ cannot be reassigned to another instance in a different AZ.

Applications that require users have a single IP address for connectivity, such as cloud-based NFS and CIFS services, need a way to failover to a different instance when the node fails. This fault tolerance is key to services like NetApp’s ONTAP Cloud. A single AZ solution does not satisfy users’ demands for a guarantee of an always-on solution.

In order to overcome the AWS limitation, applications like NetApp Cloud, rely on “floating” IPs addresses for failover between nodes in different AZs. Floating IP addresses are outside the range of the VPC CIDR. In order to route to these addresses within AWS, they must not overlap with any CIDR range in the same AWS region.

Clients connect to the floating IP address rather than the IP address of the node itself. When a node failure (or even an entire AZ failure) is detected, the floating IP address is “moved” to an instance in another AZ.

Problem

The floating IP solution works well if the client is in the same VPC as the server. However, if the client is not in the same VPC, AWS routing does not support routing to these IP addresses that are outside of the CIDR range for the VPC. Those packets will never exit the VPC.

imageProblem

Aviatrix Solution

Aviatrix solves this problem by handling routing of the floating IP addresses in the client VPC. All packets destined for the floating IP address(es) will be delivered to the Aviatrix Gateway. The gateway maintains an internal route table that points those packets to an Aviatrix gateway in the server VPC.

imageAviatrixSolution

Aviatrix Step-by-Step Deployment Guide for NetApp

Overview

imageNetappHA

What you will need:

  1. A shared services VPC where the Aviatrix central controller will be installed.
  2. AWS account credentials or the ability to create new IAM roles. This is how the Aviatrix Controller will connect to your AWS account.
  3. Access to the VPC where the client resides.
  4. Access to the VPC where the NetApp ONTAP Cloud is installed.

Aviatrix Controller

If you have already installed an Aviatrix Controller, you can skip this step.

  1. Follow the steps in this guide to install a Controller in a VPC of your choice (a shared services VPC, for example)

Client VPC

Provision an Aviatrix Gateway in the VPC where your client application resides:

Note

The Aviatrix gateway must be installed in a public subnet. If you do not have one created in the VPC where your client application resides, please create one before continuing.

  1. Login to your Aviatrix Controller
  2. Click on the Gateways item on the naviagation menu
  3. Click on + New Gateway to create a new Gateway
  4. Select the VPC and subnet and provide a name for this Gateway (e.g., “netapp-client”)
  5. Leave the other options at their default values
  6. Click OK

NetApp ONTAP Cloud VPC

Next, create a Gateway in the VPC of your NetApp Cloud installation.

Note

The Aviatrix gateway must be installed in a public subnet. If you do not have one created in the VPC where your NetApp Cloud is installed, please create one before continuing.

  1. Login to your Aviatrix Controller
  2. Click on the Gateways item on the naviagation menu
  3. Click on + New Gateway to create a new Gateway
  4. Select the VPC and subnet and provide a name for this Gateway (e.g., “netapp-ontap”)
  5. Leave the other options at their default values
  6. Click OK

For redundancy, enable HA:

Note

The Aviatrix HA gateway must be installed in a public subnet. If you do not have one created in the VPC where your NetApp Cloud is installed, please create (another) one before continuing in a different AZ than the previous gateway.

  1. Login to your Aviatrix Controller
  2. Click on the Gateways item on the naviagation menu
  3. Select the gateway just created (e.g., “netapp-ontap”)
  4. Click on the Edit button above the table
  5. Below Gateway for High Availability Peering, select the public subnet that is in a different AZ from the earlier gateway
  6. Click Create

Peer the Client VPC with the ONTAP VPC

First, set up a connection for traffic to go between the client and the ONTAP VPC:

  1. Login to your Aviatrix Controller

  2. Click on the Peering item on the navigation menu

  3. Click on + New Peering to create a new peer

  4. Select netapp-client for Gateway1 and netapp-ontap for Gateway2

  5. Click OK

    imageAddPeer

Route Floating IP addresses to the ONTAP VPC

Next, set up a route for traffic for the floating IP addresses through the client gateway to the ONTAP gateway:

  1. Login to your Aviatrix Controller

  2. Click on the Peering item on the navigation menu

  3. Click on the Transitive Peering tab

  4. Click on + New Peering to create a new transitive peer definition

  5. Select the netapp-client for the Source Gateway and netapp-ontap for the NextHop Gateway

  6. In the Destination CIDR, enter the list of floating IP addresses (comma-separated). For example, 192.168.10.2/32, 192.168.10.3/32, 192.168.10.4/32.

  7. Click OK

    imageAddTransitivePeer