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

Configuring the VLAN range to be used for the networks


In order to use VLAN as the network type, Neutron requires a range of VLAN identifiers. Each OpenStack Network will be associated with a unique VLAN identifier. This recipe shows you how to configure this range of VLAN IDs.

Getting ready

The valid range for a VLAN ID is 1-4095. However, based on your OpenStack environment and the physical network, it is possible to use a subset of this range.

How to do it…

Configuring the VLAN ID range is a setting in the plugin configuration file. The following steps will show you how to set this range:

  1. With the appropriate credentials, SSH into the node where the Neutron server is running.

  2. Open the Neutron ML2 plugin configuration file using your desired editor. For example, the command for vi editor will be as follows:

    openstack@controller:~$ sudo vi /etc/neutron/plugins/ml2/ml2_conf.ini
    
  3. In the [ml2_type_vlan] section of the file, configure the VLAN range:

    [ml2_type_vlan]
    ...
    network_vlan_ranges = physnet1...