sudo vim /etc/netplan/01-netcfg.yaml
network: ethernets: eno1: addresses: - 172.20.63.234/24 - 192.168.10.20/24 - 192.168.1.240/24 dhcp4: false gateway4: 172.20.63.254 nameservers: addresses: - 8.8.8.8 - 8.8.4.4 search: [] enp3s0: addresses: [] dhcp4: true optional: true version: 2
Testing the Configuration
sudo netplan try
Applying the New Configuration
sudo netplan apply
References
https://blog.programster.org/set-static-ip-with-netplan
https://www.linux.com/learn/intro-to-linux/2018/9/how-use-netplan-network-configuration-tool-linux