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

2
votes
2answers
255 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 ...
1
vote
1answer
923 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
0answers
16 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 ...
0
votes
3answers
280 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 ...
2
votes
2answers
43 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 ...
0
votes
0answers
11 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, ...
5
votes
3answers
1k views

Is there some way I can start a (repeating) ping while the network is unreachable?

My ping command (on Debian 6 or 7) will repeatedly attempt to ping a server even while the network is down, if the network was up when it was started. Is there some way to start ping while the network ...
3
votes
1answer
43 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 ...
0
votes
1answer
59 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 ...
1
vote
1answer
33 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
975 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
2answers
1k 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
0answers
6k views

Ping command results in packet loss

Whenever I ping on my personal computer, nothing gets displayed other than a single statement. Upon stopping execution, I see that several packets were transmitted in the statistics. On top of all ...
2
votes
2answers
1k 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 ...
6
votes
1answer
304 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 ...
3
votes
2answers
182 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
22 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 ...
4
votes
2answers
5k views

Cannot access to web server, but can ssh to it

I have a Ubuntu server but there are some weird things I can't understand. I cannot ping to the server via IP address, but I can ssh to it. I can access to apache server inside the server via command ...
0
votes
1answer
37 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
65 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
31 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
66 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
35 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
1answer
32 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, ...
1
vote
1answer
34 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
80 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....
2
votes
0answers
198 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
22 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
111 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
74 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
32 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
20k 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
50 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
36 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
0answers
65 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
92 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
48k 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
87 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
116 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
184 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
57 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
272 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
504 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
7k 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
144 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 ...
2
votes
1answer
92 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 ...
30
votes
3answers
86k views
2
votes
1answer
43k 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 10....
1
vote
2answers
214 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 ...