fping用法

下载地址:

http://fping.org/dist/

我下的是http://fping.org/dist/fping-3.5.tar.gz


在linux上安装后,用法如下:

[root@localhost fping-3.5]# fping -h

Usage: fping [options] [targets...]
   -a         show targets that are alive
   -A         show targets by address
   -b n       amount of ping data to send, in bytes (default 56)
   -B f       set exponential backoff factor to f
   -c n       count of pings to send to each target (default 1)
   -C n       same as -c, report results in verbose format
   -D         print timestamp before each output line
   -e         show elapsed time on return packets
   -f file    read list of targets from a file ( - means stdin) (only if no -g specified)
   -g         generate target list (only if no -f specified)
                (specify the start and end IP in the target list, or supply a IP netmask)
                (ex. fping -g 192.168.1.0 192.168.1.255 or fping -g 192.168.1.0/24)
   -H n       Set the IP TTL value (Time To Live hops)
   -i n       interval between sending ping packets (in millisec) (default 25)
   -l         loop sending pings forever
   -m         ping multiple interfaces on target host
   -n         show targets by name (-d is equivalent)
   -p n       interval between ping packets to one target (in millisec)
                (in looping and counting modes, default 1000)
   -q         quiet (don't show per-target/per-ping results)
   -Q n       same as -q, but show summary every n seconds
   -r n       number of retries (default 3)
   -s         print final stats
   -I if      bind to a particular interface
   -S addr    set source address
   -t n       individual target initial timeout (in millisec) (default 500)
   -T n       ignored (for compatibility with fping 2.4)
   -u         show targets that are unreachable
   -O n       set the type of service (tos) flag on the ICMP packets
   -v         show version
   targets    list of targets to check (if no -f specified)

扫描我所在的网段:

[root@localhost fping-3.5]# fping -g 10.225.113.70/27
10.225.113.67 is alive
10.225.113.68 is alive
10.225.113.69 is alive
10.225.113.70 is alive
10.225.113.71 is alive
10.225.113.72 is alive
10.225.113.73 is alive
10.225.113.77 is alive
10.225.113.79 is alive
10.225.113.80 is alive
10.225.113.81 is alive
10.225.113.83 is alive
10.225.113.84 is alive
10.225.113.85 is alive
10.225.113.87 is alive
10.225.113.88 is alive
10.225.113.65 is unreachable
10.225.113.66 is unreachable
10.225.113.74 is unreachable
10.225.113.75 is unreachable
10.225.113.76 is unreachable
10.225.113.78 is unreachable
10.225.113.82 is unreachable
10.225.113.86 is unreachable
10.225.113.89 is unreachable
10.225.113.90 is unreachable
10.225.113.91 is unreachable
10.225.113.92 is unreachable
10.225.113.93 is unreachable
10.225.113.94 is unreachable

显示alive的IP:

[root@localhost fping-3.5]# fping -ag 10.225.113.70/27
10.225.113.67
10.225.113.68
10.225.113.69
10.225.113.70
10.225.113.71
10.225.113.72
10.225.113.73
10.225.113.77
10.225.113.79
10.225.113.80
10.225.113.81
10.225.113.83
10.225.113.84
10.225.113.85
10.225.113.87
10.225.113.88

显示unreachable的IP:

[root@localhost fping-3.5]# fping -ug 10.225.113.70/27
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.66
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.66
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.66
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.74
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.74
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.74
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.75
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.75
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.75
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.78
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.78
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.78
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.82
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.82
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.82
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.86
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.86
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.86
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.89
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.89
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.89
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.90
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.90
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.90
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.91
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.91
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.91
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.92
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.92
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.92
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.93
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.93
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.93
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.94
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.94
ICMP Host Unreachable from 10.225.113.79 for ICMP Echo sent to 10.225.113.94
10.225.113.65
10.225.113.66
10.225.113.74
10.225.113.75
10.225.113.78
10.225.113.82
10.225.113.86
10.225.113.89
10.225.113.90
10.225.113.91
10.225.113.92
10.225.113.93
10.225.113.94
[root@localhost fping-3.5]#


你可能感兴趣的:(工具,网络)