Questions tagged [ping]

A tool commonly used to test the reachability of a given host, either on the internet or in a local network.

Filter by
Sorted by
Tagged with
25
votes
2answers
2k views

Why does 'ping' not output a summary when redirecting output?

I can ping google.com for several seconds and when I press Ctrl + C, a brief summary is displayed at the bottom: $ ping google.com PING google.com (74.125.131.113) 56(84) bytes of data. 64 bytes from ...
4
votes
5answers
7k views

display the missing icmp_seq count | ping command

I am looking for something which shows me the missing ICMP package when running ping command or which can display failed in the output. Example below Current output where we are missing the icmp_seq ...
1
vote
1answer
38 views

Can browse internet, but ping doesn't work

I have an old laptop with Arch Linux installed on it, which I just started up for the first time in a few years. I have NetworkManager installed on it, which can seemingly connect fine to wired and ...
0
votes
1answer
28 views

Is There a Ping Etiquette for Checking Connections

I use two Raspberry Pis to feed four separate flight tracking sites. These RPis are setup to ping my wireless router first, then Google twice an hour just to ensure that they have a connection. If ...
0
votes
2answers
25 views

How I can send ping to IPv4 address from IPv6

I have a CentOS server that only has IPv6 address. I want to send a ping to an IPv4 address with the ping Linux command. Is this possible? [root@test conf.d]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> ...
7
votes
3answers
6k 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. ...
0
votes
3answers
5k views

Create bash script for ping

Good evening I would need a script in bash that follows this command: ping -c 4 -i "IP" for 3 times. Each ping must be performed at a distance of 10 minutes and only when it fails all 3 times, it send ...
2
votes
1answer
3k views

cannot ping website but can ping ip, DNS not working

I am using an ARM target running Open Embedded Linux from Yocto, it has eth0 network interface from a private LAN network. I am able to ping an IP like 173.203.44.122 but using the name(rackspace....
0
votes
0answers
20 views

Routing to a specific IP-Address fails while network is fine

This is my first post to Stackexchange so if it lacks any neccessary information I can add this after posting. My problem is that I am trying to reach the api of riot games. I have a Debian-...
0
votes
2answers
3k views

Arch Linux install: wlan0 is up but not connecting to Wi-Fi

I'm trying to install Arch Linux on a Lenovo Harman/Kardon IdeaCentre, and I can't start a working internet connection. $ ping archlinux.org ping: archlinux.org: Name or service not known $ ping 8.8.8....
0
votes
2answers
70 views

Bash AWK or IF statements

I am trying to make a script that checks a variable for a number then produce an output. I.e using ping and based on the tty, check if its running Linux or Windows. I might be over complicating things ...
1
vote
2answers
1k 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
29 views

Duration of host unreachable by ping

Suppose I am pinging an IP and the destination is reachable. I did some change in the network so for a few seconds the destination was unreachable. After few seconds it comes live again. Is there any ...
0
votes
1answer
63 views

ping: connect network is unreacheble arch linux

I'm new to arch linux I haven't installed Arch yet, but that's my problem. When I run ping 1.1.1.1 or ping 8.8.8.8, I get an error... The following error appears: ping: connect: Network is unreachable ...
0
votes
2answers
2k 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-...
0
votes
3answers
53 views

How to create Ethernet interface at a specific IP address that I can ping and force to sometimes reply and sometimes not?

I'd like to do some experiments to test the ping and fping commands (see: Equivalent of `ping -o` on Linux), but I need a local virtual Ethernet interface to test this. I'd like to have a scenario ...
0
votes
0answers
10 views

fping Dynamic Host List?

How can I dynamically update the list of hosts fping should ping, as the process runs in looping mode ? I see it accepts a list from a file or stdin, but this is only read once on process start ? My ...
0
votes
0answers
37 views

ping Minimum Interval?

No, not the 0.2s available to unprivileged users. What is the minimum interval that ping (from iputils s20190709) supports? I asked it to : ping -s 18 -W 2 -w 300 -qOni 0.000024 ... but it seems to ...
2
votes
3answers
267 views

Equivalent of `ping -o` on Linux

Apparently MacOs's ping has a -o option which means "return once the first successful response is received" or something like that. See: https://stackoverflow.com/a/6119327/4561887. Is there ...
0
votes
0answers
14 views

Can't ping ubuntu server after completely booted

So I have turned my old notebook to a home server. Connected to the network by wifi. I have accomplished that the server connects automaticly to the router and it can access the web. The connections ...
0
votes
0answers
27 views

Is there anything one can do if traceroute shows issues along the path?

Since few days I cannot reach anymore a site: assist.zoho.com (or assist.zoho.eu). Here the output of traceroute: $ traceroute -I assist.zoho.com traceroute to assist.zoho.com (136.143.191.95), 30 ...
1
vote
1answer
3k views

ping to IP address works but ping to domain name not working

EDIT: I have 2 machine setup, Machine A only has internet connection, Machine B ens192 interface connects directly with Machine A interface ens192. So configured iptables in MachineA to make sure ...
0
votes
1answer
42 views

Ping is slow even when a server has enough bandwidth

Hello stackoverflow community, I'd like to get help to understand what causes ping to be slow (This is copied from Stackoverflow following to an advice I've got there) context I have two linux ...
2
votes
1answer
2k views

