How to configure static IP address in ubuntu server 20.0.4?
1st cmd --
sudo vi /etc/netplan/00-installer-config.yaml
network:
ethernets:
enp0s3:
addresses:
- 192.168.0.210/24
gateway4: 192.168.0.1
nameservers:
addresses:
- 8.8.8.8
- 8.8.8.8
search: []
version: 2
After configuring an IP address
2nd cmd--
sudo netplan apply