Connecting Network

https://www.tecmint.com/openstack-networking-guide/

Before starting to create OpenStack networks from dashboard, first we need to create an OVS bridge and modify our physical network interface to bind as a port to OVS bridge.

Thus, login to your server terminal, navigate to network interfaces directory scripts and use the physical interface as an excerpt to setup OVS bridge interface by issuing the following commands:

cd /etc/sysconfig/network-scripts/
sudo cp ifcfg-ens224 ifcfg-br-ex

Next, edit and modify the bridge interface (br-ex) using a text editor as illustrated below:

sudo vi ifcfg-br-ex

Interface br-ex excerpt:

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=br-ex
UUID=699823c8-2476-42d5-be71-e7c9c94f1f41
DEVICE=br-ex
ONBOOT=yes

DNS1=10.13.37.1
DOMAIN=stack.domain.id
IPADDR=10.13.37.166
NETMASK=255.255.255.0
PREFIX=24
GATEWAY=10.13.37.1
PROXY_METHOD=none
BROWSER_ONLY=no
ZONE=private

Do the same with the physical interface (ens224), but make sure it looks like this:

Interface ens224 excerpt:

TYPE=Ethernet
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens224
UUID=699823c8-2476-42d5-be71-e7c9c94f1f40
DEVICE=ens224
ONBOOT=yes
TYPE="OVSPort"
DEVICETYPE="ovs"
OVS_BRIDGE="br-ex"

Important: While editing interfaces cards make sure you replace the physical interface name, IPs and DNS servers accordingly.

Finally, after you’ve modified edited both network interfaces, restart network daemon to reflect changes and verify the new configurations using ip command.

Add routes and rules.

sudo vi rule-br-ex

from 10.13.37.166/8 table rt2
to 10.13.37.166/8 table rt2

sudo vi route-br-ex

10.0.0.0/8 dev br-ex src 10.13.37.166 table rt2
default via 10.13.37.1 dev br-ex table rt2
systemctl restart network.service
# ip a

Restore to previous configuration

Remove ovs-system attribute on ens224 interfaces.

ovs-vsctl del-port br-ex ens224

results matching ""

    No results matching ""