I have an Ubuntu VM in which I deployed images and the rootfs for my U-Boot. In the VirtualBox (Version 5.0.2) Settings I have adjusted a Bridged Adapter. In this image you can see my set-up:
When I give the VM an IP with
sudo ifconfig eth1 192.168.99.1
I can ping the VM with U-Boot. However eth1
interface loses the IP very quickly again and I found no solutions how to prevent this.
I read that this has to do with the ARP-protocol and can't be disabled. Can you help me with possible configurations for how I can access a VM on a host from an board with U-Boot?
PS: The board and the host is only connected through a LAN cable. I read somewhere that a switch between would resolve the losing of the IP. I tried this but nothing seemed to happen.