# Errors when saving my network config yaml file

**URL:** <https://community.learnlinux.tv/t/errors-when-saving-my-network-config-yaml-file/4342>\
**Category:** Networking\
**Created:** [December 14, 2024, 10:15am UTC](https://community.learnlinux.tv/t/errors-when-saving-my-network-config-yaml-file/4342 "2024-12-14T10:15:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mason64](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/m/3d9bf3/32.png) [@mason64](https://community.learnlinux.tv/u/mason64)\
**Post date:** [December 14, 2024, 10:15am UTC](https://community.learnlinux.tv/t/errors-when-saving-my-network-config-yaml-file/4342/1 "2024-12-14T10:15:48Z")

</div>

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.

```auto
# 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

```auto

**(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

---

<div class="post-metadata">

**Author:** ![kazimierzkrauze](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/k/898d66/32.png) [@kazimierzkrauze](https://community.learnlinux.tv/u/kazimierzkrauze)\
**Post date:** [December 19, 2024, 5:54am UTC](https://community.learnlinux.tv/t/errors-when-saving-my-network-config-yaml-file/4342/2 "2024-12-19T05:54:41Z")

</div>

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
