Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
列表格式如下所示:
1.127.16.0 1.127.16.8 1.127.16.22 1.127.16.0
1.127.16.0
1.127.16.8
1.127.16.22
它持续了约 20,000 个 IP。我想我需要做一些类似大规模 ping 的事情。我能得到任何提示吗?如果需要脚本,我想使用 Lua/C++/Python。
$ip = "192.168.0.1"; if(!filter_var($ip, FILTER_VALIDATE_IP)){ echo "IP is not valid"; }else{ echo "IP is valid"; }
http://www.w3schools.com/php/filter_validate_ip.asp