Ask Your Question

Multiple Provider VLAN network with one physical interface

asked 2017-04-26 16:16:21 -0600

Alejandro gravatar image

Hello, I have two servers (control and compute) with two interfaces (one for control and the other for provider) I want to have more than one provider network (with their respective VLANS) and as I read in ( this is possible, but it is necessary to configure the networks as vlan-type. How can I do this considering that I should have this provider interfaces connected to a tagged (or trunked) interface of a switch (if I'm right). I mean how do I should configure neutron and the provider interfaces on the servers' OS?. The documentation is not so clear for this scenario so I appreciate any reference to other documentation. Thanks

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-04-28 00:35:02 -0600

Allow me to suggest a blog series that goes through the steps of configuring the network for OpenStack Liberty using several VLANs (no, it's not my blog, and I don't think I know the writer). The procedure should be unchanged in more recent OpenStack releases.

edit flag offensive delete link more

answered 2017-04-28 19:19:49 -0600

luowei gravatar image

updated 2017-04-28 19:32:15 -0600

If your one provider interface is connected to a switch/router that carries the 2 tagged vlans (say 100 and 200), just use the linux vlan package. Here are instructions for Ubuntu (interface is enp3s0 for the example):

sudo apt-get install vlan
sudo modprobe 8021q
sudo  sh -c 'grep -q 8021q /etc/modules || echo 8021q >> /etc/modules'
sudo vconfig add enp3s0 100
sudo vconfig add enp3s0 200

--- in /etc/network/interfaces ---
auto enp3s0.100
iface enp3s0.100 inet manual
        vlan-raw-device enp3s0
        up ip link set dev $IFACE up
        down ip link set dev $IFACE down
 auto enp3s0.200
iface enp3s0.200 inet manual
        vlan-raw-device enp3s0
        up ip link set dev $IFACE up
        down ip link set dev $IFACE down

--- in /etc/neutron/plugins/ml2/linuxbridge_agent.ini ---
physical_interface_mappings = provider:enp3s0.100,provider2:enp3s0.200

When ready, create the two provider networks as usual:

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-04-26 16:15:34 -0600

Seen: 1,924 times

Last updated: Apr 28 '17