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

3
votes
1answer
55 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
2answers
6 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 ...
0
votes
0answers
13 views

how the ping implementation calculating the round trip time? [migrated]

I was learning about the ping implementation. In that I had one doubt. The doubt is, how they calculating the round trip time. They done some calculation to calculate the round trip time. I am not ...
0
votes
1answer
26 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
269 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
votes
1answer
26 views

What is the use of mdev in ping?

I am learn about the ping command and their options. The ping command finally prints the statistics. $ ping google.com PING google.com (216.58.199.174) 56(84) bytes of data. 64 bytes from ...
-1
votes
1answer
24 views

what is the use of -U option in ping command?

I was learning ping command and their options. In ping -U option is used for full user to user latency. There is no difference for ping and ping -U option in output. $ ping google.com PING ...
1
vote
1answer
19 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 ...
5
votes
1answer
46 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 ...
1
vote
0answers
51 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 ...
10
votes
2answers
3k views

Check ping statistics without stopping

Is there a way to tell ping to show its usual termination statistics without stopping the execution? For instance, I'd like to quickly view: --- 8.8.8.8 ping statistics --- 2410 packets transmitted, ...
0
votes
1answer
20 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, ...
2
votes
2answers
903 views

I can ping internal to outside but not from outside to internal (Static IP)?

I have a static IP provided by the administrator of my Linux CentOS 6.5. The problem is that while I can ping this machine, connect to it and use it to access the internet from within my network, I ...
3
votes
1answer
44 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 ...
2
votes
0answers
54 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. ...
1
vote
1answer
873 views

cannot ping my computer on local network

I am running on 64 bit OpenSuSe 13.2 with Gnome 3 desktop environment and unsuccessfully trying to set up Samba Server. I have another computer running windows 8.1 from which I am pinging the ip ...
-3
votes
1answer
30 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.
6
votes
4answers
19k views

What prevents a machine from responding to pings?

I have a CentOS release 5.4 linux box on Amazon EC2 that I'm trying to set up to be monitored via Nagios. The machine is in the same security group as the nagios server, but it seems to be ...
0
votes
1answer
31 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
25 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]" ...
3
votes
0answers
53 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
62 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 ...
7
votes
4answers
44k views

Why can't I ping Google?

I can't ping google.com (unknown host). But I can ping IP addresses. I tried to ping the IP address of Google but it doesn't work. resolv.conf nameserver 8.8.8.8 nameserver 209.139.209.33 ...
2
votes
1answer
63 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
86 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 ...
4
votes
2answers
148 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
46 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 ...
3
votes
1answer
167 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) ...
4
votes
5answers
404 views

How to log Internet connection drops

I need to execute a script as soon as my raspberry pi gets connected to the Internet. However I was wondering if there was a better way than just pinging Google every minute or so. My problem is that ...
-1
votes
5answers
5k views

network: destination host unreachable

So Im using linux oess(centos). in the terminal im trying to ping 8.8.8.8 to see my connectivity. so it says: Network is unreachable Than I typed ifconfig: inet addr: 192.168.56.101 ...
0
votes
1answer
85 views

Can't setup ssh connection with bridge

I would like to set up an ssh connection to a device, which is bridge. It's a device to put between router and PC and the traffic just goes through. I don't have a ip-adress assigned to the bridge, so ...
3
votes
2answers
982 views

Suppress “Alarm clock: 14” from ping

I've made a simple script for rebooting my router and afterwards showing a progress bar until my computer has an internet connection again. When running the script I get the following output: The ...
2
votes
1answer
79 views

Time synchronization, use NTP or just socket?

I am using a PC and a raspberry pi(both run Linux) to gather sensor data, raspberry pi gathers laser scan data, PC gathers image captured by camera. I must synchronize time for these two machines. I ...
28
votes
3answers
82k views
2
votes
1answer
39k views

Unable to ping gateway & other Linux boxes on same network

I'm somewhat new to Linux, but I'm trying to network a few Linux machines. I can't seem to be able ping the gateway or the other Linux machines. My scenario: I have a few Linux boxes set up on a ...
1
vote
2answers
193 views

