I am doing some SDN research. In order to avoid having to route ARP packets, I manually set arp IP to MAC mappings on the hosts using the arp -s <ip> <mac>
command.
Link failures are simulated by turning on/off the interface using ifconfig <interface> up|down
, and traffic is simple UDP packets sent from source to destination.
If a interfaced is turned down, all the arp entries for that interface are deleted. Is there a way to ensure that the arp entries stay?
Edit: It appears from Linux: What causes static ARP entries to flush on link down that this is controlled by the arp_evict_nocarrier sysctl parameter. Is there a way to set this parameter on current linux distros?