aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 15673e47..91071d8b 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -257,6 +257,12 @@ function new_interface ()
fi
if [ "$setup_this" = "yes" ] ; then
+ [ "${REALDEVICE}" != "lo" ] && \
+ if ! /sbin/arping -q -c 2 -w 3 -D -I ${parent_device} ${$IPADDR} ; then
+ net_log $"Error, some other host already uses address ${IPADDR}."
+ return 1
+ fi
+
/sbin/ip addr add ${IPADDR}/${PREFIX} brd ${BROADCAST} dev ${parent_device} label ${DEVICE}
if [ "$NO_ALIASROUTING" != yes ]; then