Book Image

OpenStack Networking Cookbook

Book Image

OpenStack Networking Cookbook

Overview of this book

Table of Contents (19 chapters)
OpenStack Networking Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating and deleting a floating IP address using the Neutron CLI


As seen in the previous recipe, we first selected an instance in order to create and associate a floating IP. For better planning, it may be required to create a set of floating IP addresses even if instances have not yet been created. We will now show you how a floating IP address can be created and deleted using the Neutron CLI.

Getting ready

As we have seen, floating IP addresses are chosen automatically from the specified external Network. Therefore, you will need the following information to create a Network using CLI:

  • The name of the external Network—in our case, it will be External-Network

  • 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 are installed.

  2. Source the shell RC file to initialize the environment...