# How to make ZCU104 use dynamic IP

**URL:** <https://discuss.pynq.io/t/how-to-make-zcu104-use-dynamic-ip/3425>\
**Category:** Support\
**Created:** [December 13, 2021, 1:44pm UTC](https://discuss.pynq.io/t/how-to-make-zcu104-use-dynamic-ip/3425 "2021-12-13T13:44:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anoir\_nechi](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@anoir\_nechi](https://discuss.pynq.io/u/anoir_nechi)\
**Post date:** [December 13, 2021, 1:44pm UTC](https://discuss.pynq.io/t/how-to-make-zcu104-use-dynamic-ip/3425/1 "2021-12-13T13:44:19Z")

</div>

I am trying to make my board reachable online. So my idea was to change the the content of ’

> /etc/network/interfaces

to the following:

```auto
auto lo
iface lo inet loopback
auto eth0
  iface eth0 inet dhcp

```

then restart the control service with `sudo systemctl restart networking`  
However when I run `hostname -I` I still get `192.168.2.99`  
How can I fix this issue?

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [December 13, 2021, 1:59pm UTC](https://discuss.pynq.io/t/how-to-make-zcu104-use-dynamic-ip/3425/2 "2021-12-13T13:59:49Z")

</div>

By default eth0 is setup for DHCP if the board is connected to a DHCP server. You should not need to do anything.

A static IP address is setup on eth0:0 which effectively an alias to eth0. You can ignore this if you want to use DHCP.

If your board does not get an IP from the DHCP server (using default image) you should check the DHCP server, and the connection your board has to the network.

Cathal

---

<div class="post-metadata">

**Author:** ![anoir\_nechi](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@anoir\_nechi](https://discuss.pynq.io/u/anoir_nechi)\
**Post date:** [December 13, 2021, 2:12pm UTC](https://discuss.pynq.io/t/how-to-make-zcu104-use-dynamic-ip/3425/3 "2021-12-13T14:12:07Z")

</div>

Yes it was a problem with the DHCP server thank you
