Associating a floating IP address to a virtual machine using the Neutron CLI

We have seen that the Neutron CLI allows users to create a floating IP address independent of the existence of an instance. We will now show you how to associate a floating IP address to an instance using CLI.

Getting ready

For this recipe, you will need to know the virtual interface or the Port of the instance to which you need to bind the floating IP address. You will also need the following information:

  • The login credentials for SSH to a node where the Neutron client packages are installed
  • A shell RC file that initializes the environment variables for CLI

How to do it…

  1. Using the appropriate credentials, SSH into the OpenStack node where the Neutron client software packages ...

Get OpenStack Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.