# Modify NetworkManager.conf

**URL:** <https://forums.balena.io/t/modify-networkmanager-conf/369511>\
**Category:** balenaOS\
**Created:** [December 13, 2023, 1:29pm UTC](https://forums.balena.io/t/modify-networkmanager-conf/369511 "2023-12-13T13:29:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simontaga](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@Simontaga](https://forums.balena.io/u/Simontaga)\
**Post date:** [December 13, 2023, 1:29pm UTC](https://forums.balena.io/t/modify-networkmanager-conf/369511/1 "2023-12-13T13:29:48Z")

</div>

Hi, I would like to modify `NetworkManager.conf ` before flashing a device.

Reason being that I would like to have my own default connections, i.e disable the `auto-default` property.

In other words I want to provision devices with connection profiles for eth0 and so on without network manager creating e.g ‘Wired Connection 1’ and so forth.

How could this be achieved using tools to configure the downloaded image? 🙂

---

<div class="post-metadata">

**Author:** ![alexgg](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@alexgg](https://forums.balena.io/u/alexgg)\
**Post date:** [January 2, 2024, 6:25pm UTC](https://forums.balena.io/t/modify-networkmanager-conf/369511/2 "2024-01-02T18:25:40Z")

</div>

Hi, and welcome to the community.

You can add network configuration to an image before programming by adding to the `/mnt/boot/system-connections` directory. You can use the [balenaCLI](https://github.com/balena-io/balena-cli) tool, for example with the `balena os configure /path/to/image --system-connection /path/to/local/system-connections`.

You can also use the dbus NetworkManager API from a running container to further configure NetworkManager.

The balenaOS network configuration documentation can be found [here](https://docs.balena.io/reference/OS/network).

Let us know if that helps.
