Ubuntu 18.04 Static Configuration Network with Netplan

Fiko Aditama
Oct 11, 2021

--

nano /etc/netplan/01-network-manager-all.yaml

sudo netplan try

sudo netplan apply

# This is the network config written by 'subiquity'network:
ethernets:
enp0s3:
renderer: networkd
dhcp4: true
enp0s8:
dhcp4: no
addresses: [ 10.10.10.249/29 ]
# gateway4: 10.10.10.249
nameservers:
addresses: [ 8.8.8.8, 1.1.1.1 ]

ref:

https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-18-04-bionic-beaver-linux

--

--