diff options
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 2 |
1 files changed, 2 insertions, 0 deletions
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 |