Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Software-Defined Networking (SDN) with OpenStack

You're reading from   Software-Defined Networking (SDN) with OpenStack Leverage the best SDN technologies for your OpenStack-based cloud infrastructure

Arrow left icon
Product type Paperback
Published in Oct 2016
Publisher
ISBN-13 9781786465993
Length 216 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Sriram Subramanian Sriram Subramanian
Author Profile Icon Sriram Subramanian
Sriram Subramanian
Sreenivas Voruganti Sreenivas Voruganti
Author Profile Icon Sreenivas Voruganti
Sreenivas Voruganti
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. OpenStack Networking in a Nutshell FREE CHAPTER 2. Introduction to Software-Defined Networking 3. SDN Protocols 4. SDN Networking with Open vSwitch 5. Getting Started with OpenDaylight 6. Using OpenDaylight with OpenStack 7. Getting Started with OpenContrail 8. OpenContrail Networking with OpenStack 9. Open Network Operating System (ONOS) 10. OVN and Open vSwitch Enhancements

Layer 2 (L2) capabilities in OpenStack

In networking terminology, the connectivity to a physical or virtual switch is also known as Layer 2 (L2) connectivity. L2 connectivity is the most fundamental form of network connectivity needed for virtual machines. As mentioned previously, OpenStack supports core and service functionality. The L2 connectivity for virtual machines falls under the core capability of OpenStack Networking, whereas router, firewall, and so on fall under the service category.

The L2 connectivity in OpenStack is realized using two constructs, called network and subnet. Operators can use OpenStack CLI or the web interface to create networks and subnets. And as virtual machines are instantiated, the operators can associate them to appropriate networks.

Creating a network using OpenStack CLI

A network defines the Layer 2 (L2) boundary for all the instances that are associated with it. All the virtual machines within a network are part of the same L2 broadcast domain.

The Liberty release has introduced a new OpenStack command-line interface (CLI) for different services. We will use the new CLI and see how to create a network:

Creating a network using OpenStack CLI

Creating a subnet using OpenStack CLI

A subnet is a range of IP addresses that are assigned to virtual machines on the associated Network. OpenStack Neutron configures a DHCP server with this IP address range and it starts one DHCP server instance per network, by default.

We will now show you how to create a subnet using OpenStack CLI:

Tip

Unlike a network, for a subnet, we need to use the regular Neutron CLI command in the Liberty release.

Creating a subnet using OpenStack CLI

Associating a network and subnet to a virtual machine

To give a complete perspective, we will create a virtual machine using the OpenStack web interface and show you how to associate a network and subnet to a virtual machine.

In your OpenStack web interface, navigate to Project | Compute | Instances:

Associating a network and subnet to a virtual machine

Click on the Launch Instance action on the right-hand side, as highlighted in the preceding screenshot. In the resulting window, enter the name for your instance and how you want to boot your instance:

Associating a network and subnet to a virtual machine

To associate a network and a subnet with the instance, click on the Networking tab. If you have more than one tenant network, you will be able to choose the network you want to associate with the instance. If you have exactly one network, the web interface will automatically select it:

Associating a network and subnet to a virtual machine

As mentioned previously, providing isolation for tenant network traffic is a key requirement for any cloud. OpenStack Neutron uses network and subnet to define the boundaries and isolate data traffic between different tenants. Depending on Neutron configuration, the actual isolation of traffic is accomplished by the virtual switches. VLAN and VXLAN are the most common networking technologies used to isolate traffic, in addition to protocols such as GRE.

You have been reading a chapter from
Software-Defined Networking (SDN) with OpenStack
Published in: Oct 2016
Publisher:
ISBN-13: 9781786465993
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image