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

0
votes
0answers
42 views

Why I can't ping anymore?

In my Ubuntu 14.04 I have two ethernet interface. Eth0 is connected to main internet using DHCP auto and eth1 is to share with other PC's. $ cat /etc/network/interfaces auto lo iface lo inet loopback ...
3
votes
0answers
36 views

Why doesn't Ubuntu use capabilities on ping?

After running, $ ls -l /bin/ping -rwsr-xr-x 1 root root 34740 Nov 5 2012 /bin/ping I wonder, why doesn't Ubuntu use capabilities (i.e. raw sockets) rather than setuid?
2
votes
2answers
111 views

Ping multiple hosts and execute command

I'm very new in bash scripting and unix so I will need some help on this.I have 7-10 hosts which I want to ping from one of the servers via cronjobs. What I want is when host is up to execute command ...
3
votes
1answer
46 views

Why am I getting DUP! reply when using ping -A

We have 2 VM's running on ESX 5.1. When I do a ping -A, after a while I get every second ping as a DUP!. When doing a normal ping, I get 5 or 6 DUP!s, and then it returns to normal. Any ideas what to ...
0
votes
1answer
84 views

Why ping an IP is different to ping a website?

I've noticed a strange behaviour (at least, I can't get out). Ping IP, specifying packet size: ping -s 128 8.8.8.8 I get: PING 8.8.8.8 (8.8.8.8) 128(156) bytes of data. 72 bytes from 8.8.8.8: ...
3
votes
1answer
134 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, ...
2
votes
0answers
152 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 ...
1
vote
1answer
102 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 ...
3
votes
3answers
120 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 ...
0
votes
1answer
61 views

Route a local connection via an ethernet link in QNX

I am currently facing a challenge in QNX, where I have 2 Network Interfaces - viz. one Network port from PCIe Ethernet Expansion card (wm0) and other from the normal Ethernet port (en0). I have ...
2
votes
1answer
106 views

Most reliable way to check for connected client?

I have an embedded Linux OS developed from scratch using Yocto. This talks to a Windows XP/7 client. The embedded OS runs a DHCP server and gives an address to the client. The problem is that the ...
0
votes
1answer
73 views

Get a faster response for a ping

I noticed that the answer to my ping is slower in one debian machine that another. For the first one when i ping to 8.8.8.8: 64 bytes from 8.8.8.8: icmp_req=1 ttl=47 time=29.6 ms For the second ...
0
votes
2answers
152 views

traceroute gives only stars + how to fix

Please advise about the following problem. When I do: $ traceroute 8.8.8.8 I get in the output showing only stars, even though pinging to google.com ( 8.8.8.8) appears to be working. Please ...
-1
votes
1answer
245 views

Bash Ping to return 'alive' IP addresses

(Disclaimer- I know this can be done more easily with nmap, but its supposed to be practice for bash shell scripting). $ scriptname 192.168.42 18 23 Checking: 192.168.42.18 19 20 21 22 23 Live ...
0
votes
0answers
25 views

No answer on Broadcastping

Actually I'm making an android app, but as the problem appears by using android's Linux runtime, I'm asking my question here. The thing is, that I need to ping the network's broadcast address to ...
2
votes
1answer
91 views

How do I create an IPv6 overlay network?

I would like to create host-only IPv6 networks on two hosts and then route between them. On each host, there will be a dummy interface, at ipv6_prefix::9. I would like to be able to ping that ...
1
vote
2answers
71 views

What could cause a ping request to return inconsistently timed results

Here is a sample run: 64 bytes from 192.168.1.9: icmp_seq=27 ttl=64 time=8852.917 ms 64 bytes from 192.168.1.9: icmp_seq=28 ttl=64 time=7918.074 ms 64 bytes from 192.168.1.9: icmp_seq=29 ttl=64 ...
3
votes
1answer
61 views

Did this tutorial block pings to my server?

I am a programmer teaching myself linux admin stuff. I followed this tutorial to setup a firewall on a VPS. As a part of that tutorial, I block all traffic except for web traffic and SSH traffic. I ...
0
votes
2answers
2k views

How do I access files on an external hard drive?

edited 02-25: I thank @Anthon for his replies. I still do not, however, understand the meaning or the how of "pinging" ("Once you update your Q, ping the commenters..."). I also do not understand the ...
11
votes
3answers
1k views

How to redirect the output of any command?

I'm trying to write a simple script to monitor my network status, without all of ping's output: ping -q -c 1 google.com > /dev/null && echo online || echo offline The problem is that ...
2
votes
3answers
4k 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 ...
1
vote
0answers
74 views

High ping/latency on Xen box

I am having problems with my Xen box. Once in a while it has too high ping/latency and it is very annoying. It does not matter if I am pinging server from outer network (LAN0) or inner network ...
4
votes
2answers
401 views

My Ping command does not seem to ever finish. Does that mean it is suceeeding?

I am pinging a remote IP. I know very little about the Ping command. When I ping the IP, it keeps going and going... I am not using the -t option. Me$ ping 137.30.124.104 PING 137.30.124.104 ...
2
votes
1answer
291 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 ...
1
vote
2answers
3k views

How to check whether certain port is opened or block on any other servers from a dev box?

I am trying to connect to one of our staging Cassandra servers on port 9042 and 9160 here in our company from a dev box.. Through the code, I am not able to connect to it... The program gets hanged at ...
2
votes
2answers
330 views

ssh reverse tunneling not working

So, I have a server and a home machine. My server can't talk to internet, but my home machine can. So, I set up a reverse tunnel through home to server using: ssh -R 9001:www.google.com:80 server ...
0
votes
0answers
55 views

Ping wireless interface from wired interface

