Book Image

OpenStack Networking Essentials

By : James Denton, Derek Chamorro
Book Image

OpenStack Networking Essentials

By: James Denton, Derek Chamorro

Overview of this book

The OpenStack Networking API offers users the ability to create and manage both basic and complex network architectures that blend the virtual and physical network infrastructure. This book kicks off by describing various components of Openstack Neutron and installing Ubuntu OpenStack based on Canonical's process. Further on, you will use various methods to interface with Neutron to create and manage network resources. You will also get to grips with the relationship between ports, networks, and subnets through diagrams and explanations, and see how the logical components are implemented via plugins and agents. Moving forward, you will learn how virtual switches are implemented and how to build Neutron routers. You will also configure networks, subnets, and routers to provide connectivity to instances using simple examples. At the end, you will configure and manage security groups, and will observe how these rules translate to iptables rules on the host machines. By the end of the book, you will be able to build basic network architectures using Neutron networks and routers in no time.
Table of Contents (15 chapters)
OpenStack Networking Essentials
Credits
About the Author
www.PacktPub.com
Preface
Index

Configuring VirtualBox networking


When configuring the OpenStack environment within VirtualBox, the following networks are required:

Network Type

Name

Network

Adapter Address

DHCP

NAT

<default>

<default>

<default>

Yes

Host-only

vboxnet0

10.254.254.0/24

10.254.254.1

No

Host-only

vboxnet1

10.50.0.0/24

10.50.0.1

No

The host-only networks will be configured within the Preferences window of the VirtualBox application, while the NAT network is a default network provided by VirtualBox that uses the host machine to provide outbound connectivity through the use of Network Address Translation (NAT). The configuration of the host-only networks is covered in the following sections.

Configuring host-only networks

To configure host-only networks within VirtualBox, open up the Preferences window. On a Mac OS X machine, this can be found under the VirtualBox menu. On a Windows machine, this can be found under the File menu. By default, the General settings window will appear:

  1. Click on the Host-only Networks button to reveal existing host-only networks:

  2. There are no Host-only Networks defined by default. On the right-hand side of the window, click on the icon shaped like a PCI card with a plus sign to add a new network:

  3. This network will be used as the management and OpenStack API network. Our client machine, in this case, the workstation running VirtualBox, needs an IP address from the network in order to communicate with the virtual machine hosting the OpenStack environment. Specify the address 10.254.254.1 and a netmask of 255.255.255.0. Be sure to disable DHCP in the DHCP Server section and click on the OK button to save the changes. Once the changes have been saved, the network will appear in the list:

  4. Click on the PCI card icon again to add an additional network that will be used to communicate with the external provider network created in this book:

  5. Click on OK to save the changes. Once they have been saved, both networks will be listed under Host-only Networks:

  6. Click on OK to save the networks.