08-04-2015 02:09 AM - edited 03-05-2019 02:00 AM
Hello,
I just found this command
ip arp gratuitous none
I understand the ip arp gratuitous make update to the ARP table immediately when connect on port in the Router or switch. Is this right ?
So if we used none here what this will mean ? and this command what different from the normal ARP table ?
Kind Regards
08-04-2015 09:53 AM
Tariq,
To be totally honest, it appears that this command does nothing. Either a bug - or I did not get the point.
I have originally thought that this command activates a certain form of sanity check on arriving gratuitous ARP messages. As you know, ARP messages carry IP addresses in their bodies - the IP address of the station that sends the ARP message, and the IP address of the "target", which is either the IP address that is being looked for (in ARP Requests), or the IP address of the station that needs the response (in ARP Replies). In the case of gratuitous ARP messages, the source and target IP address are the same. It would make sense to verify whether this IP address in the received gratuitous ARP message is from the same IP network as the interface through which the gratuitous ARP message arrived, or at least, whether it arrived through an interface that would be used as an outgoing interface to reach that IP address according to the routing table.
Assume the following setup:
Further assume that the router receives two gratuitous ARP messages over Fa0/0, one saying about 10.0.0.10, the other about 172.16.1.10.
Now, I have assumed the following:
What a nice theory... but when I did debugs, I was disappointed to see that no matter what I configure, the gratuitous ARPs continue to be accepted. While the debug claims that some of ARPs have been ignored, the ARP table was nonetheless updated for both addresses above, no matter how I used the ip arp gratuitous command.
The fact that the debug output changes based on different setting of this command suggests that my original idea about this command is not entirely wrong, but to be honest, as I said in the beginning, I failed to actually show what the command does.
I've tested 12.4T and 15.3XB IOSes, the same behavior. I'd like you to test it if you can and come back with any results you might have. One thing: You first need to have the ARP entries for the IP addresses in the ARP table before the gratuitous ARPs start being processed at all. This is logical: If your router has not communicated with those IP addresses before, it will not create an ARP entry for them just because it has received a gratuitous ARP message. It will only use a received gratuitous ARP message to update already existing entries in its ARP table - therefore if you want to experiment with this feature, you must first ping the IP addresses for which you are going to generate gratuitous ARP messages.
Sorry to post this long article just to say "I do not know what this command does" but perhaps someone will be able to uncover what's going on based on the info gathered so far.
Best regards,
Peter
10-29-2020 08:38 AM
Hi Tariq,
What I found was that the ip arp gratuitous none command will tell the device to check against the DHCP snooping binding table to see if it is ok to record arp cache from this device. Therefore, if the newly connected device is a DHCP client receiving an address from a DHCP server on a trusted path, the new device will make the DHCP snooping binding table and its arp cache will be recorded.
If it is a statically addressed device, no DHCP binding table to check against. You would need an ARP ACL. No permit for that DMAC in ARP ACL, no arp cache allowed.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide