ip gratuitous-arp-learning

Use this command to allow an interface to learn new ARP bindings using gratuitous ARP.

Syntax

ip gratuitous-arp-learning {both | reply | request}
no ip gratuitous-arp-learning

Parameters

both Allows learning from both the gratuitous ARP reply and request.
reply Allows learning from the gratuitous ARP reply.
request Allows learning from the gratuitous ARP request.

Defaults

None.

Mode

Configuration command, Interface configuration command mode.

Usage

This command will not be in effect if the ip gratuitous-arp ignore command (ip gratuitous-arp) is used. There will be no learning from gratuitous ARP frames, even with the ip gratuitous-arp-learning command enabled.

Gratuitious ARP learning is disabled by default.

The “no” form of this command disables gratuitous ARP learning.

Example

This example shows how to enable gratuitous ARP learning for both requests and replies on 
VLAN 1:

System(rw-config)->interface vlan 1
System(rw-config-intf-vlan.0.1)->ip gratuitous-arp-learning both