Errors when saving my network config yaml file

Hey everyone

Asking another noob question sorry.

What could be wrong with my network settings yaml file (not sure what you call it sorry, network config file maybe.

# This is the network config written by 'subiquity'
network:
  version: 2
  ethernets:
    enp2s0:
      dhcp4: false
      addresses: [10.0.0.206/24]
      gateway4: 10.0.0.1
      nameservers:
        addresses: [10.0.0.1,9.9.9.9]

This is the file but when change the seettings (changed the ip from .171 to .206

it comes with with loads of errors


** (generate:2969): WARNING **: 10:15:14.006: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

** (generate:2969): WARNING **: 10:15:14.007: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.

** (process:2967): WARNING **: 10:15:14.377: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:2967): WARNING **: 10:15:14.377: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:2967): WARNING **: 10:15:14.555: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:2967): WARNING **: 10:15:14.555: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:2967): WARNING **: 10:15:14.555: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:2967): WARNING **: 10:15:14.555: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

Thank You for reading

Are you familliar with file permissions on Linux? First error says that permissions are too open, run this command to check them for your file (please provide the output):

ls -l /etc/path/to/your/file

Second error says that using gateway4 is not supported anymore. Unfortunetelly I have never worked with yaml file for networks, so I won’t be able to help you. Unless somebody else will help you you will have to check the documentation for that.

By the way, what distro are you using? Is it a desktop or a server? Also how did you get these errors, with wich command?

Best,
Miro