not able to ping through ssh tunnel device

I am trying to create an ssh VPN (through port 443) to bypass NAT and filtering. I am using this tutorial. The OS is Debian testing on both sides. The tunnel devices are created on both sides, and ...
0
votes
0answers
76 views

Ping not working while curl working

I'm on a Ubuntu Xenial VM and I'm bugged by this phenomenon: ping doesn't work, even on an IP address (100% packets loss) all commands that do remote connections like git, pip or curl do work ...
0
votes
0answers
39 views

cannot suddenly ping to a certain host even though it worked before and it works vise versa

I cannot ping only to a one certain host $B from an only certain host $A, even though it worked before. [A] ping $B --> destination host unreachable [B] ping $A works. [C] ping $B works. [A] ...
0
votes
2answers
4k views

Unable to SSH but able to ping it

I am using Ubuntu 16.04. The problem is I am able to SSH other machines from my system but I am unable to SSH my system from another machine. However, I am able to ping my system from other machines. ...
0
votes
1answer
4k views

ping from a vlan-device got Destination Host Unreachable

I up a vlan device eth0.100 as 192.168.1.100. The eth0 have address 10.137.16.108 It looks work good when I ping with address. $ ping 10.137.16.108 -I 192.168.1.1 PING 10.137.16.108 (10.137.16.108) ...
10
votes
2answers
44k 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 ...
6
votes
6answers
10k 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 ...
0
votes
1answer
52 views

How does ping command work internally

I have Ubuntu 18.04 and two network interfaces (eth0 & wlan0) attached to it. So, I have effectively two LAN's (say LAN1 and LAN2) When I fire a ping command simply like ping followed by some IPv4/...
0
votes
2answers
109 views

How to identify unknown devices in traceroute or ping

In attempting to troubleshoot a failed ping from the Windows host to the IP address of one Linux guest virtual machine (192.168.1.19), I did a traceroute: $ traceroute 192.168.1.19 traceroute to 192....
7
votes
4answers
2k views

Is there an ICMP echo request service?

Often, in applications that I develop, I like to include a network status indicator for various devices on the network. The easiest way to monitor these devices is by pinging them. But ICMP echoes are ...
2
votes
2answers
4k views

Ping hosts based on filter and return dead or alive

I am trying to create a script that is capable of pinging multiple hosts from a text file in my directory. The hosts are with specific naming conventions and are grouped. E.g in the text fie 10.10.10....
0
votes
1answer
38 views

Why don't I find ping process in ps list?

Why can't I see the 'ping' process in my 'ps' listing when I started it as a regular user? The ping binary has setuid bit, ls -l /bin/ping -rwsr-xr-x 1 root root 64424 jun 28 2019 /bin/ping Running ...
0
votes
2answers
62 views

