]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Update ARP cache of neighbours (from fedora).
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 11 Sep 2007 18:33:38 +0000 (18:33 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 11 Sep 2007 18:33:38 +0000 (18:33 +0000)
svn-id: @8719

sysconfig/network-scripts/ifup

index 159313b4687653dddf83ba541a7c2be5680c0a6b..9928965ee7a0f352dd1b5373db43f013935cbcbd 100755 (executable)
@@ -184,6 +184,12 @@ else
                ip addr add ${IP6ADDR} dev ${DEVICE} ${IP6ADDROPT}
        fi
 
+       if [ -x /sbin/arping ]; then
+               # update ARP cache of neighboring computers
+               /sbin/arping -q -A -c 1 -I ${REALDEVICE} ${IPADDR}
+               ( sleep 2; /sbin/arping -q -U -c 1 -I ${REALDEVICE} ${IPADDR} ) > /dev/null 2>&1 < /dev/null &
+       fi
+
        # IPv4/6 gateways and default routes
        setup_ip_gw_ro
 fi
This page took 0.032581 seconds and 4 git commands to generate.