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

Preface

OpenStack is an open source platform that leverages compute, network, and storage solutions to create private and public clouds. In the last couple of years, the adoption of OpenStack has increased dramatically and is being embraced by enterprises around the world.

Networking is one of the pillars of OpenStack. A solid understanding of OpenStack Networking will help you implement a rich suite of services in your OpenStack cloud. This book helps you develop the practical knowledge of a wide range of OpenStack Networking concepts.

This book starts with building blocks such as Network, Subnet, and Port. It then proceeds to cover OpenStack Networking technologies, such as Routers, Firewalls, and so on. Advanced topics such as the configuration of load balancers, VPN service to provide site-to-site connectivity, and development of a simple ML2 driver are also covered to help you build and manage the best networks for your OpenStack cloud.

This book will cover you the following topics:

  • How to build and manage virtual switching, routing, and firewall-based networks in OpenStack using Neutron

  • How to develop plugins and drivers for Neutron to enhance the built-in networking capabilities

  • How to monitor and automate OpenStack networks using tools such as Ceilometer and Heat

What this book covers

Chapter 1, Getting Started with OpenStack Networking, introduces you to the building blocks of OpenStack Networking, namely Network, Subnet, and Port.

Chapter 2, Using Open vSwitch for VLAN-based Networks, shows you how to build and manage OpenStack networks using VLANs and Open vSwitch.

Chapter 3, Exploring Other Network Types in Neutrons, takes you through the different types of OpenStack networks with the help of a practical example.

Chapter 4, Exploring Overlay Networks with Neutron, shows you how to build and manage the VXLAN-based and GRE-based networks in OpenStack.

Chapter 5, Managing IP Addresses in Neutron, helps you understand the IP address allocation and DHCP-based address assignment features in OpenStack Neutron.

Chapter 6, Using Routing Services in Neutron, explores how to leverage OpenStack routing capabilities to connect multiple networks.

Chapter 7, Using Neutron Security and Firewall Services, shows you how to implement security groups and Firewall as a service in OpenStack in order to secure your cloud networks.

Chapter 8, Using HAProxy for Load Balancing, takes you through the techniques to implement load balancing as a service in OpenStack using HAProxy.

Chapter 9, Monitoring OpenStack Networks, shows you how to monitor your OpenStack networks using Ceilometer.

Chapter 10, Writing Your Own ML2 Mechanism Driver, gives you a foundation on how to write your own custom ML2 mechanism driver for Neutron.

Chapter 11, Troubleshooting Tips for Neutron, highlights the different OpenStack networking problems that you can run into and their solutions.

Chapter 12, Advanced Topics, covers advanced topics, such as VPN as a Service and Networking using Heat template.

What you need for this book

To use this book, you will need computers or servers that have hardware virtualization capabilities.

Kilo is the most recent release of OpenStack and is recommended to try out the recipes in this book.

OpenStack supports different models of deployment and each chapter provides a high level setup that is relevant for the corresponding recipes. You can also use DevStack for most of the recipes, but we recommend creating a distributed OpenStack setup for in-depth learning.

Who this book is for

This book is aimed at network and system administrators who want to deploy and manage the OpenStack-based cloud and IT infrastructure. If you have a basic knowledge of OpenStack and virtualization, this book will help you leverage the rich functionality of OpenStack Networking in your cloud deployments.

Sections

In this book, you will find several headings that appear frequently (Getting ready, How to do it, How it works, There's more, and See also).

To give clear instructions on how to complete a recipe, we use these sections, as follows:

Getting ready

This section tells you what to expect in the recipe, and describes how to set up any software or any preliminary settings required for the recipe.

How to do it…

This section contains the steps required to follow the recipe.

How it works…

This section usually consists of a detailed explanation of what happened in the previous section.

There's more…

This section consists of additional information about the recipe in order to make the reader more knowledgeable about the recipe.

See also

This section provides helpful links to other useful information for the recipe.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

[ml2]
. . .
dhcp_agents_per_network = 2

Any command-line input or output is written as follows:

openstack@controller:~$ cat author_openrc.sh
export OS_TENANT_NAME=cookbook
export OS_USERNAME=author
export OS_PASSWORD=password
export OS_AUTH_URL=http://controller:35357/v2.0

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "In the left navigation menu, click on Identity and then Projects."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://www.packtpub.com/sites/default/files/downloads/6100OS_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.