Ask Your Question
0

Multiple Provider VLAN network with one physical interface

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

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 https://docs.openstack.org/ocata/networking-guide/deploy-lb-provider.html (https://docs.openstack.org/ocata/netw...) 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
0

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

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
0

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

luowei gravatar image

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

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: https://docs.openstack.org/ocata/inst...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 1,160 times

Last updated: Apr 28 '17