A tool commonly used to test the reachability of a given host, either on the internet or in a local network.

learn more… | top users | synonyms

1
vote
0answers
39 views

Only ping fail output should get visible

Is there a possibility for getting only the error output when running the ping command? icmp_seq will obviously show the drop calculation by the missing numbers, but I need the RTO on the screen to ...
2
votes
0answers
51 views

Consistently high but decreasing ping behavior on ubuntu machine

I have a ubuntu machine (Ubuntu 16.04.1 LTS) connected to my home router via ethernet. I had been noticing poor performance when connecting via ssh, so I ran some ping tests from the ubuntu machine. ...
0
votes
4answers
50 views

Can't ping to another linux machine by hostname

When i try to ping to another linux machine in my local network i didn't work when i insert the host-name in the ping command. sudo ping Raspberry2 It only works when i insert the IP address in the ...
1
vote
1answer
47 views

not able to ping through ssh tunnel device

I am trying to create an ssh VPN (through port 443) to bypass NAT and filtering. I am using this tutorial. The OS is Debian testing on bolth sides. The tunnel devices are created on bolth sides, and ...
30
votes
1answer
2k views

“/usr/bin/ping” is shown as yellow-on-red in the default Fedora bash color scheme — what does it mean?

When listing the directory /usr/bin, one sees that ping is shown as yellow-on-red: The file has no special features: $ file /usr/bin/ping /usr/bin/ping: ELF 64-bit LSB shared object, x86-64, ...
1
vote
1answer
65 views

Hostname lookup (ping) hangs indefinitely

Normally if I try pinging an address it will either do so promptly or state that the host is unknown. On one machine however, it seems that trying to ping an unknown host will cause it to hang forever ...
1
vote
1answer
15 views

how to use only certain addresses in subnet for traceroute?

First I try running nmap -sn ip/24 to check live hosts on a subnet. It returns that all 255 hosts are live which I know is not true. I do fping -g ip/24 and get that 7 hosts are up which makes more ...
0
votes
3answers
30 views

Extracting time from text file

So I am trying to write shell script in linux that will extract the rountrip time from a webserver ping stored in a text file. So what I basically have is a text file with this: PING e11699.b....
1
vote
1answer
41 views

SSH only works/keeps alive while ping running in background

A brand new linux box running Ubuntu 16.04.1 (LTS) Server was installed into a Citrix VM. It was set up with openSSH. When connecting to it via, it will timeout. This happens even immediately after I ...
1
vote
0answers
33 views

How can I configure system not respond to ICMPv6 echo requests sent to a broadcast address

I am attempting it by using echo command and it gives me the below error +++++++++++++ t040ml000002:/proc/sys/net/ipv4 # echo “1” > /proc/sys/net/ipv6/icmp_echo_ignore_all -bash: /proc/sys/net/...
2
votes
0answers
72 views

Make ping on linux behave like ping on Mac OSX

After a lot of internet searching and trying just about every option on the man page, I'm stumped. I use Linux and Mac both regularly in any given day. I've noticed that I prefer the ping command's ...
0
votes
1answer
86 views

ping from a vlan-device got Destination Host Unreachable

