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:
Log in to a node with access to OpenStack.
Source your RC file to set up the access credentials as an administrator.
Use the following
neutron net-create...