Pinging between Mesh Network Nodes OpenWrt

I have two mesh nodes that I have configured to be on a mesh created using OpenWrt. I used the tutorial here to set that up. When I ran iw dev $MESH_IFACE station dump, I got the output that I ...
1
vote
0answers
56 views

Why does flood ping to localhost result in lower RTT's?

I used ping to do an estimate of lower bound for HTTP request times as part of a feasibility study. In order to make the test faster I lowered the interval of the ping (to get enough pings to get a ...
0
votes
3answers
213 views

ping output statistics to file

[root@localhost ~]# while true; do timeout -s 2 1h ping 96.120.16.121 | ts '%Y-%m-%d %H:%M:%S |' | tee -a ping.log; done easier to read format: #!/bin/bash while true; do timeout -s 2 1h ...
0
votes
1answer
199 views

arp-scan shows a machine, but I can't ping it

I have been facing a particularly anomalous network issue. For a particular test, I set a Class A IP on my Windows Machine and tried using arp-scan and ping separately. Here are my Windows settings : ...
0
votes
0answers
56 views

linux to linux IP MASQUERADING failed (can't ping ip server)

I'm new in linux, i'm trying to IP MASQ. So the diagram is like linux A is connected to HUB and Internet, and linux B is connected only to HUB. In linux A i have eth1 (10.10.10.5) and eth0 ...
1
vote
0answers
53 views

How to disable IPv6 ping response in Linux without firewall

How can I disable IPv6 ping responses in Linux without using the IPv6 firewall? This question covers how to do this using the IPv6 firewall via iptables, but I'm using an embedded system that doesn't ...
1
vote
2answers
2k views

ping: unknown host with iptables enabled

I can't ping www.google.com. However I can ping the IP address: ping 74.125.237.142 At first, I thought it is a problem with my DNS settings. But I checked my resolv.conf, hosts, and hostname ...
0
votes
2answers
3k views

Display hostname in ping output

When I ping my Linux server (running in a VM on my Windows7 host) with the following command: ping -a 192.168.56.*** I get the results shown below. Why isn't it resolving my server's name? ...
1
vote
1answer
3k views

Using ping on multiple interfaces on a NIC

I have two systems and each have a NIC with two ethernet ports. One system has a verified NIC card, but the other has a NIC which has to be verified. I use ping to verify whether the interfaces on ...
-1
votes
2answers
111 views

Curl, ping hangs/waits when using private network ips

I have a whole bunch of servers working inside my office premises private network. When I try to run my tests outside office network, curl/ping/python/nodejs requests library, all of them wait ...
3
votes
1answer
135 views

Some ICMP-Reply messages don't arrive in User Space in recent Kernels

I'm moving an application from 2.6.23 (yes, it's ancient; that's why we are moving) to 3.18LTS. The application monitors multiple network links to the same target with ping packets. The different ...
5
votes
3answers
2k views

ping to send 0 bytes

Is it possible for ping command in Linux(CentOS) to send 0 bytes. In windows one can define using -l argument command tried ping localhost -s 0 PING localhost (127.0.0.1) 0(28) bytes of data. ...
2
votes
3answers
2k views

How can you get ping to print human readable timestamps?

Ping can print you a timestamp on every line but its in unix date format :( ping -D localhost PING localhost.localdomain (127.0.0.1) 56(84) bytes of data. [1415629479.482938] 64 bytes from ...
1
vote
1answer
632 views

centos: ping6 unknown host

I have centos 6.5 with ipv6 enabled and working (partially). When I'm trying to execute "ping6 bin6.it" it returns error "unknown host": [root@centos ~]# ping6 bin6.it unknown host Host is ...
1
vote
1answer
83 views

First ping after ifup fails

I have a weird issue on Debian 8 on a provisioning workflow, the steps are : The debian is DHCP configured (from the PXEBoot) VLAN Change on ESX ifdown on eth0 reconfigure /etc/network/interfaces ...