I up a vlan device eth0.100 as 192.168.1.100. The eth0 have address 10.137.16.108 It looks work good when I ping with address. $ ping 10.137.16.108 -I 192.168.1.1 PING 10.137.16.108 (10.137.16....
0
votes
0answers
299 views

“Destination Host Unreachable” when pinging directly connected computer after IP change

Issue: After changing the static IP addresses on 2 units, I can no longer ping. Configuration: OS: CentOS 7 Interfaces: 2 1-GbE adapters, one used, connects to the Internet, DHCP, works 2 10-GbE ...
0
votes
1answer
46 views

How to stop the ping command if there is no reply after 1 sec? [duplicate]

I'm writing a loop that checks whether a connection has been established. I'm doing ping -c 1 8.8.8.8 while [ $? -ne 0 ] do sleep 0.5 ping -c 1 8.8.8.8 done Now I'm not sure how this works, if ...
0
votes
1answer
42 views

VPN Clients only can connect to other machines after ping

I have a weird problem here. I have a OpenVPN server up and running. When my VPN clients (10.0.0.x) try to connect to another machines (192.168.0.x), it fails (I tried netcat, telnet and SIP). If a ...
1
vote
1answer
34 views

why ping lost when interface add to ovs bridge

I have two linux, there are server1 and client1. server1 has several interfaces and two of them added to ovs bridge - ovsbr0 ( eth2, eth3). client1 has inteface in the same L2 as server1. i have IP ...
0
votes
1answer
73 views

Why ping not works through Interface name but works through Interface address?

I use a USB-Ethernet Adapter which gets recognized as eth1 in the target. I then set an IP for eth1 using the command ifconfig eth1 YY.YY.YY.YY When I use ping -I eth1 XX.XX.XX.XX OUTPUT : ...
3
votes
2answers
156 views

i don't get ipv6. Why cannot I ping ipv6.google.com?

I am trying to send ipv6 pings from a computer in a LAN. Unfortunately it does not work. It seems that I have an ipv6 address in the LAN, but somehow the ping -Ieth1 ipv6.google.com just prints a ...
0
votes
0answers
22 views

Changing CentOS 7 machines disables terminal access during background task

Based on this other posting, I typed the following command into a CentOS 7 terminal on a devbox that has the gnome GUI, and was able to continue to use the terminal for other commands while the ...
2
votes
2answers
180 views

Ping from subinterface

I have a sub-interface eth0:0 auto eth0:0 iface eth0:0 inet static address 192.168.2.96 netmask 255.255.255.0 gateway 192.168.2.1 and I try ping -I eth0:0 8.8.8.8 and I ...
1
vote
0answers
144 views

VPN SoftEther - I can't access VPN server directly from VPN connected device

I have installed and run VPN server (SoftEther) on my Raspberry Pi 3 (Raspbian) and it works fine except the fact that my PI works not only as VPN server but offers other services (SAMBA, FTP, APACHE, ...
3
votes
1answer
144 views

Forward ICMP Ping Packets to Interface

I've got a script that listens for ICMP ping packets (containing data payload) and while this works if you run it from command line, it doesn't work in a Docker container because ICMP ping packets are ...
1
vote
1answer
191 views

Cannot Ping, nor Curl, but Nslookup works

On a freshly installed Fedora Workstation running the default Workstation spin which installs Gnome. I'm having problems getting to a web server on the LAN with my browser. The commands curl and ping ...
1
vote
1answer
324 views

Cannot access internet from VirtualBox guest (Arch Linux)

I am using VirtualBox 5.0.20. The host machine is a MacBook running OS X 10.11.5 (El Capitan). The guest OS is 64-bit Arch Linux. When I installed Arch from the ISO, the guest's internet connectivity ...
2
votes
2answers
1k views

Run a ping command on list of servers and output to a file

I have a file servers.txt on a different server, with list of servers: server1.mydomain.com server2.mydomain.com server3.mydomain.com I want to first download this txt file, ping these servers and ...
3
votes
2answers
248 views

Why doesn't iptables receive the marked packet?

I was learning the ping command options. In that I found the -m option to set the mark for a packet. The below command sends the packet with marking of 10 to the 192.168.2.65. ping -m 10 192.168.2....
3
votes
1answer
35 views

Cannot ping OUT of a Mac OS X server

I have just inherited a Mac OS X server that is using pf. The problem I am trying to solve is why I can't ping OUT of the server. I can ping to the machine no worries, but just get timeouts on pinging ...
0
votes
1answer
38 views

High time until SSH asks for password

I've been noting recently that any host that I ssh to in LAN, waits like 5 seconds before asking for password. ping sometimes also waits, but less(like 2 seconds), but it shows it has resolved the ...
0
votes
2answers
169 views

What is the use of -l option in ping command?

I am learning ping command and its options. In that the -l option is provided, it sends that many packets to the destination without waiting for a reply. And for normal users the preload limit is 3. ...
0
votes
1answer
58 views

What is meant by ewma in ping statistics?

I was learning ping command implementation. In that I had one doubt that is If I provide the -f or -A option, finally in statistics report, it have two extra field when compare to normal ping. The ...
3
votes
1answer
77 views

Why ping receives another ping command packet?

I am learning about the ping implementation in C. The problem is, I was using a raw sockets to receive the packet. For all packets we have a identification value in ICMP header. I was running the ...
0
votes
1answer
40 views

How to determine if it is a fault of the Network Card?

Basically, I have a PC having problems. Let's call it POO. POO is a pc running Gentoo Linux, with KDE. It is quite freshly setup on an old hardware. So far I do not notice it has other problems, ...
6
votes
1answer
368 views

-m option does not work in ping command

I was learning the Linux ping command and its options, and read about the -m option which is used to mark the outgoing packet. When receiving, we can filter that marked packet result first. I am ...
1
vote
1answer
82 views

What is the use of socket buffer size in ping?

I am learn about the ping command implementation. In that I had a one doubt. The doubt is I know the socket buffer is for how many bytes transfer at a time in the socket. But how the ping command ...
6
votes
1answer
159 views

-T option result in ping command

I was learning about the ping command. I am not able to understand the output of ping command with -T tsonly and -T tsandaddr. The output is: $ ping -T tsonly 192.168.1.52 PING 192.168.1.52 (192....
0
votes
2answers
120 views

Output of ping command with option -T

I was learning about the ping command. In that I am not able to understand the output of ping command with -T tsonly and tsandaddr. The output is, $ ping -T tsonly 192.168.1.52 PING 192.168.1.52 (...
2
votes
0answers
1k views

Able to ping my host but getting no route to host

I have a elasticsearch service running on MY_HOST_IP(10.x.x.xx) and port 9200. I am able to ping 10.x.x.xx from my VM, but when I try to connect elasticsearch it gives me : no route to host ...
0
votes
1answer
33 views

Can I see the summed up results of the ping command while it is running? [duplicate]

When I run the ping command it outputs information for each ping and in the end, when I kill the process it outputs some overall statistics --- 192.168.0.1 ping statistics --- 10 packets transmitted, ...
3
votes
1answer
929 views

What ports need to be open on a firewall to access the internet?

Let's say as the example that I have a firewall that blocks ALL ports from all sources/destinations. What ports would I need to open to be able to successfully run: ping google.com ...and are there ...
2
votes
0answers
147 views

How to debug what is stopping ping to respond on our server?

We used to have a sysadmin person months ago who had disabled ping response on one of our servers. But now we want to re-enable ping response. I tried to check if the ping was disabled from config. ...
-3
votes
1answer
46 views

Online state change

Are there ready script in bash or python which pings target and reports only online state change? Also would nice to have average time between failures.
0
votes
1answer
315 views

sendmsg: Network is unreachable

I set the IP address of my network card to a particular value to be able to talk to a piece of hardware. Then I try to ping it, which works for a few seconds, until I get the error ping: sendmsg: ...
0
votes
2answers
107 views

Output pings with time greater than 100ms to file with a timestamp appended

I want to save in a file every ping with a time greater than 100ms and append a timestamp to every line. Searching I have managed to get this: ping HOST | grep --line-buffered "time=[0-9][0-9][0-9]" ...
4
votes
1answer
109 views

How can I know which IP address of a host is reachable from another?

I don't particularly need a "solution" to something, I'd just like to understand more of the landscape here. So on my CentOS box, I installed a CentOS VM specifically for learning Puppet. When the ...
1
vote
1answer
170 views

how can one manually assign a permanent / static IP address with “ip addr add”?

After an IP address is assigned to this network interface, with any of the the following commands: ip addr add 10.0.0.0 dev eth1 valid_lft forever preferred_lft forever ip addr replace 10.0.0.0 dev ...
2
votes
1answer
122 views

Execute a command after each output line from ping command

I am trying to build a one-line command to monitor when my Internet connectivity drops. I'd like it so that if I run ping www.google.com indefinitely (one ping per second), if the word "timeout" ...
0
votes
1answer
308 views

CentOS 6.7: network is unreachable after a new clean installation

I have a new clean installation of CentOS 6.7, it is not on a VM, but on a dedicated notebook. During the installation procedure I've configured my WiFi connection and have added it on eth0 pre-...
4
votes
2answers
344 views

Why does ping run forever by default in Linux? [closed]

What was the rationale for the design decision to make ping's default behavior to ping forever? For example, the following basic usage will ping address 127.0.0.1 forever: $ ping 127.0.0.1 ...
1
vote
1answer
104 views

Linux server able to wget but not able to ping

A proxy server was added using export http://link:port/. I try to ping google.com and there is no response, the DNS is able to resolve an IP. wget of google.com works. routes: Destination ...
4
votes
1answer
650 views

Wget and curl can work normally, but ping fails

When I ping www.google.com and 8.8.8.8, I get no reply: # ping www.google.com PING www.google.com (216.58.221.228) 56(84) bytes of data. ( no response) # ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) ...