вторник, 16 августа 2011 г.

Test duplicate gate interface address in local networks

ip -o addr|egrep "L.* inet"|
while read t eth t ip t
do
echo -n "Test duplicate address "${ip%%/*}" via "$eth": "
  RES=$(arping -D ${ip%%/*} -I $eth -c 1 2>&1)
[ $? = 0 ] && echo OK || echo FAIL
done

Комментариев нет:

Отправить комментарий