#Creating a bridge nmcli con add type bridge ifname br0 nmcli con modify bridge-br0 bridge.stp no nmcli con add type bridge-slave ifname enp3s0 master bridge-br0 nmcli con delete enp3s0 #Configure dhcp on eth1 nmcli c add type ethernet autoconnect no ifname eth1 nmcli device connect eth1 #Configurate static ip nmcli con add type ethernet con-name testlab-connection ifname enp0s20u2u1 ip4 192.168.12.1/24 gw4 192.168.12.1 nmcli con mod testlab-connection ipv4.dns "8.8.8.8 8.8.4.4" nmcli con up testlab-connection ifname enp0s20u2u1 #bond nmcli con add type bond ifname bond0 con-name bond0 mode active-backup miimon 100 nmcli con add type bond-slave ifname eth0 con-name eth0 master bond0 nmcli con add type bond-slave ifname eth1 con-name eth1 master bond0 #Override DNS from DHCP nmcli con mod "System eth0" ipv4.dns 192.168.190.150 ipv4.ignore-auto-dns yes #vlan 10 nmcli con add type vlan con-name vlan10 dev virbr3 id 10 ip4 10.0.0.254/24 #static route nmcli connection modify eth0 +ipv4.routes "172.16.99.0/24 10.0.0.254" #OVS nmcli conn add type ovs-bridge conn.interface br-int nmcli conn add type ovs-port conn.interface port0 conn.master br-int nmcli conn add type ovs-interface conn.interface br-int conn.master port0 ipv4.method manual ipv4.address 172.16.9.1/24 #wifi nmcli dev wifi list nmcli dev wifi connect ssid password 'pwd' hidden yes nmcli dev wifi connect ssid password 'pwd' name foo