Configuring Neutron to use the VLAN type driver

The ML2 plugin needs to be configured in order to use VLAN as the network type for all the tenant networks.

Getting ready

The ML2 plugin has a configuration file setting that needs to be updated so that the tenants can use VLAN as the tenant network type.

How to do it…

The following steps will show you how to configure VLAN as the type driver and tenant network type:

  1. With the appropriate credentials, SSH into the node where the Neutron server is running. In our setup, it will be the Controller and Network node.
  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 ...

Get OpenStack Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.