Author: arekm
Date: Tue Sep 11 20:33:38 2007
New Revision: 8719

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/ifup
Log:
Update ARP cache of neighbours (from fedora).

Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifup     (original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup     Tue Sep 11 20:33:38 2007
@@ -184,6 +184,12 @@
                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
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to