Questions tagged [ping]
A tool commonly used to test the reachability of a given host, either on the internet or in a local network.
464
questions
0
votes
0
answers
10
views
how to test ntp servers as real servers that responding without using ping test
we have bash script that configured the chrony.conf
script check if ping is ok on ntp1 and ntp2 ( ntp servers )
and then script insert the ntp servers to /etc/chrony.conf ( only if ping success )
...
2
votes
1
answer
60
views
Why am I able to ping hostnames defined in ~/.ssh/config?
This isn't a problem I'm trying to solve, but it's something I've been curious about for a while.
I have defined several hostnames in ~/.ssh/config, but not anywhere else. Notably, I have not defined ...
0
votes
1
answer
18
views
Virtualbox NAT network not showing in Linux
I am currently Running a Bare Metal Kali with Virtualbox installed on it to the run Kioptrix Level 1.
I created a NAT network in preferences with the default recommendations.
This did resolve an ...
0
votes
0
answers
15
views
Using exit status for ping command in a script [duplicate]
I have this scipt which should echo on exit status 0 of ping command $HOST is reachable, on exit status 1 $HOST is unreachable and when I insert some non existing URL to HOST variable it should echo $...
0
votes
0
answers
41
views
script ping and traceroute
Creation of a script allowing to record the traces (log) of the ping and traceroute according to a list resulting from a flat file listing the various sites of Reunion and Mayotte.
For the need, it is ...
0
votes
0
answers
20
views
Cannot ping/connect to local ip addresses
I am trying to connect to my server via SSH which did and doesn't work. Then I went onto the server to see if I can ping anything else from the server or if it was something to do with an IP address ...
0
votes
1
answer
26
views
ping echo request interval changes when there is no echo reply
I am pinging server2 (ip:2.2.2.1) from server1 (ip:1.1.1.1) at an interval of 1ms with flooding, using the command:
ping 2.2.2.1 -i 0.001 -f
I am expecting to see ping requests leaving server1 every ...
0
votes
1
answer
45
views
Ping, SSH failed in VM and host machine
In VMware
from Centos to other VM and windows host ->ping and ssh not working(prompt does not say anything,it goes to timeout)
from Centos -> google ping is ok,
from other VM to Centos -> ...
0
votes
0
answers
10
views
Ping on LL IPc4 works only few times
I came across a problem that I don't comprehend. Would someone be so kind to help me understand?
I have Linux embedded devices and PC on the same link. The embedded devices have avahi-daemon and avahi-...
0
votes
1
answer
89
views
ping: option requires an argument -- 'c' and 'usage: ping'
Trying to run the below code, in order to display the the ip address, the number of packets received and transmitted.
#!/bin/bash
interface=$1
ip=$2
packet=$3
if [[ $1 == "-h" ]]
then
...
0
votes
0
answers
15
views
Cannot Ping Virtualbox on MacOs using Mininet VM
I am learning about networks.
I have downloaded the VM and successfully loaded it on virtual box.
When I login and run the ifconfig command, I get the following output:
When I run ping 10.0.2.15 I ...
1
vote
1
answer
46
views
Debian headless server connected to Ethernet interface ~50% packet loss accessing the Internet
I already did a bunch of troubleshooting in the last three days regarding this issue. Here are the tests and the observations I made so far:
Internet connection to my server is dropping constantly (...
0
votes
0
answers
30
views
why ping result get request timed out intermittently
With the same subnet in openstack and on the same hypervisor, only one IP(*.*.65.250) get "Request timed out."(as the Chinese say: "请求超时") by ping intermittently which in the ...
0
votes
0
answers
12
views
Check connexion between two machines from external machine
There are two machine A & B in a network. I can connect to both A and B using SSH and ping them.
I want to monitor the data transfer between A and B by using a ping loop :
My machine (Virtual ...
0
votes
0
answers
31
views
Why cannot ping by using owping?
I am testing one-way ping to measure the delay of the network. In my case, I have a problem. The error shows as follows:
owping: NTP: Status UNSYNC (clock offset issues likely)
owping: NTP: STA_NANO ...
0
votes
2
answers
79
views
How to clean/flush stored ip info for websites?
I am trying to check whether I am connected to internet or not by using shell script.
I think that I can do it by using ping command, since if ping succeed there is an IP info inside parenthesis. If ...
0
votes
1
answer
48
views
Unable to ping DNS server from Guest OS using IPv6
I am able to ping DNS server(2001:4860:4860::8888) from my host machine(Windows) using IPv6, but
I am unable to ping DNS server(2001:4860:4860::8888) from my virtual machine(Windows) using IPv6.
The ...
29
votes
2
answers
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 ...
1
vote
1
answer
160
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
1
answer
33
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 ...
1
vote
2
answers
44
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> ...
0
votes
0
answers
26
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
3
answers
95
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 ...
0
votes
1
answer
168
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
1
answer
41
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
0
answers
13
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
0
answers
56
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 ...
0
votes
3
answers
117
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 ...
2
votes
3
answers
449
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
0
answers
17
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
0
answers
31
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 ...
0
votes
1
answer
71
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 ...
0
votes
0
answers
146
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
0
answers
41
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
1
answer
55
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
2
answers
214
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....
0
votes
1
answer
60
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
0
answers
24
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
0
answers
21
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 ...
3
votes
3
answers
268
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
2
answers
75
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 ...
0
votes
1
answer
151
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 ...
0
votes
3
answers
74
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
1
answer
45
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
1
answer
143
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
0
answers
25
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
1
answer
143
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
0
answers
30
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
0
answers
156
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
1
answer
499
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 ...