sudo apt install netplan.io openvswitch-switch
nano /etc/netplan/network.yaml
network:
version: 2
renderer: networkd
ethernets:
ens32:
dhcp4: no
dhcp6: no
addresses:
- XXX.XXX.XXX.XXX/XX
routes:
- to: default
via: XXX.XXX.XXX.GW
nameservers:
addresses: [1.1.1.1, 8.8.8.8, '2606:4700:4700::1111']
search: []
sudo chmod 600 /etc/netplan/network.yaml
sudo netplan apply
sudo systemctl start systemd-networkd
sudo systemctl enable systemd-networkd
sudo systemctl status systemd-networkd
sudo systemctl start systemd-resolved
sudo systemctl enable systemd-resolved
sudo systemctl status systemd-resolved
sudo systemctl start ovsdb-server
sudo systemctl enable ovsdb-server
sudo systemctl status openvswitch-switch
sudo apt-get remove ifupdown
sudo mv /etc/network/interfaces /etc/network/interfaces.backup