can‘t ping the ip addr after send a wget request

I am facing a problem while try to visit a remote website address. Please help me out. first.everything is ok. second.send a wget request.and recive "Connection reset by peer" then.ping not ...
3
votes
3answers
244 views

Ping from Linux distros = 20s, ping from Windows/Android = instant. Why?

I'm hoping this will be an interesting problem for Linux networking aficionados. In summary, I have a new broadband modem/router connected to an ISP offering a 40Mbit/s bandwidth. However, the initial ...
0
votes
0answers
11 views

Configure virtual LAN with Subnet-Router anycast address to debug ping bug

I'd like to debug bug in ping from iputils where pinging the Subnet-Router anycast address is broken in certain versions. How to configure such VLAN to debug the problem?
0
votes
0answers
18 views

How to tell nmap to give up on target quickly, but not for port scan?

I'm scanning a host: nmap 192.168.0.100 And if that host is down, I don't want nmap to wait for long - I want nmap to give up quickly. So I found --host-timeout in the manpage. However, that ...
0
votes
1answer
66 views

I can't ping websites. I can ping ip address

I can't seem to ping websites. ping google.com PING google.com(lax17s50-in-x0e.1e100.net (2607:f8b0:4007:815::200e)) 56 data bytes here I can nslookup no problem. nslookup google.com ...
1
vote
1answer
2k views

ping6: 'Name or service not known' when using %iface notation

From man ping: -I interface interface is either an address, or an interface name. If interface is an address, it sets source address to specified interface address. If interface in an interface ...
0
votes
3answers
54 views

common intranet service to reflect IP address

how can I get my apparent intranet IP Address (i.e. my VPN address) using a common service or hack within the intranet? A useful Internet service is http://ifconfig.me which reflects the apparent ...
0
votes
1answer
27 views

Can't connect to Ubuntu server from a specific client

I'm having problems pinging my local Ubuntu server (20.04.3 LTS) using my Windows machine. Sometimes it works, but most of the times it returns: Reply from <client ip>: Destination host ...
0
votes
1answer
100 views

ping gateway every 60 secs and save it to a log file including date and time [closed]

I want to set a ping command in Linux which has a 60 secs interval and save it to a log file including the date and time. I can run the ping command with intervals and save it to the log file, but I ...
1
vote
0answers
22 views

Consistent missing packet only when flood pinging

I've been having one packet consistently dropping when initiating a flood ping in ubuntu I'll toss out that one with 2 dropped packets as randomness, is there something going on here within the ...
0
votes
1answer
97 views

How do I get nmap to list all devices connected to my ATT wifi?

Using Ubuntu, I attempted to list all devices connected to my wifi with $ sudo nmap -sn 192.168.1.83/24 Starting Nmap 7.80 ( https://nmap.org ) at 2021-08-19 10:35 CDT Nmap scan report for amazon-...
0
votes
0answers
28 views

ICMP replies captured but not considered by ping

There is a host with a tunnel interface tunint1 with an assigned IP address. When I'm trying to ping via this interface I cannot see any replies but there are ICMP packets (both requests and replies), ...
0
votes
1answer
283 views

Speed up API Post requests than curl?

I am trying to make API post requests of JSON to a web server. This task needs to be asynchronous with least overhead. I am currently using CURL with infinite looping in bash and used '&' to make ...
0
votes
0answers
85 views

Asynchronous json post requests with cURL, minimize overhead?

I think my method to make asynchronous post requests to API endpoint has some overhead. From stackoverflow I learned that libcurl is an alternative way but I am not familiar with libcurl and that with ...
0
votes
0answers
41 views

SELinux: command output printed on serial but not on ssh

I am trying to configure SELinux on Poky Linux distro. I am connecting to the board both on serial and ssh. Launching ping and ifconfig on ssh the board prints nothing, whereas the same command on ...

1
2 3 4 5
9