# Dynamic ip on eth0:0?

**URL:** <https://discourse.nodered.org/t/dynamic-ip-on-eth0-0/13894>\
**Category:** General\
**Created:** [1 August 2019 09:09 UTC](https://discourse.nodered.org/t/dynamic-ip-on-eth0-0/13894 "2019-08-01T09:09:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertocanton](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@robertocanton](https://discourse.nodered.org/u/robertocanton)\
**Post date:** [1 August 2019 09:09 UTC](https://discourse.nodered.org/t/dynamic-ip-on-eth0-0/13894/1 "2019-08-01T09:09:41Z")

</div>

Hi, i need to switch from dashboard my eth connection from static ip to dynamic ip.  
I guess i've to setting up my dhcpcd.conf and then using ifup ifdown to switch the mode.

ok. for static ip i wrote the following lines:  
**interface eth0**  
**static ip\_address=192.168.178.202/24**

but what i have to write for dynamic mode??

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [1 August 2019 09:15 UTC](https://discourse.nodered.org/t/dynamic-ip-on-eth0-0/13894/2 "2019-08-01T09:15:21Z")

</div>

What have you searched for so far? Keeping in mind this isn't a Node-RED question at all - there are lots of guides for configuring dhcpd online.

---

<div class="post-metadata">

**Author:** ![robertocanton](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@robertocanton](https://discourse.nodered.org/u/robertocanton)\
**Post date:** [1 August 2019 09:17 UTC](https://discourse.nodered.org/t/dynamic-ip-on-eth0-0/13894/3 "2019-08-01T09:17:09Z")

</div>

I'm so sorry i did not found nothing useful on the net, may u show me the right link?  
Thanks for the reply.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [1 August 2019 09:20 UTC](https://discourse.nodered.org/t/dynamic-ip-on-eth0-0/13894/4 "2019-08-01T09:20:30Z")

</div>

As far as I know, just remove the `static...` line so it will then use dhcp for that interface.

---

<div class="post-metadata">

**Author:** ![robertocanton](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@robertocanton](https://discourse.nodered.org/u/robertocanton)\
**Post date:** [1 August 2019 09:25 UTC](https://discourse.nodered.org/t/dynamic-ip-on-eth0-0/13894/5 "2019-08-01T09:25:15Z")

</div>

Wow really??  
I assumed that were the way, but it were looks too simple.Good to know i'll try  
Many thanks.
