1. intro
Since Ubuntu 18 LTS, ip configuration has changed to netplan.
2. How to set up?
a. check interface
ls /sys/class/net
b. set ip
sudo vi /etc/netplan/50-cloud-init.yaml
network: ethernets: eth0: addresses: [IP/Subnet] gateway4: Gateway nameservers: addresses: [DNS IP1, DNS IP2] dhcp4: no version: 2
c. apply
sudo netplan apply
d. show ip
ip addr ip route