Netplan Basic Ubuntu 23.04 Static IP Setup
From WikiMLT
sudo nano /etc/netplan/00-installer-config.yaml
# This is the network config written by 'pa4080'
network:
ethernets:
eth0:
addresses:
- 172.16.1.110/24
match:
macaddress: ae:14:53:6b:48:a5
nameservers:
addresses:
- 172.16.1.10
- 172.16.1.1
search:
- ububtu-x.metalevel.cloud
routes:
- to: default
via: 172.16.1.1
set-name: eth0
version: 2
References:
- Ask Ubuntu: What is the difference between
00-installer-config.yaml
and50-cloud-init.yaml
- Linux Config: Netplan static IP on Ubuntu configuration