mac

Commands for Gratuitous ARP Configuration
297
Chapter 25 Commands for Gratuitous
ARP Configuration
25.1 ip gratuitous-arp
Command: ip gratuitous-arp [<interval-time>]
no ip gratuitous-arp
Function: To enabled gratuitous ARP, and specify update interval for gratuitous ARP.
The no form of this command will disable the gratuitous ARP configuration.
Parameters: <interval-time> is the update interval for gratuitous ARP with its value
limited between 5 and 1200 seconds and with default value as 300 seconds.
Command Mode: Global Configuration Mode and Interface Configuration Mode.
Default: Gratuitous ARP is disabled by default.
Usage Guide: When configuring gratuitous ARP in global configuration mode, all the
Layer 3 interfaces in the switch will be enabled to send gratuitous ARP request. If
gratuitous ARP is configured in interface configuration mode, then only the specified
interface is able to send gratuitous ARP requests. When configuring the gratuitous ARP,
the update interval configuration from interface configuration mode has higher
preference than that from the global configuration mode.
Example:
1) To enable gratuitous ARP in global configuration mode, and set the update interval
to be 400 seconds.
Switch>enable
Switch#config
Switch(config)#ip gratuitous-arp 400
2) To enable gratuitous ARP for interface VLAN 10 and set the update interval to be
350 seconds.
Switch(config)#interface vlan 10
Switch(Config-if-Vlan10)#ip gratuitous-arp 350
25.2 show ip gratuitous-arp
Command: show ip gratuitous-arp [interface vlan <vlan-id>]
Function: To display configuration information about gratuitous ARP.
Parameters: <vlan-id> is the VLAN ID. The valid range for <vlan-id> is between 1 and