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 a load balancer pool using CLI


In the previous recipe, we saw how to create a load balancer pool using Horizon. In this recipe, we will use the Neutron CLI to create a load balancer pool.

Getting ready

For this recipe, you will need the following information:

  • The SSH login credentials for a node where the Neutron client packages are installed

  • A shell RC file that initializes the environment variables for CLI

  • The name of the load balancer pool

  • The Subnet ID for the load balancer

  • The method to use for the load balancing

  • The protocol that needs to be load balanced

How to do it…

The following steps will show you how to create a load balancer pool using the Neutron CLI:

  1. Using the appropriate credentials, SSH into the OpenStack node installed with the Neutron client packages.

  2. Source the shell RC file to initialize the environment variables required for the CLI commands.

  3. Execute the neutron lb-pool-create command to create the load balancer pool:

  4. Once created, Neutron will display the details of the...