Creating a Floating IP Address Pool and Allocating it to a Virtual Machine
Creating a Floating IP Address Pool
A floating IP address is an IP address (typically public) that can be dynamically assigned to a running virtual instance. You can configure floating IP address pools in project networks in Contrail, then allocate floating IP addresses from the pool to virtual machine instances in other virtual networks.
- Select Configure > Networking > Networks; see Figure 1. Make sure your project is the active
project in the upper right.
Figure 1: Configure > Networking > Networks

- Click the network you want to associate with a floating
IP pool, then in the Action column, click the action icon
and select Edit.
The Edit Network window for the selected network is displayed; see Figure 2.
Figure 2: Edit Network

- In the Floating IP Pools section, click the Pool Name field, enter a name for your floating IP pool, and
click the + (plus sign) to add the IP pool to the table
below the field.
- Multiple floating IP pools can be created at the same time.
- A floating IP pool can be associated to multiple projects.
- Click Save to create the floating IP address pool, or click Cancel to remove your work and start over.
Allocating a Floating IP Address to a Virtual Machine
If you have configured a floating IP address pool, you can use the following procedure to allocate the pool to a VM instance.
- In the Contrail Web user interface, select Configure
> Networking > Manage Floating IPs. The the Manage Floating
IPs window is displayed.
Make sure your project is displayed (active) in the upper right. See Figure 3.
Figure 3: Manage Floating IPs

- In the Manage Floating IPs window, click +.
The Allocate Floating IP window is displayed; see Figure 4. .
Figure 4: Allocate Floating IP Window


- Select the name of the floating IP pool from the Floating IP Pool list . The floating IP pool is shared among multiple projects.
- Select either Dynamic or Specific IP from the Allocation Type list.
- If Dynamic is selected, type the number of IP addresses. If Specific IP is selected, type the specific IP address.
- If Dynamic is selected, click Save. If Specific IP is selected, click Allocate.
- After the floating IP pool has been allocated, you can
associate it to or disassociate it from instance addresses. In the
Manage Floating IPs window, select the floating IP pool you want,
then click the gear wheel icon and select Associate Port or Disassociate.
If you select Associate Port, the Associate Floating IP window is displayed; see Figure 5
Figure 5: Associate Floating IP

- In the Port field, select the UUID of the VM instance to associate with the selected floating IP pool from the Port list, and click Save.

