The goal is to connect provider and management network of OpenStack nodes in one physical network.

Solution:

Create virtual bridge, ie. br0. The first thing to do is modify /etc/network/interfaces

auto br0
iface br0 inet static
bridge_ports enp5s0f3
address 10.145.254.24
broadcast 10.145.254.255
netmask 255.255.255.0
gateway 10.145.254.1
dns-nameservers 8.8.8.8 8.8.4.4

After this, create net and subnet (provider and selfservice network) in Neutron.

This will cause a problem that when net and subnet are created, the physical interface will be allocated to the new virtual bridge, ie.


bridge name         bridge id               STP enabled   interfaces
brq0d4b6fed-07 8000.000af7a48d33   no            enp5s0f3
tap07946bcd-40
tapad8e28f7-80
brq38d3d58c-21   8000.52530e3ede45    no            tap5092841a-09
tapa38f7e1c-07
vxlan-77
virbr0                       8000.000000000000 yes


At this time, the internet connection will be lost. The solution is to allocate the physical interface to the new virtual bridge using:

brctl delif      vit-br       phy-interface

brctl addlif      vit-br       phy-interface

Then modify /etc/network/interfaces again, allocate the physical interface to the new virtual bridge, reboot the system, then the problem should be resolve.

 

Advertisements