You are previewing OpenStack Networking Cookbook.
O'Reilly logo
OpenStack Networking Cookbook

Book Description

Harness the power of OpenStack Networking for public and private clouds using 90 hands-on recipes

About This Book

  • Build and manage virtual switching, routing, and firewall-based networks in OpenStack using Neutron

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

  • Monitor and automate OpenStack networks using tools like Ceilometer and Heat

  • In Detail

    Networking in OpenStack has evolved from Nova Network to Neutron. This has resulted in a rich suite of networking services available to OpenStack users and administrators. Advanced services such as routers, firewall, and load balancers use building blocks such as network and subnets. Recent improvements support powerful customization using plugins. The evolution of Neutron continues as it integrates with tools like Ceilometer and Heat.

    This book will explore the built-in capabilities of Neutron to effectively deploy cloud solutions. You will begin with the most fundamental constructs of OpenStack Networking for switching and routing. You will then learn how to provide your tenants with services like firewalls and load-balancers. The step-by-step recipes will help you configure and troubleshoot networking problems in your cloud. This book will also introduce you to advanced topics like Ceilometer, Heat, and other upcoming tools in OpenStack

    What You Will Learn

  • Operate OpenStack Networking for public and private clouds

  • Configure advanced routing services for your workloads

  • Secure data traffic using firewall-as-a-service capabilities of OpenStack

  • Discover how to leverage VXLAN to implement SDN in your OpenStack cloud

  • Monitor the virtual networks using Ceilometer

  • Develop plugins to enhance and customize OpenStack Networking

  • Provide HA and VPN connectivity for your virtual machines

  • Troubleshoot and solve common problems with OpenStack Networking

  • Who This Book Is For

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

    Style and approach

    The book is full of step-by-step recipes to configure and manage the networking aspects of your OpenStack cloud. In addition to covering basic configuration involved in OpenStack Networking, the books also shares various troubleshooting tips and techniques. As much as possible the book uses OpenStack dashboard (Horizon) to help the user get a feel of real OpenStack Networking.

    Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

    Table of Contents

    1. OpenStack Networking Cookbook
      1. Table of Contents
      2. OpenStack Networking Cookbook
      3. Credits
      4. About the Authors
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Sections
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Conventions
        6. Reader feedback
        7. Customer support
          1. Downloading the example code
          2. Downloading the color images of this book
          3. Errata
          4. Piracy
          5. Questions
      8. 1. Getting Started with OpenStack Networking
        1. Introduction
        2. Creating a Subnet and Network using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        3. Viewing the details of a Network using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Associating a Network to an instance using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        5. Creating a Network using OpenStack CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        6. Creating a Subnet using OpenStack CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
        7. Creating a Port without an associated instance using the OpenStack CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
        8. Associating a Port to an instance using OpenStack CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        9. Configuring the networking quota in OpenStack
          1. Getting ready
          2. How to do it…
          3. How it works…
      9. 2. Using Open vSwitch for VLAN-Based Networks
        1. Introduction
        2. Configuring Neutron to use the Open vSwitch mechanism driver
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Configuring Neutron to use the VLAN type driver
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Configuring the VLAN range to be used for the networks
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Viewing the VLAN allotted for a Network
          1. Getting ready
          2. How to do it…
          3. How it works…
        6. Creating a Network with a specific VLAN
          1. Getting ready
          2. How to do it…
          3. How it works…
        7. Viewing the virtual interface information on the compute node
          1. Getting ready
          2. How to do it…
          3. How it works…
        8. Viewing the virtual interface information on the Network node
          1. Getting ready
          2. How to do it…
          3. How it works…
      10. 3. Exploring Other Network Types in Neutron
        1. Introduction
        2. Configuring Neutron to use the Linux bridge mechanism driver
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Viewing the virtual interface information for Linux bridge on the compute node
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        4. Configuring Neutron to use a Flat network type
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Creating a Flat Network using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        6. Creating a Shared Network using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
        7. Creating an External Network using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
        8. Setting up a simple web application – an introduction
          1. Getting ready
          2. How to do it…
          3. How it works…
        9. Setting up a simple web application – setting up OpenStack Networks
          1. Getting ready
          2. How to do it…
          3. How it works…
        10. Setting up a simple web application – creating instances
          1. Getting ready
          2. How to do it…
          3. How it works…
      11. 4. Exploring Overlay Networks with Neutron
        1. Introduction
        2. Configuring Neutron to use a VXLAN type driver
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        3. Configuring a VNI Range for VXLAN Networks
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Viewing a VNI assigned to a Neutron Network
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Creating a Network with a specific VNI
          1. Getting ready
          2. How to do it…
          3. How it works…
        6. Viewing the virtual interface information on the compute node for VXLAN tunnels
          1. Getting ready
          2. How to do it…
          3. How it works…
        7. Viewing the virtual interface information on the network node for VXLAN tunnels
          1. Getting ready
          2. How to do it…
          3. How it works…
        8. Configuring Neutron to use a GRE type driver
          1. Getting ready
          2. How to do it…
          3. How it works…
        9. Viewing a virtual interface on the compute node for GRE tunnels
          1. Getting ready
          2. How to do it…
          3. How it works…
      12. 5. Managing IP Addresses in Neutron
        1. Introduction
        2. Creating an instance with a specific IP address
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Configuring multiple IP addresses for a virtual interface
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Creating a redundant DHCP server per OpenStack Network
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Starting the DHCP server on a specific network node
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        6. Increasing the number of IP addresses in a Network using the Horizon dashboard
          1. Getting ready
          2. How to do it…
          3. How it works…
      13. 6. Using Routing Services in Neutron
        1. Introduction
        2. Configuring Neutron for Routing services
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Creating a Router using the Horizon dashboard and Neutron CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        4. Enabling instances on different Networks to communicate
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        5. Allowing the Virtual Machine instances to access the Internet
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        6. Providing access to a Virtual Machine from an external Network or the Internet using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
        7. Creating and deleting a floating IP address using the Neutron CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        8. Associating a floating IP address to a virtual machine using the Neutron CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
      14. 7. Using Neutron Security and Firewall Services
        1. Introduction
        2. Creating a security group using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Configuring the security group rules using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Creating a security group using CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Configuring the security group rules using CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
        6. Securing the traffic between instances on the same Network
          1. Getting ready
          2. How to do it…
          3. How it works…
        7. Creating the security group rules to allow web traffic
          1. Getting ready
          2. How to do it…
          3. How it works…
        8. Configuring Neutron for the Firewall service
          1. Getting ready
          2. How to do it…
          3. How it works…
        9. Creating the Firewall rules
          1. Getting ready
          2. How to do it…
          3. How it works…
        10. Creating the Firewall policies
          1. Getting ready
          2. How to do it…
          3. How it works…
        11. Creating a Firewall
          1. Getting ready
          2. How to do it…
          3. How it works…
        12. Viewing and verifying the Firewall rules on the Network node
          1. Getting ready
          2. How to do it…
          3. How it works…
      15. 8. Using HAProxy for Load Balancing
        1. Introduction
        2. Installing and configuring the Neutron load balancer service plugin
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Creating a load balancer pool using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Creating a load balancer pool using CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Adding a load balancer member using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
        6. Adding a load balancer member using CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
        7. Adding a load balancer health monitor using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
        8. Adding a load balancer health monitor using CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
        9. Creating a Virtual IP using Horizon
          1. Getting ready
          2. How to do it…
          3. How it works…
        10. Creating a Virtual IP using CLI
          1. Getting ready
          2. How to do it…
          3. How it works…
        11. Making the load balancer accessible to the Internet
          1. Getting ready
          2. How to do it…
          3. How it works…
        12. Testing the load balancer
          1. Getting ready
          2. How to do it…
          3. How it works…
        13. Viewing the load balancer on the network node
          1. Getting ready
          2. How to do it…
          3. How it works…
      16. 9. Monitoring OpenStack Networks
        1. Introduction
        2. Monitoring the Virtual Machine bandwidth
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Monitoring the L3 bandwidth
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Monitoring the load balancer connection statistics
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Monitoring the per project and per user bandwidth
          1. Getting ready
          2. How to do it…
          3. How it works…
        6. Monitoring the host Network bandwidth
          1. Getting ready
          2. How to do it…
          3. How it works…
      17. 10. Writing Your Own Neutron ML2 Mechanism Driver
        1. Introduction
        2. Creating a basic ML2 mechanism driver
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Registering your ML2 mechanism driver with the Neutron server
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        4. Processing API requests for a Network
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Processing API requests for a Subnet
          1. Getting ready
          2. How to do it…
          3. How it works…
        6. Processing API requests for a Port
          1. Getting ready
          2. How to do it…
          3. How it works…
      18. 11. Troubleshooting Tips for Neutron
        1. Introduction
        2. Troubleshooting a VM that does not get a DHCP IP address
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Troubleshooting a VM that does not get an initial configuration
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Troubleshooting a VM that does not get external Network access
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Troubleshooting a VM not reachable from external Networks
          1. Getting ready
          2. How to do it…
          3. How it works…
        6. Checking the status of the Neutron service
          1. Getting ready
          2. How to do it…
          3. How it works…
        7. Checking the MAC address table on a virtual switch
          1. Getting ready
          2. How to do it…
          3. How it works…
      19. 12. Advanced Topics
        1. Introduction
        2. Configuring Neutron for VPN as a service
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Testing VPN as a service on Neutron
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Using link aggregation on the compute node
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Integrating networking in a Heat template
          1. Getting ready
          2. How to do it…
          3. How it works…
      20. Index