Ask Your Question

Revision history [back]

I presume that there is real Network in the lab with CIDR 172.24.4.225/28 ( provision demo is "y" ) Then on Network Node :-

[root@ip-192-169-142-147 network-scripts]# cat ifcfg-br-ex
DEVICE="br-ex"
BOOTPROTO="static"
IPADDR="172.24.4.229"
NETMASK="255.255.255.240"
DNS1="83.221.202.254"
BROADCAST="172.24.4.239"
GATEWAY="172.24.4.225"  <== IP Physical Router in LAB
NM_CONTROLLED="no"
TYPE="OVSIntPort"
OVS_BRIDGE=br-ex
DEVICETYPE="ovs"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="yes"
IPV6INIT=no

[root@ip-192-169-142-147 network-scripts]# cat ifcfg-eth2
DEVICE="eth2"
ONBOOT="yes"
TYPE="OVSPort"
DEVICETYPE="ovs"
OVS_BRIDGE=br-ex
NM_CONTROLLED=no
IPV6INIT=no

Next step to performed on Network Node :-

# chkconfig network on
# systemctl stop NetworkManager
# systemctl disable NetworkManager
# service network restart

IF your real external network is for instance 192.168.0.0/24 && Router IP is 192.168.0.1 update ifcfg-br-ex and ifcfg-eth2 accordingly. OVS database without ifcfg-* files won't support persistent external OVS bridge and OVS port eth2

image description