# Set static IP in running config

**URL:** <https://hub.mender.io/t/set-static-ip-in-running-config/1282>\
**Category:** General Discussions\
**Created:** [November 25, 2019, 9:55am UTC](https://hub.mender.io/t/set-static-ip-in-running-config/1282 "2019-11-25T09:55:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://hub.mender.io/u/Alex)\
**Post date:** [November 25, 2019, 9:55am UTC](https://hub.mender.io/t/set-static-ip-in-running-config/1282/1 "2019-11-25T09:55:09Z")

</div>

Hi Guys!

I am trying to set a static IPv4 address in a running mender-yocto. To set it up isn’t the problem but how can I make it persitent so it is used by the second rootfs after a mender update? The problem is that it has to be edited while the System is running and not before baking the yocto Image.

Thank you in advance!

Alex

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [November 25, 2019, 2:08pm UTC](https://hub.mender.io/t/set-static-ip-in-running-config/1282/2 "2019-11-25T14:08:34Z")

</div>

The simple way of solving this, is to make sure that any configuration file that you want to persist across updates, is linked to the `/data` partition and what is in your rootfs is only symlinks.

There are other ways of doing this with union filesystems but that is a bit more complicated.

---

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://hub.mender.io/u/Alex)\
**Post date:** [November 26, 2019, 2:55pm UTC](https://hub.mender.io/t/set-static-ip-in-running-config/1282/3 "2019-11-26T14:55:42Z")

</div>

I managed to solve it that way. Thanks!