I'm performing some wireless measurements. The setup I'm now using is composed of a WiFi AP and two laptops. One laptop (A) and the AP are connected to a common switch, while the second laptop (B) ...
4
votes
1answer
155 views

Strange ping behavior

I built a linux distribution using the Yocto Project, with little customization. It runs on a Single Board Computer. When I ping this machine, I get the following result: PING 10.128.11.1 ...
10
votes
2answers
3k views

Can one ping a NIC by MAC

I have an NIC card on a Debian machine somewhere. The machine is turned off, but I need to know whether the NIC card is turned on so that I can send a wake-on-lan magic packet later (from another ...
1
vote
2answers
2k views

Why doesn't “ping -l” works when ping works?

Bye all, ping AddressIp 64 bytes from indirizzoIp: icmp_req=1 ttl=42 time=149 ms while if ping AddressIp -l 1400 ping: cannot set preload to value > 3 ping AddressIp -t -l 1400 ping: can't ...
3
votes
1answer
1k views

LAN server with two network cards, can't telnet / ping to the second even if it works

I have an issue with an Ubuntu 12.04 LTS (updated) server. For reasons too long to detail, it has got one eth0 interface assigned to 192.168.1.9 and one Wifi wlan0 interface assigned to 192.168.1.10. ...
0
votes
2answers
148 views

Unable to ping the IP during first boot

I am trying to add some routes in /etc/init.d/S98 script but it is failing to ping the gateway IP and hence route addition is failing. But once all the S98 scripts are executed I am able to ping the ...
0
votes
1answer
144 views

Ping a list of IP addresses and outputing duplicates

In Linux how can I ping a list of IP addresses (in a text file) and only output those that have duplicate ping replies?
0
votes
0answers
181 views

unable to ping gateway and CLAN in Linux but pingable in Windows PC

We're installing RHEL 5.5 for our Voice Portal (Avaya). After configuring the IP address, gateway IP, and netmask we tried to ping it so we could see if it was pingable/active or not. Sadly its ...
-2
votes
1answer
257 views

Why doesn't “ping -vrf” works when ping works?

0:root@SERVER:/root # ping IPADDRESS PING IPADDRESS (IPADDRESS): 56 data bytes 64 bytes from IPADDRESS: icmp_seq=0 ttl=254 time=0 ms 64 bytes from IPADDRESS: icmp_seq=1 ttl=254 time=0 ms 64 bytes from ...
-2
votes
2answers
2k views

Loop over multiple addresses: ping and drop data into file

I would like to be able to have a script that will: look at a list of IP addresses Ping one of the addresses Take the data and drop it in to a file Move on to the next IP So far I have: cd ...
2
votes
1answer
2k 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. ...
0
votes
1answer
1k views

Continues Pinging to background, save logs and show statistics

I'm trying to make a script that save the ping logs to .txt or .log file. To monitor if my connection is intermittent or not, I'm using this script: $nohup ping 8.8.8.8 > timeout.txt & Then ...
0
votes
1answer
226 views

ping timeout differences between OS X and Linux/other OSs

This function I wrote should exemplify the idiosyncrasy between OSX and Linux ping commands, in particular their -W timeout option: # Checks if a host is up-and-running and responding to pings ...
3
votes
1answer
5k views

Cannot reach outside network or IP after upgrading to Ubuntu 12.04

I am running Ubuntu 12.04 on my server but since the upgrade from 10.04 I can no longer reach any outside sources of the server. I can SSH into the box, but from inside here I can not reach anything. ...
3
votes
1answer
954 views

Very slow response from localhost when pinging

Networking is working fine on my gentoo machine. One connection is made, everything works fine with normal speed. But it is slow to wake-up : starting up connection is taking time. Even pinging ...
0
votes
0answers
119 views

Send update ping to ping services in Terminal?

I want to send ping from http://www.mysite.com/rss.xml to http://rpc.pingomatic.com Is there any way using terminal to achieve this?
1
vote
1answer
152 views

Ping from Outside: How do I make my system invisible?

I just did a test that told me my gateway (debian squeeze) responds when being pinged from outside. It's a box with two network cards, eth0 is for my internal network (192.168.1.0/24) and eth1 goes ...
1
vote
2answers
237 views

How to make dns resolve faster

I changed name server of one domain. Then I flush dns root@host [~]# /etc/init.d/named restart Stopping named: [ OK ] Starting named: ...
1
vote
2answers
2k views

What is the difference between ping -w and ping -W?

What is the -w (deadline) flag in ping for? I cannot find a description of it in the ping man page; only for -W, which takes seconds as a parameter. What is the difference between them, and how can I ...
2
votes
1answer
11k 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 ...
3
votes
1answer
2k views

qemu - two clients (tap0 & tap1) via br0 can't ping eachother but server pings ok

I've got: A host system running Ubuntu with KVM (functional) Two clients, one Ubuntu and one Windows 7, nothing fancy. I've also setup (see below) a bridge via br0 for the clients: br0: ...
3
votes
3answers
131 views

SSH to two addresses, use the one that connects first

I have a home computer (let’s call it franklin because that’s what I call it) that I often ssh into from my work laptop. When I’m at home, I ssh to franklin.local, and when I’m at work or anywhere ...
0
votes
0answers
263 views

Host reachable via SSH from my desktop but not my laptop

I try to use ssh to log in to a remote host. This works for my Ubuntu desktop, however, it fails from my Fedora 14 laptop. The failure means after I type ssh username@host and pressed Enter, ...
5
votes
1answer
336 views

root owned program with setuid bit on

Ping is a a program owned by root with the user id bit set. $ ls -l `which ping` -rwsr-xr-x 1 root root 35752 Nov 4 2011 /bin/ping As I understand it, if a user runs the ping process, then the ...