Questions tagged [ping]
A tool commonly used to test the reachability of a given host, either on the internet or in a local network.
484
questions
1
vote
0
answers
8
views
Unclear delays pinging over IPsec VPN
What could be the cause if every second ping is delayed for a second when pinging through the host-to-network VPN while at the same time pinging the security gateway outside the VPN takes 13 ms on ...
0
votes
1
answer
21
views
Can't connect to domain listed in /etc/hosts connects via IP
Debian 12/Bookworm headless host
I have a local container running with an IP of 10.88.0.2. I can access the container via IP:
root@dev ~# ping -c2 10.88.0.2
PING 10.88.0.2 (10.88.0.2) 56(84) bytes of ...
1
vote
1
answer
35
views
Check whether a given host can be reached via a given interface (`tun0`, created by OpenVPN)
I have multiple network interfaces on my Linux system. Some physical (eth0 etc), other virtual (tun0 etc, created by OpenVPN).
Is it possible to check whether a given host (IP address) can be reached ...
1
vote
1
answer
135
views
Debugging IPv6 connectivity in fresh Debian 12 installation
Context
I installed Debian 12 in my machine a couple of days ago, and since then I have been facing some issues with (outbound) IPv6 networking. From my investigation so far (having gone through ...
0
votes
1
answer
31
views
Cannot use SSH via internal IP address but can ping it easily
I have this setup in Oracle Cloud Infrastructure ...
I have two networks ..
Network 1:
internal cidr: 192.168.1.0/24
public IP: 10.0.0.1
Network 2:
internal cidr: 192.168.2.0/24
public IP: 10.0.0.2
...
0
votes
0
answers
62
views
ping wsl ubuntu from windows host
I have a Ubuntu instance running through WSL2. I want to ping this instance from the host machine and unfortunately, it fails. However, I can ping from ubuntu to windows.
win: ipconfig returns 192....
0
votes
1
answer
31
views
iptables - forwarding traffic from internal network to external network not working
I'm running almalinux 8 and I've 3 network interfaces attached to my VM
`[root@puppetmaster ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
...
0
votes
0
answers
52
views
Ubuntu 20.04 Server: Cannot Even Ping LUKS-Encrypted Server To Dropbear SSH Unlock It
i'm running an Ubuntu 20.04 server with LUKS full-disk encryption that i'd like to be able to unlock remotely (LAN and WAN). previously, when the device was locked i was still able to ping the device ...
0
votes
2
answers
24
views
Pinging two PCs and trying to capture ICMPs with third PC
I have a setup of three computers that are all on the same subnet and connected to a switch. All services are reachable. I'm pinging from PC(1) to PC(2). Opening tshark with PC(3) but cannot see ...
2
votes
1
answer
124
views
Root network namespace as transit between 2 other net namespaces
I am trying to communicate between two network namespaces that are connected through the root namespaces using veth pairs as seen in the diagram. I am unable to perform a ping from netns A to netns B. ...
1
vote
1
answer
360
views
Monitoring packet loss simulated with tc
I found an interesting article that describes how to simulate network issues (like lost packets) on a linux server.
On an Ubuntu test VM, I checked which interface is used for internet connectivity, ...
1
vote
2
answers
43
views
Copying specific output of traceroute and ping commands into a file
I'm fairly new into Linux, so don't be harsh on me :)
I'm currently sitting under ISP's CGNAT, and the only way I can connect to my home server outside of the network is by accessing it through WAN IP ...
1
vote
1
answer
253
views
Ping from vlan bridge interface fails when specifying interface name, specifying IP address works as expected
Running into an odd issue where pinging from a VLAN interface specifying the IP address works, but when specifying the interface name it does not.
This system is running Rocky Linux 8.5 (4.18.0-348....
1
vote
1
answer
80
views
Why does some line in result of ping include hostname?
PING (ip) 56(84) bytes of data.
64 bytes from (ip): icmp_seq=1 ttl=116 time=22.3 ms
64 bytes from (ip): icmp_seq=1 ttl=116 time=22.3 ms
(hostname) 64 bytes from (ip): icmp_seq=1 ttl=116 time=22.3 ms ...
0
votes
1
answer
117
views
Why Ansible failed to ping instance which I can connect?
I can connect my AWS EC2 instance
ssh -i "pizdform.pem" [email protected]
Last login: Tue Feb 21 12:36:50 2023 from ...
I tried Ansible ping
cat test-project/...
-1
votes
1
answer
40
views
http latency wild variance on localhost
Running on MBP M1 with 10 cores.
Running 1 thread client (wrk) and 1 thread server (java).
A youtube is also running on the system.
Load average 2 out of 10.
Except GC, which could be the reasons of ...
0
votes
1
answer
307
views
Dummy interface is not reachable from other system through ping
I connected two Debian 10 systems with a direct link.
On one of them I defined a dummy interface and on the other I gave a static route to access it. I see the traffic from the sender on the interface,...
0
votes
2
answers
511
views
Linux - Still `No DNS serves known` in /etc/resolv.conf
My resolv.conf in \etc always shows No DNS serves, it's Ubuntu 20.04 LTS on Vmware on a Windows. But my network services are all fine on my Windows, but it always show Tempopary failure in name ...
0
votes
1
answer
330
views
script to ping every second for a set time, pause for a set time, then repeat
Edit: I concluded this question was posted in the wrong place. I posted in a Mac OS specific forum and got an answer right away.
I've found that I will sometimes have internet connectivity problems ...
2
votes
1
answer
103
views
Remove all the strings before and after a certain word in bash
I am using ping to check the connectivity of a network.
What I want is the number of received packets only.
For example if ping -c10 -q 8.8.8.8 | grep received output is:
10 packets transmitted, 5 ...
0
votes
0
answers
28
views
Very small number of icmp echo requests from same source not answered on Linux servers
I have found a very strange behaviour from some of our Linux servers (does not matter if hardware or virtual, exists on both platforms). We have a very fine grained icmp monitoring using the smokeping ...
0
votes
0
answers
37
views
Routed ping response not received
Good afternoon
I have a scenario where I have two ubuntu VMs (VM1 and VM2).
On VM1 I added a route to route all traffic to 10.70.0.1 through VM2.
ip route add <VM2_ip> dev ens3
ip route add 10....
0
votes
0
answers
17
views
ping doesn't outogoing from embedded device
I'm observing a strange behaviour on my embedded device (OS YOCTO) using WiFi meawhile the wired ethernet interface is operating but with cable disconnected and without IP.
I'm working with DHCP
Test:
...
1
vote
0
answers
64
views
nmap is unable to find all android tablets connected to network
nmap is unable to find all android tablets connected to network
There are around 40 tablets connected to the same wifi in 192.168.100.0/24. I used nmap to ping all devices in the subnet and find their ...
0
votes
2
answers
143
views
Ping IPs in a File
I have file contains below data, i am using script to parse and do ping and show output, i am getting some problem with the script, please assist.
File.txt contains below data:
Server ...
1
vote
0
answers
216
views
Minify bash command with arguments
Want to minify bash command using arguments.
I am often checking the internet provider's and other Free and Public DNS Servers with the code below running in tmux, but wondering, how this can be ...
0
votes
1
answer
327
views
ping of address fails
Running on Ubuntu Ubuntu 22.04.1 shortly after an upgrade from 20.04 the command
ping 8.8.8.8
fails and reports 100% packet loss.
What tests would be diagnostic for the cause of this unexpected ...
0
votes
1
answer
601
views
Unique Mac address for Secondary IP address?
Using one Ubuntu machine with one physical NIC, I want to make it seem that there are two or more additional machines on my real network, all controlled by this one Ubuntu machine.
For example, I have ...
-1
votes
1
answer
2k
views
nslookup knows while ping doesn't know; how is this possible?
How is this possible:
% nslookup heartbeat
Server: 192.168.10.1
Address: 192.168.10.1#53
Name: heartbeat.mydomain.local.lan
Address: 192.168.33.6
% ping heartbeat.mydomain.local.lan
ping: ...
0
votes
1
answer
108
views
Pinging Result between A & B KVM guests in same subnet
I have a Ubuntu 20.04 KVM host running with a number of web and application VM guests. Suddenly, there is 1 web proxy server can't be connected.
NOTE: there is a network team to manage the network
I ...
0
votes
0
answers
101
views
macvlan device do not honor smaller mtu than physical device
I have a use case to create multiple MACVLAN devices from the same physical ethernet device. The requirement is also that some MACVLANs could offer jumbo packets (MTU=9215) and some disallow jumbo ...
1
vote
1
answer
2k
views
Why does ping wait 1 second for the next ping?
On Ubuntu 20.04.4 I am running a ping command like
sudo ping -l 2000 -c 200 domain.com
and it does the first 12 pings immediately, but then only 1 ping after the other ping with a delay of 1 second.
...
1
vote
1
answer
471
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 )
...
3
votes
1
answer
181
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
505
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
1
answer
166
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
266
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
1
answer
941
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
...
1
vote
1
answer
234
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
2
answers
124
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
161
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 ...
30
votes
2
answers
3k
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
823
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
51
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 ...
2
votes
2
answers
1k
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
51
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
178
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
1k
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
207
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 ...