How to make ZCU104 use dynamic IP

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 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?

1 Like

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

2 Likes

Yes it was a problem with the DHCP server thank you