I am trying to use AddIPAddress to create a Virtual IP address between computers for failover redundancy.
It appears that after a computer takes over and assigns the IP address using AddIPaddress that a gratuitous ARP is not being sent.
I assumed that as part of the AddIPAddress function it would send out the ARP.
Should AddIPAddress send out the ARP? If it does not then how do I send out a "broadcast" gratuitous ARP so that all the other computers know the MAC address has changed.
Thanks for the help.
- Moved by Jesse JiangMicrosoft community contributor Friday, March 11, 2011 2:32 AM (From:Visual C++ General)
I think your issue should be raised in theWinsock Kernel (WSK). I believe they will know more information of this issue than us, and I will move this one to that forum.
Thanks for your understanding,
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Was there an answer to this?
I have the same problem with Windows 2008. Windows 2003 works fine automatically, and Linux works fine too because I have added in a manual step to send some Gratuitous ARPs from within my application, but I can't find a good way to do this in Windows 2008, and this issue will prevent our product from supporting 2008 if I can't get a suitable answer.
I have tried sendARP, but that does not actually send out the ARP packet if it already knows what the MAC Address is (which it does because the new alias IP address belongs to us already after AddIPAddress succeeds). Flushing the ARP cache before doing sendARP also does not help. Is there an undocumented FORCE flag???
What/where is sendARP and AddIP? I'm using C#/dot-net and am adding multiple IPs via System.Management. I'm seeing an ARP going out on Server 2008 R2 just fine; my problem is my target tcp server is apparently ignoring it.
See my post at...