Below are the configs for the yaml: file /etc/netplan/{filename}.yaml
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: false
dhcp6: false
addresses:
[10.0.0.102/24]
routes:
- to: default
via: 10.0.0.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
The error I get is "Error in network definition: expected mapping (check indentation)" -10.0.0.102/24
Is there a problem with my syntax? Am I missing something? Its pointing to that line but I have tried moving it all over with no avail.