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]#


  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值