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
0answers
31 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
33 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
42 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
44 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
107 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
28 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
81 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
299 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 ...
0
votes
1answer
35 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
58 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 ...
1
vote
0answers
33 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
116 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
0answers
36 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 ...
0
votes
1answer
88 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
37 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 ...
3
votes
1answer
128 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
1k 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. ...
1
vote
1answer
59 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 ...
1
vote
1answer
321 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
votes
5answers
1k 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
0answers
70 views

I can't ping the gateway

The network error is that I can't ping the gateway after ip forwarding configuration. Here's the my configuration: linux microcore(server)(First PC) sudo su ifconfig eth0 192.168.2.200 netmask ...
-1
votes
1answer
30 views

Arping to google.com fails

I am trying to follow the instructions here, https://wiki.archlinux.org/index.php/Netconsole to set up netconsole in ubuntu machine. This uses, arping command which is non-responsive when i run it in ...
2
votes
1answer
134 views

ping statistics

When ping displays statistics the field mdev is the std deviation of all the ping times. It is the average time (in ms) to the average avg. But because ping times are stricktly positive, I don't ...
0
votes
1answer
292 views

Arch-Linux after system-update no internet connection but connection lan

Yesterday I updated my Arch Linux after 2 Months with sudo pacman -Syu and after the reboot I don't get any connection with the Internet neither from Browser nor with Skype, etc. When I try to ping ...
-1
votes
2answers
82 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 ...
0
votes
0answers
109 views

Can't ping another router in my network (OpenWrt)

I'm playing around with OpenWrt and followed this tutorial step by step to set up a mesh network: http://wiki.openwrt.org/doc/howto/mesh.80211s Problem: When I got to the end and ran these two ...
1
vote
2answers
151 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 ...
0
votes
1answer
21 views

dig domain replay SOA

I have a domain and when I use dig jeeja.biz it just gives me my server ip address. ;; ANSWER SECTION: jeeja.biz. 13914 IN A 209.15.212.171 But when I use the same command on another ...
1
vote
1answer
82 views

How to interpret ping output

Since 3 days ago I can not open (from outside Brazil) the site UOL. First I thought it could be off line. But 3 days! It is a very big Internet web site and host. I tried with FF and Google, but ...
1
vote
0answers
483 views

Hostname resolves to wrong IP address

When I ping the hostname of my phone from a RaspberryPi (with Raspbian installed), it resolves to the wrong IP address: pi@raspberrypi ~ $ ping isimon.fritz.box PING isimon.fritz.box ...
1
vote
2answers
327 views

Script to Ping an IP and create a log showing date/time of any fails, times over 500ms, and traceroute any fails [closed]

Like the title says I am trying to make a script to run constantly that produces a log showing ping stats. I want the log to contain and ping fails, times over 500ms and the traceroute of any ...
-1
votes
1answer
160 views

Ping to LAN address takes an incredibly long time?

I'm running CentOS 7 in a lab environment with one domain controller (DC - Windows 2012R2) which serves as a DNS and DHCP server as well. CentOS is joined to the domain; it can ping the DC and a ...
4
votes
1answer
2k views

Ping doesn't work, but I can browse through the internet

Pinging my default gateway is working properly and I can browse google and facebook in my browser. But, ping google.com and ping facebook.com on my terminal are not working. PING google.com ...
2
votes
2answers
128 views

Peculiar issue with ping

I'm using ping from package iputils-ping (3:20121221-4ubuntu1.1) on Ubuntu 14.04. When pinging a host host2.lan with IP 192.168.1.20 that is down initially but comes up during the run of ping, I see ...
1
vote
1answer
710 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 ...
0
votes
1answer
56 views

Ping: Result shows 56(84) instead of what is expected

I'm trying to modify a script to show lost packets as well as ping results. I'm only including the section that isn't working as some of the commands in the script are company specific. for myHost ...
0
votes
1answer
75 views

No buffer space available when using Dummynet in FreeBSD 9.3

I have a peculiar problem - as soon as Dummynet Kernel module is loaded and appropriate ipfw add pipe 1 from localhost to localhost command is issued, I no longer can ping localhost - I receive the ...
4
votes
1answer
237 views

Redirection to file does not work properly

I have here a bash script: #!/bin/bash TARGET_FILE=ping_result.txt # declare the target ip addresses declare -a ips=("XXX.XXX.XXX.XXX" "YYY.YYY.YYY.YYY") function print_and_log() { echo "$1" ...
1
vote
2answers
415 views

Ping a host, check if alive or not, and send result to file via a shell script

To clean out my custom hosts file and remove dead domains on Windows I ping the hosts from domains.txt, and if I get a reply I add that host to result.txt: @echo off >result.txt ( for /f %%i ...
1
vote
0answers
44 views

Prioritize virtual machine bandwidth

I installed a Windows Server 2012 virtual machine (VM Ware Workstation) on my Debian server that I rented (to which I have SSH access only, and which is in another city with over 1 GB bandwidth) to ...
0
votes
2answers
266 views

How can I filter ping results by time?

How do I filter out any pings that are under a certain ms, ie, only echo ping responses above 500ms to the text file? IP=$1 SECONDS_Between_Pings=$2 ping -i $2 $1 | while read pong; do echo $(date) ...
2
votes
2answers
1k views

Running an infinite loop on startup

I'd like to run a command at startup which pings a certain address every 10 minutes and writes the result to a file. I've figured out now how to do the pinging and file writing and the 10 min ...
5
votes
1answer
2k views

Shell command/script to see if a host is alive?

I'm trying to figure out more ways to see if a given host is up, solely using shell commands (primarily bash). Ideally, it would be able to work with both hostnames and IP addresses. Right now the ...
0
votes
2answers
2k 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? ...
0
votes
3answers
8k views

Bash ping script file for checking host availability

I am trying to write a bash script in a file that would, when run start pinging a host until it becomes available, when the host becomes reachable it runs a command and stops executing, i tried ...
0
votes
2answers
350 views

Can't browse Internet in Redhat 7

I installed RHEL 7 using server with GUI with no added option on my local virtualbox, but I cannot get Firefox connected to the Internet. I checked /etc/resolv.conf contains nameserver setting I ...
3
votes
3answers
167 views

For some IPs, ping -c 4 -W 1 ip | cat does not output anything until ping has finished, whereas it does for others

Why do $ ping -c 4 -W 1 127.0.0.1 | cat and $ ping -c 4 -W 1 1.1.1.1 print their output immediately, whereas $ ping -c 4 -W 1 1.1.1.1 | cat prints nothing for four seconds, then prints all ...
0
votes
1answer
107 views

Force ping to write before interrupt

I am trying to get ping to continuously write some times to a file. When I run $ ping 10 10.1.10.28 | perl -ne '/time=(\d+\.\d+)/ && print "$1\n"' It returns one number every several ...
0
votes
1answer
317 views

Received DUP when using ping. What should I do?

I was pinging Google last night and one of them came back as DUP(!). I did some reading and I found this in the man pages on ping(8): Damaged packets are obviously serious cause for alarm and ...
2
votes
1answer
5k views

recvmsg returns 'EAGAIN (Resource temporarily unavailable)'

After a recent server move, we are troubleshooting this wierd issue of one of the server losing n/w connectivity for no apparent reason and regaining the connectivity in a few seconds or minutes. ...