您当前的位置:首页 > 电脑百科 > 网络技术 > 网络软件

Fping - 高性能Ping工具

时间:2022-04-14 16:40:42  来源:  作者:IT智能化专栏

Fping是一个命令行工具,类似于ping,用于发送ICMP ( Inte.NET控制消息协议 ),Fping与ping不同之处在于可以指定要ping的主机数量范围或主机列表文件,而且性能要高很多。

Fping主要应用与linux系统,同时也有编译的windows版本。

Fping官网地址:http://fping.org/

一、示例:

1. Fping多个IP地址

# fping 172.168.1.23 172.168.1.25 172.168.1.27

2. Fping IP地址范围

# fping -s -g 172.168.1.1 172.168.1.10

3.使用不同选项填充完整网络

# fping -g -r 1 192.168.1.0/24

4.从文件中读取目标列表

# fping < fping.txt

二、命令参数:

−4, −−ipv4

Restrict name resolution and IPs to IPv4 addresses.

−6, −−ipv6

Restrict name resolution and IPs to IPv6 addresses.

−a, −−alive

Show systems that are alive.

−A, −−addr

Display targets by address rather than DNS name. Combined with −d, the output will be both the ip and (if avAIlable) the hostname.

−b, −−size= BYTES

Number of bytes of ping data to send. The minimum size (normally 12) allows room for the data that fping needs to do its work (sequence number, timestamp). The reported received data size includes the IP header (normally 20 bytes) and ICMP header (8 bytes), so the minimum total size is 40 bytes. Default is 56, as in ping. Maximum is the theoretical maximum IP datagram size (64K), though most systems limit this to a smaller, system-dependent number.

−B, −−backoff=N

Backoff factor. In the default mode, fping sends several requests to a target before giving up, waiting longer for a reply on each successive request. This parameter is the value by which the wait time (−t) is multiplied on each successive request; it must be entered as a floating-point number (x.y). The default is 1.5.

−c, −−count=N

Number of request packets to send to each target. In this mode, a line is displayed for each received response (this can suppressed with −q or −Q). Also, statistics about responses for each target are displayed when all requests have been sent (or when interrupted).

−C, −−vcount=N

Similar to −c, but the per-target statistics are displayed in a format designed for automated response-time statistics gathering. For example:

 $ fping −C 5 −q somehost
 somehost : 91.7 37.0 29.2 − 36.8
shows the response time in milliseconds for each of the five requests, with the "−" indicating that no response was received to the fourth request.

−d, −−rdns

Use DNS to lookup address of return ping packet. This allows you to give fping a list of IP addresses as input and print hostnames in the output. This is similar to option −n/−−name, but will force a reverse-DNS lookup even if you give hostnames as target ( NAME− > IP− > NAME ).

−D, −−timestamp

Add Unix timestamps in front of output lines generated with in looping or counting modes (−l, −c, or −C).

−e, −−elapsed

Show elapsed (round-trip) time of packets.

−f, −−file

Read list of targets from a file. This option can only be used by the root user. Regular users should pipe in the file via stdin:

 $ fping < targets_file
−g, −−generate addr/mask

Generate a target list from a supplied IP netmask, or a starting and ending IP. Specify the netmask or start/end in the targets portion of the command line. If a network with netmask is given, the network and broadcast addresses will be excluded. ex. To ping the network 192.168.1.0/24, the specified command line could look like either:

 $ fping −g 192.168.1.0/24
or

 $ fping −g 192.168.1.1 192.168.1.254
−h, −−help

Print usage message.

−H, −−ttl=N

Set the IP TTL field (time to live hops).

−i, −−interval= MSEC

The minimum amount of time (in milliseconds) between sending a ping packet to any target (default is 10, minimum is 1).

−I, −−iface= IFACE

Set the interface (requires SO_BINDTODEVICE support).

−l, −−loop

Loop sending packets to each target indefinitely. Can be interrupted with Ctrl-C; statistics about responses for each target are then displayed.

−m, −−all

Send pings to each of a target host’s multiple IP addresses (use of option ’−A’ is recommended).

−M, −−dontfrag

Set the "Don’t Fragment" bit in the IP header (used to determine/test the MTU ).

−n, −−name

If targets are specified as IP addresses, do a reverse-DNS lookup on them to

−N, −−netdata

Format output for netdata (−l −Q are required). See: <http://my−netdata.io/>

−o, −−outage

Calculate "outage time" based on the number of lost pings and the interval used (useful for network convergence tests).

−O, −−tos=N

Set the typ of service flag ( TOS ). N can be either decimal or hexadecimal (0xh) format.

−p, −−period= MSEC

In looping or counting modes (−l, −c, or −C), this parameter sets the time in milliseconds that fping waits between successive packets to an individual target. Default is 1000 and minimum is 10.

−q, −−quet

Quiet. Don’t show per-probe results, but only the final summary. Also don’t show ICMP error messages.

−Q, −−squiet= SECS

Like −q, but show summary results every n seconds.

−r, −−retry=N

Retry limit (default 3). This is the number of times an attempt at pinging a target will be made, not including the first try.

−R, −−random

Instead of using all-zeros as the packet data, generate random bytes. Use to defeat, e.g., link data compression.

−s, −−src

Print cumulative statistics upon exit.

−S, −−src=addr

Set source address.

−t, −−timeout= MSEC

Initial target timeout in milliseconds. In the default, non-loop mode, the default timeout is 500ms, and it represents the amount of time that fping waits for a response to its first request. Successive timeouts are multiplied by the backoff factor specified with −B.

