I’m trying to change the static IP. I’ve gone to /etc/netplan/ directory and there is no ‘.yaml’ file. is there supposed to be one here?
It looks like the networkd service is running so I create a yaml file in /etc/netplan called 01-netcfg.yaml with the following contents:
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# 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}
network:
version: 2
renderer: networkd
ethernets:
eth0:
address:
- 192,168.1.31/24
#gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
This approach is taken from
When I run sudo netplan apply I get the following error
Error in network definition //etc/netplan/01-netcfg.yaml line 12 column 24: unknown key address
What am I missing here?
I did find this
https://pynq.readthedocs.io/en/v2.0/faqs.html#how-do-i-set-change-the-static-ip-address-on-the-board
Why do we edit this instead of using the regular netplan yaml config?