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

Creating a Network with a specific VNI


In this recipe, we will see how to create a VXLAN-based virtual network using a specific VNI. Normally, Neutron would automatically allocate a VNI for a VXLAN-based virtual network from the range of available VNIs, but there are situations when users need a network with a specific VNI. In such cases, an OpenStack administrator can create a virtual network with a manually assigned VNI.

Getting ready

For this recipe, you will need to access OpenStack as an administrator. You will also need the following information:

  • The SSH login credentials for the node where the Neutron client packages are installed

  • An administrative level access to OpenStack

  • The Network name

  • A VNI for the virtual network

How to do it…

The following steps will show you how to create a virtual network with a specific VNI using the OpenStack CLI:

  1. Log in to a node with access to OpenStack.

  2. Source your RC file to set up the access credentials as an administrator.

  3. Use the following neutron net-create...