In loop/count mode, the default timeout is automatically adjusted to match the "period" value (but not more than 2000ms). You can still adjust the timeout value with this option, if you wish to, but note that setting a value larger than "period" produces inconsistent results, because the timeout value can be respected only for the last ping.

Also note that any received replies that are larger than the timeout value, will be discarded.

−T n

Ignored (for compatibility with fping 2.4).

−u, −−unreach

Show targets that are unreachable.

−v, −−version

Print fping version information.


Tags:Fping   点击:()  评论:()
声明:本站部分内容及图片来自互联网,转载是出于传递更多信息之目的,内容观点仅代表作者本人,不构成投资建议。投资者据此操作,风险自担。如有任何标注错误或版权侵犯请与我们联系,我们将及时更正、删除。
▌相关推荐
Fping - 高性能Ping工具
Fping是一个命令行工具,类似于ping,用于发送ICMP ( Internet控制消息协议 ),Fping与ping不同之处在于可以指定要ping的主机数量范围或主机列表文件,而且性能要高很多。Fping主要应...【详细内容】
2022-04-14  Search: Fping  点击:(3296)  评论:(0)  加入收藏
黑客是如何使用Fping主机扫描工具的?
一、背景介绍局域网自然就是局部地区形成的一个区域网络,其特点就是分布地区范围有限,可大可小,大到一栋建筑楼 与相邻建筑之间的连接,小到可以是办公室之间的联系。局域网自身...【详细内容】
2021-10-08  Search: Fping  点击:(457)  评论:(0)  加入收藏
▌简易百科推荐
局域网限制上网软件有哪些
今天咱们继续来聊聊上网的事儿吧!企业和学校的网络管控,真是不容小觑。他们要确保网络安全和合规性,那得用上一些局域网限制上网软件。这些软件可是厉害哦!它们不仅能够掌控局域...【详细内容】
2023-12-15  网亚企业监管软件    Tags:限制上网   点击:(78)  评论:(0)  加入收藏
三款广受好评的内网监控管理软件
内网监控管理软件是一种用于监控和管理企业内部网络活动的工具。它可以帮助管理员实时监测网络流量、设备状态和用户行为,以确保网络安全和合规性。本文将从内网监控管理软件...【详细内容】
2023-11-15  洞察眼MIT系统    Tags:内网监控   点击:(169)  评论:(0)  加入收藏
推荐几个安全检测的开源系统
Security Onin系统 它的官网:https://securityonionsolutions.com/software/Security Onion是一款专为入侵检测和NSM(网络安全监控)设计的Linux发行版。它集成了日志分析、...【详细内容】
2023-09-10  安全架构  微信公众号  Tags:安全检测   点击:(230)  评论:(0)  加入收藏
一键关闭防火墙软件
作为一名电脑从业者,我有10年的经验,并熟悉Windows系统的各种设置和指令。来解决您的问题,如何关闭Windows系统的防火墙。以下是几个解决方案:一键关闭防火墙的工具包在这里:52ru...【详细内容】
2023-08-24  翰墨文化世界    Tags:防火墙   点击:(222)  评论:(0)  加入收藏
疯传全网网络10个运维巡检脚本以及使用小技巧
第1章 前言巡检脚本在网络运维中非常重要,近期客户想要一些简单的脚本实现自动化常规项的检查,本文主要介绍一些常见巡检脚本和使用方法。 第2章 脚本案例1. 网络连通性检查...【详细内容】
2023-08-23  虚拟化时代君  微信公众号  Tags:网络   点击:(319)  评论:(0)  加入收藏
分享15个网络监控神器
近年来,随着虚拟、云和边缘网络的增加,网络监控工具已经显得越来越重要。在当今大多数企业中,监控混合IT环境中的网络流量对于主动网络管理至关重要。无论是检测行为异常、占用...【详细内容】
2023-08-17  网络工程师俱乐部    Tags:网络监控   点击:(198)  评论:(0)  加入收藏
远程桌面连接出现了内部错误怎么解决?
远程桌面连接是一种非常方便的工具,可以让用户从远程访问其他计算机的桌面界面。但是,有时候在连接远程桌面时会出现内部错误,导致无法连接或者连接后无法正常使用。在本文中,我...【详细内容】
2023-05-10  RayLink    Tags:桌面连接   点击:(327)  评论:(0)  加入收藏
局域网远程桌面工具推荐
有多种软件选项适用于局域网 (LAN) 中的远程桌面,包括 微软远程桌面、Splashtop、Teamviewer 等。 以下是根据性能、安全性、价格、品牌历史和其他因素对这些软件选项进行的...【详细内容】
2023-04-28  Splashtop远程控制    Tags:远程桌面   点击:(368)  评论:(0)  加入收藏
什么是远程桌面连接?如何操作远程桌面?
随着时代越来越信息化、智能化、自动化,越来越多的企业和个人开始使用远程办公软件进行办公。其中远程桌面连接是一种非常流行的办公方式。那么,什么是远程桌面连接?如何操作...【详细内容】
2023-04-13  RayLink    Tags:远程桌面   点击:(197)  评论:(0)  加入收藏
用好你的瑞士军刀/netcat
Netcat 号称 TCP/IP 的瑞士军刀并非浪得虚名,以体积小(可执行 200KB)功能灵活而著称,在各大发行版中都默认安装,你可以用它来做很多网络相关的工作,熟练使用它可以不依靠其他工具...【详细内容】
2023-04-02  码农世界  今日头条  Tags:netcat   点击:(289)  评论:(0)  加入收藏
站内最新
站内热门
站内头条