From 0c0f23f6dcd45effade15a7b534ebfb70cf30833 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 10 Jul 2008 11:54:44 -0400 Subject: Don't do the arping check for loopback. As it's rather pointless. --- sysconfig/network-scripts/ifup-eth | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 5c0a46c3..43e88fae 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -255,6 +255,7 @@ else SRC= fi + if [ "${REALDEVICE}" != "lo" ]; then if ! LC_ALL=C ip addr ls ${REALDEVICE} | LC_ALL=C grep -q "${IPADDR}/${PREFIX}" ; then if ! arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then echo $"Error, some other host already uses address ${IPADDR}." @@ -265,6 +266,7 @@ else echo $"Error adding address ${IPADDR} for ${DEVICE}." fi fi + fi if [ -n "$SRCADDR" ]; then sysctl -w "net.ipv4.conf.${REALDEVICE}.arp_filter=1" >/dev/null 2>&1 -- cgit v1.2.1