- 查看局域网内的空闲IP
for (( ip=1 ; ip<=254 ; ip++ )); do arping -c 1 192.168.133.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.133.$ip UP" || : ; done
for (( ip=1 ; ip<=254 ; ip++ )); do arping -c 1 192.168.133.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.133.$ip UP" || : ; done