自己做的网站别人,中国临沂网站优化,手机商城和实体的价格一样吗,响应式科技公司网站模板下载前言#xff1a;
之前用arp统计过某网段下的ip#xff0c;但是有可能统计不全。网络管理平台又不允许登录。想要知道当前的ip占用情况#xff0c;可以使用fping
fping命令类似于ping#xff0c;但比ping更强大。与ping需要等待某一主机连接超时或发回反馈信息不同#x…前言
之前用arp统计过某网段下的ip但是有可能统计不全。网络管理平台又不允许登录。想要知道当前的ip占用情况可以使用fping
fping命令类似于ping但比ping更强大。与ping需要等待某一主机连接超时或发回反馈信息不同fping在给一个主机发送完数据包后马上给下一个主机发送数据包实现多主机同时ping。同时fping还可以在命令行中指定要ping的主机数量范围。
但是当某台主机或者交换机的网络策略禁用ICMP或者禁止ping包的时候那就无法通过此方法来获取局域网中被占用的具体ip
使用方式
ping指定的多个IP
fping 192.168.3.1 192.168.3.12 192.168.3.16 2/dev/nullping整个网段
fping -g 192.168.3.0/24 2/dev/nullping整个网段只显示存活的主机
fping -ag 192.168.3.0/24 2/dev/nullping某一段IP
fping -ag 192.168.0.5 192.168.0.130 2/dev/nullping的具体选项目
Usage: fping [options] [targets...]Probing options:-4, --ipv4 only ping IPv4 addresses-6, --ipv6 only ping IPv6 addresses-b, --sizeBYTES amount of ping data to send, in bytes (default: 56)-B, --backoffN set exponential backoff factor to N (default: 1.5)-c, --countN count mode: send N pings to each target-f, --fileFILE read list of targets from a file ( - means stdin)-g, --generate generate target list (only if no -f specified)(give start and end IP in the target list, or a CIDR address)(ex. fping -g 192.168.1.0 192.168.1.255 or fping -g 192.168.1.0/24)-H, --ttlN set the IP TTL value (Time To Live hops)-I, --ifaceIFACE bind to a particular interface-l, --loop loop mode: send pings forever-m, --all use all IPs of provided hostnames (e.g. IPv4 and IPv6), use with -A-M, --dontfrag set the Dont Fragment flag-O, --tosN set the type of service (tos) flag on the ICMP packets-p, --periodMSEC interval between ping packets to one target (in ms)(in loop and count modes, default: 1000 ms)-r, --retryN number of retries (default: 3)-R, --random random packet data (to foil link data compression)-S, --srcIP set source address-t, --timeoutMSEC individual target initial timeout (default: 500 ms,except with -l/-c/-C, where its the -p period up to 2000 ms)Output options:-a, --alive show targets that are alive-A, --addr show targets by address-C, --vcountN same as -c, report results in verbose format-D, --timestamp print timestamp before each output line-e, --elapsed show elapsed time on return packets-i, --intervalMSEC interval between sending ping packets (default: 10 ms)-n, --name show targets by name (-d is equivalent)-N, --netdata output compatible for netdata (-l -Q are required)-o, --outage show the accumulated outage time (lost packets * packet interval)-q, --quiet quiet (dont show per-target/per-ping results)-Q, --squietSECS same as -q, but show summary every n seconds-s, --stats print final stats-u, --unreach show targets that are unreachable-v, --version show version-x, --reachableN shows if N hosts are reachable or not