I am looking at the startup behavior of the network of our WEC7 platform. What I see is that a PC that is connected to my WEC7 box takes two minutes to reconnect after a reset of the target.
On my PC I am continuously pinging the target (ping -t), and I am getting replies before I reset.
What I see on the network is the following:
- On reset the network interface goes down, and comes back up.
- The PC is checking its IP address using ARP and also sending gratuitous ARP request after the check is finished.
- The PC tries to find the IP address of the WEC7 image using ARP requests, but does not succeed as WEC7 is not yet ready.
- When the WEC7 image is started it checks its IP address by sending out ARP requests.
- After a timeout of 1 to 2 minutes the PC sends an ARP request to WEC7 and now it gets the reply. The ping now starts to work again. (When I clear the ARP cache of the PC the timeout is shorter).
What I would expect is a gratuitous ARP message after step 4 (i.e. ARP message with both sender and target IP address filled with own IP address, which are used by other devices to update the ARP cache).
I did try to implement this using SendARP, but this returned directly with its own MAC address, without sending an ARP message.
Is there a way to have WEC7 send out a gratuitous ARP message after it got its MAC address?
Regards,
Johan Borkhuis