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

4
votes
1answer
74 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 ...
0
votes
0answers
17 views

MRTG not filling bar for PING result

I have MRTG configured to graphs variou devices. I have added ping graph to monitor one of my device. My Task is to create ping graph of target decoy device which is connected with direct ...
5
votes
3answers
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 ...
1
vote
1answer
1k 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 ...
2
votes
1answer
6k views

Ubuntu server cannot access the Internet: appears DNS related

This is a Drupal website running Ubuntu 12.04 LTS on Linode. The server is just a website. It is not a DNS server or anything else. Here are my issues. It seems they are all related to DNS issues. (I'...
1
vote
1answer
10 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
0answers
71 views

Script hangs when doing lpstat -v

if ping -q -c 1 ${tally[$queue]} >/dev/null then echo lpstat -v${tally[$queue]} else echo echo ${tally[$queue]} ...
0
votes
1answer
45 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 it's not ...
2
votes
3answers
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 ...
2
votes
2answers
77 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 ...
2
votes
2answers
308 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
1k 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
20 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
321 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
61 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
24 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
57 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
76 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
51 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 ...
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 ...
6
votes
1answer
311 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
193 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
23 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
74 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
36 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
67 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
42 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
33 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
37 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
93 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
298 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
178 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
79 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
83 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
43 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]" ...
1
vote
1answer
105 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 ...
8
votes
4answers
49k 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
93 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
136 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
200 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
63 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
324 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
592 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 ...