- 查看局域網(wǎng)內(nèi)的空閑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