
Gratuitous ARP Configuration
256
2. Display configurations about gratuitous ARP
Command
Explanation
Admin Mode and Configuration Mode
show ip gratuitous-arp [interface vlan
<1-4094>
]
To display configurations about gratuitous
ARP.
29.3
Gratuitous ARP Configuration Example
Fig 29-1 Gratuitous ARP Configuration Example
For the network topology shown in the figure above, interface VLAN10 whose IP
address is 192.168.15.254 and network address mask is 255.255.255.0 in the switch
system. Three PCs
– PC3, PC4, PC5 are connected to the interface. The IP address of
interface VLAN 1 is 192.168.14.254, its network address mask is 255.255.255.0. Two PCs
– PC1 and PC2 are connected to this interface. Gratuitous ARP can be enabled through
the following configuration:
1. Configure two interfaces to use gratuitous ARP at one time.
Switch(config)#ip gratuitous-arp 300
Switch(config)#exit
2. Configure gratuitous ARP specifically for only one interface at one time.
Switch(config)#interface vlan 10
Switch(Config-if-Vlan10)#ip gratuitous-arp 300
Switch(Config-if-Vlan10)#exit
Switch(config) #exit
PC1
PC2
PC3
PC4
PC5
Switch
Interface vlan1
192.168.14.254
255.255.255.0
Interface vlan10
192.168.15.254
255.255.255.0