# Setting Static IP Address in concole balena

**URL:** <https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721>\
**Category:** Product support\
**Created:** [September 10, 2020, 11:50am UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721 "2020-09-10T11:50:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 10, 2020, 11:50am UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/1 "2020-09-10T11:50:10Z")

</div>

hello  
how to change the ip address from the console?

thanks

---

<div class="post-metadata">

**Author:** ![jviotti](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jviotti/32/220_2.png) [@jviotti](https://forums.balena.io/u/jviotti)\
**Post date:** [September 10, 2020, 11:56am UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/4 "2020-09-10T11:56:29Z")

</div>

Hey there! You can’t set a different IP from the balenaCloud console, as its not balena the entity that gives an IP to the device. If your device is on a DHCP network, then the gateway will dynamically award the device an IP. You could also configure a static IP by tweaking the device’s NetworkManager configuration as explained here: [https://www.balena.io/docs/reference/OS/network/2.x/#setting-a-static-ip](https://www.balena.io/docs/reference/OS/network/2.x/#setting-a-static-ip)

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 10, 2020, 12:11pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/5 "2020-09-10T12:11:33Z")

</div>

this is what I understood but where add the file with ip informations ?  
it’s not very clear to me

---

<div class="post-metadata">

**Author:** ![zvin](https://avatars.discourse-cdn.com/v4/letter/z/a5b964/32.png) [@zvin](https://forums.balena.io/u/zvin)\
**Post date:** [September 10, 2020, 12:26pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/6 "2020-09-10T12:26:09Z")

</div>

> All of the network configuration for balenaOS can be done though files in the boot partition of your device. If you have a freshly downloaded balenaOS .img, you can mount it and inspect the `resin-boot` or `resin-flash` (for devices that boot from eMMC) partition. In the boot partition you will find a directory called `system-connections`

So if you put the sd card in your computer, you should see a partition containing a `system-connections` folder, put your NetworkManager config file in there.  
On a running balena device, the boot partition is mounted in the `/mnt/boot/` folder in the host OS.

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 10, 2020, 12:41pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/7 "2020-09-10T12:41:33Z")

</div>

it means that the ip address is fixed forever  
if you do not have access to the SD card, you can 't modify the ip adress

we can therefore reach by the DEVICE NAME ?

---

<div class="post-metadata">

**Author:** ![zvin](https://avatars.discourse-cdn.com/v4/letter/z/a5b964/32.png) [@zvin](https://forums.balena.io/u/zvin)\
**Post date:** [September 10, 2020, 1:19pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/8 "2020-09-10T13:19:11Z")

</div>

> On a running balena device, the boot partition is mounted in the `/mnt/boot/` folder in the host OS.

You can add a config file in the `/mnt/boot/system-connections/` folder on a running balena device.

You can not reach your device on your local network by device name.  
You have to use the ip address.  
On OSes with avahi / mDNS running (which is not the case for Windows) you can reach devices by `<short-uuid>.local`

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 11, 2020, 10:04am UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/11 "2020-09-11T10:04:11Z")

</div>

hi  
 .local  
do uuid shorts change dynamically

in the free version it is possible to have up to 10 devices  
what’s going on for the 11th?

it is not displayed?

---

<div class="post-metadata">

**Author:** ![sradevski](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sradevski/32/1609_2.png) [@sradevski](https://forums.balena.io/u/sradevski)\
**Post date:** [September 11, 2020, 10:13am UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/12 "2020-09-11T10:13:41Z")

</div>

Hey, the `uuid` is fixed per device, so it won’t change dynamically. If you add more than 10 devices on a free plan all devices that are over the limit will be limited in functionality in the dashboard, and they might stop working completely (eg. pulling updates) at any time, so I wouldn’t go over the limit if you care about reliability.

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 11, 2020, 10:50am UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/13 "2020-09-11T10:50:06Z")

</div>

the cloud balena is interesting for me to be able to adjust and set the raspberry  
but then in production, I no longer need balena cloud

if i remove a device from the cloud, is the uuid valid?

---

<div class="post-metadata">

**Author:** ![sradevski](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sradevski/32/1609_2.png) [@sradevski](https://forums.balena.io/u/sradevski)\
**Post date:** [September 11, 2020, 10:50am UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/14 "2020-09-11T10:50:54Z")

</div>

Yes it is, but you won’t be able to deploy new releases, update the hostOS, etc. to the device you have removed.

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 14, 2020, 11:41am UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/17 "2020-09-14T11:41:33Z")

</div>

hi,  
summary :  
it’s a bit of a shame that we can’t change the ip address without accessing the SD card

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [September 14, 2020, 12:15pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/18 "2020-09-14T12:15:13Z")

</div>

What other way do you have in mind that would allow you to change the IP address, without accessing the SD card?

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 14, 2020, 1:15pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/20 "2020-09-14T13:15:22Z")

</div>

with balena cloud  
how do you do it if the RPI is on the other side of the world?

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [September 14, 2020, 1:38pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/21 "2020-09-14T13:38:11Z")

</div>

Setting up networking configurations is done on `/mnt/boot/system-connections/ ` by adding the config file remotely and this operation accesses and changes the contents of the SD card. I don’t seem to understand how would you do this without accessing the SD card. The network config files are standard network manager’s config files, for more networking configuration information you can check our docs here [https://www.balena.io/docs/reference/OS/network/2.x](https://www.balena.io/docs/reference/OS/network/2.x)

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 14, 2020, 1:46pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/22 "2020-09-14T13:46:47Z")

</div>

so it’s simply the method to modify or add this file remotely that I don’t understand …

how do you do it ? step by step

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [September 14, 2020, 1:58pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/23 "2020-09-14T13:58:42Z")

</div>

Here are some steps on how to set up a static IP address on a device

1. Use the dashboard to connect to the HostOS of the device (or cli using `balena ssh <deviceUUID>`).
2. `cd /mnt/boot/system-connections/`
3. use `ls` to find the network config file
4. edit that file
5. Read [https://www.balena.io/docs/reference/OS/network/2.x/#setting-a-static-ip](https://www.balena.io/docs/reference/OS/network/2.x/#setting-a-static-ip) about Setting a static IP.
6. Make the necessary changes to the config file based on what you want the static ip to be
7. Save the file
8. reboot the device  
Your device should have a static IP address now.

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 14, 2020, 2:53pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/25 "2020-09-14T14:53:38Z")

</div>

ok !! sorry for not understanding everything

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [September 14, 2020, 3:22pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/26 "2020-09-14T15:22:39Z")

</div>

I hope the instructions helped.

---

<div class="post-metadata">

**Author:** ![werdna555](https://avatars.discourse-cdn.com/v4/letter/w/2acd7d/32.png) [@werdna555](https://forums.balena.io/u/werdna555)\
**Post date:** [September 23, 2020, 12:31pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/28 "2020-09-23T12:31:50Z")

</div>

how do you edit a file from the console? There is no nano command

---

<div class="post-metadata">

**Author:** ![JuanFRidano](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/juanfridano/32/3934_2.png) [@JuanFRidano](https://forums.balena.io/u/JuanFRidano)\
**Post date:** [September 23, 2020, 12:38pm UTC](https://forums.balena.io/t/setting-static-ip-address-in-concole-balena/186721/31 "2020-09-23T12:38:55Z")

</div>

Hello there, you can use the **vi** editor in the HostOS
