Book Image

Learning OpenStack Networking (Neutron)

By : James Denton
Book Image

Learning OpenStack Networking (Neutron)

By: James Denton

Overview of this book

OpenStack Neutron is an OpenStack component that provides networking as a service for other OpenStack services to architect networks and create virtual machines through its API. This API lets you define network connectivity in order to leverage network capabilities to cloud deployments. Through this practical book, you will build a strong foundational knowledge of Neutron, and will architect and build an OpenStack cloud using advanced networking features. We start with an introduction to OpenStack Neutron and its various components, including virtual switching, routing, FWaaS, VPNaaS, and LBaaS. You’ll also get hands-on by installing OpenStack and Neutron and its components, and use agents and plugins to orchestrate network connectivity and build a virtual switching infrastructure. Moving on, you’ll get to grips with the HA routing capabilities utilizing VRRP and distributed virtual routers in Neutron. You’ll also discover load balancing fundamentals, including the difference between nodes, pools, pool members, and virtual IPs. You’ll discover the purpose of security groups and learn how to apply the security concept to your cloud/tenant/instance. Finally, you' ll configure virtual private networks that will allow you to avoid the use of SNAT and floating IPs when connecting to remote networks.
Table of Contents (21 chapters)
Learning OpenStack Networking (Neutron) Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring virtual machine networking


Once the guest operating system is installed, it is time to configure the networking within the virtual machine. This includes the setup of the management, overlay, external, and NAT networks.

Accessing the virtual machine

Before networking is configured, access to the virtual machine will be limited to the console. From the virtual machine console, enter the credentials specified during the installation process. A successful login should result in a screen similar to the following:

Figure B.25

Use the sudo command to log in as root:

Figure B.26

Configuring network interfaces

Using the ip a command to verify that four network interfaces are attached to the virtual machine. The network interfaces will likely be labeled eth0 through eth3:

Figure B.27

Using a text editor, edit the network interfaces file found at /etc/network/interfaces and add the following interfaces and their respective addresses. The addresses can be found in Chapter 2, Installing OpenStack:

Figure B.28

Close the file and run ifup --all to bring up the network interfaces:

Figure B.29

The output of the ip a command shows that the interfaces are UP and configured with the specified addresses:

Figure B.30

A quick connectivity test shows that the virtual machine is able to access the Internet:

Figure B.31

Repeat these steps as necessary to configure the network interfaces on additional virtual machines using the table provided at the beginning of this appendix.