Creating a VLAN network in the CLI

A VLAN network is one in which Neutron will tag traffic based on an 802.1q segmentation ID. The syntax used to create a VLAN network can be seen here:

openstack network create
--provider-network-type vlan
--provider-physical-network <provider-physical-network>
--provider-segment <provider-segment>
<name>
By default, only users with the admin role are allowed to specify provider attributes.

Up to 4,096 VLANs can be defined on a single provider interface, though some of those may be reserved by the physical switching platform for internal use. The following is an example of using the OpenStack client to create a VLAN network by the name of MyVLANNetwork.

The network will utilize the bridge or interface represented by physnet1and the traffic will be tagged with a VLAN identifier of 300. The resulting output is as follows:

To create an additional VLAN network that utilizes the provider interface, simply specify a different segmentation ID. In the following example, VLAN 301 is used for the new network, MyVLANNetwork2. The resulting output is as follows:

When using VLAN networks, don't forget to configure the physical switch port interface as a trunk. This configuration will vary between platforms and is outside the scope of this book.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset