YouTube - :)

3

. ? - ICMP (Internet Control Message Protocol) . ping, ! , . , - ? Linux fping.

   fping  Linux

fping?

Fping , ping, , . fping .


Linux fping :

# sudo apt install fping  		[Debian/Ubuntu]
# sudo yum install fping  	[ CentOS/RHEL]
# sudo dnf install fping  	[ Fedora 22+]
# sudo pacman -S fping    	[ Arch Linux]

, :

$ wget https://fping.org/dist/fping-4.0.tar.gz
$ tar -xvf fping-4.0.tar.gz
$ cd fping-4.0/
$ ./configure
$ make && make install

! , fping


fping, IP

# fping 192.168.1.1 192.168.1. 192.168.1.3

192.168.1.1 is alive
192.168.1.1 is unreachable
192.168.1.3 is unreachable

s g, .

# fping -s -g 192.168.0.1 192.168.0.9

192.168.0.1 is alive
192.168.0.2 is alive
ICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.3
ICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.3
ICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.3
ICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.4
192.168.0.3 is unreachable
192.168.0.4 is unreachable

8      9 targets
       2 alive
       2 unreachable
       0 unknown addresses

       4 timeouts (waiting for response)
       9 ICMP Echos sent
       2 ICMP Echo Replies received
      2 other ICMP received

 0.10 ms (min round trip time)
 0.21 ms (avg round trip time)
 0.32 ms (max round trip time)
        4.295 sec (elapsed real time)

, . r 1 ,

# fping -g -r 1 192.168.0.0/24

( merionfping.txt),

# fping < fping.txt

192.168.1.20 is alive
192.168.1.100 is alive

?


: