I have just installed Ubuntu 20.04 64-bit server on raspberry pi. I want to provide a static ip to it.
I'm thinking of adding a configuration file under /etc/netplan/ (following these examples), but inside /etc/netplan/ I see a file: 50-cloud-init.yaml with the following comment
This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
I have two questions:
- Am I supposed to create this:
/etc/cloud/cloud.cfg.d/99-disable-network-config.cfgbefore creating the static address yaml file under/etc/netplan/? - Should I prefer the
/run/netplan/directory for adding my static address configration?