The kernel should send out a gratuitous ARP on the interface when the following commands are executed:
$ sudo sysctl -w net.ipv4.conf.eth0.arp_notify=1
net.ipv4.conf.eth0.arp_notify = 1
$ sudo ip link set dev eth0 down
$ sudo ip link set dev eth0 up
Result:
The gratuitous ARP packet is generated inside the kernel (inetdev_send_gratuitous_arp() is called) but the packet is never sent out on the interface. Generating gratuitous ARP packets with "arping" works however.
Expected behaviour:
The kernel should send out a gratuitous ARP on the interface when the following commands are executed:
$ sudo sysctl -w net.ipv4. conf.eth0. arp_notify= 1 conf.eth0. arp_notify = 1
net.ipv4.
$ sudo ip link set dev eth0 down
$ sudo ip link set dev eth0 up
Result:
The gratuitous ARP packet is generated inside the kernel (inetdev_ send_gratuitous _arp() is called) but the packet is never sent out on the interface. Generating gratuitous ARP packets with "arping" works however.