Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Ethernet Switching User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring Gratuitous ARP

date_range 20-Dec-24

Gratuitous Address Resolution Protocol (ARP) requests help detect duplicate IP addresses. A gratuitous ARP is a broadcast request for a router’s own IP address. If a router or switch sends an ARP request for its own IP address and no ARP replies are received, the router- or switch-assigned IP address is not being used by other nodes. However, if a router or switch sends an ARP request for its own IP address and an ARP reply is received, the router- or switch-assigned IP address is already being used by another node.

Gratuitous ARP replies are reply packets sent to the broadcast MAC address with the target IP address set to be the same as the sender’s IP address. When the router or switch receives a gratuitous ARP reply, the router or switch can insert an entry for that reply in the ARP cache. By default, updating the ARP cache on gratuitous ARP replies is disabled on the router or switch.

To enable updating of the ARP cache for gratuitous ARPs:

  1. In configuration mode, go to the [edit interfaces interface-name] hierarchy level.
    content_copy zoom_out_map
    [edit]
    user@host# edit interfaces interface-name
    
  2. Include the gratuitous-arp-reply statement.
    content_copy zoom_out_map
    [edit interfaces interface-name] 
    user@host# set gratuitous-arp-reply
    

To restore the default behavior, that is, to disable updating of the ARP cache for gratuitous ARP, delete the gratuitous-arp-reply statement from the configuration:

content_copy zoom_out_map
[edit interfaces interface-name]
user@host# delete gratuitous-arp-reply;

By default, the router or switch responds to gratuitous ARP requests. However, on Ethernet interfaces, you can disable responses to gratuitous ARP requests.

To disable responses to gratuitous ARP requests:

  1. In configuration mode, go to the [edit interfaces interface-name] hierarchy level.

    content_copy zoom_out_map
    [edit]
    user@host# edit interfaces interface-name
    
  2. Include the no-gratuitous-arp-request statement.

    content_copy zoom_out_map
    [edit interfaces interface-name]
    user@host# set no-gratuitous-arp-request
    

To return to the default—that is, to respond to gratuitous ARP requests—delete the no-gratuitous-arp-request statement from the configuration:

content_copy zoom_out_map
[edit interfaces interface-name] 
user@host# delete no-gratuitous-arp-request
footer-navigation