I create an OVS bridge with:
# ovs-vsctl add-br br-int
This create a netdevice that I can see in ifconfig. And then I create a NetworkManager connection and bring it up:
# nmcli connection add type generic con-name br-int autoconnect yes ifname br-int ip4 1.1.1.1/24
# nmcli con up br-int ifname br-int
However, each time after I reboot the host (Ubuntu 16.04) the connection has to be manually brought up again. Is there a way to tell NetworkManager to automatically bring up this interface once OVS has created it?
Set
connection.autoconnect
propertytrue
for the connectionbr-int
.To modify the connection settings like: nmcli connection modify br-int connection.autoconnect true
You can also use
nmtui
command instead fight withnmcli
command.I've faced with the same issue when I need to create an Open vSwitch bridge which doesn't required IP addresses like br-int, br-tun etc and after the server reboot NetworkManager doesn't brought them up.
The root cause of the issue is "ovs-interface" connection got "ipv4.method" and "ipv6.method" are set to "auto".
The solution is to set "ipv4.method" and "ipv6.method" to "disabled" for "ovs-interface" connection only like