How to check duplicate IP adderss in your subnet
Create and execute a script as shown below to check for duplicate IP in example: 192.168.1.0/24 subnet.
###############################################################
# /bin/bash #######################################################
# duplicate.sh #####################################################
##############################################################
for i in $(seq 1 254);
do
echo “arping -q -D -I eth0 -c 2 172.16.1.${i}”; [ $? -ne 0 ] && echo “172.16.1.${i} duplicate”;
done
##############################################################