Skip to main content

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
1 vote
1 answer
68 views

Connecting two network namespaces over a bridge

I'm trying to make one network namespace to be able to ping another namespace via a bridge. Here are the commands I'm executing: # create two namespaces ip netns add ns0 ip netns add ns1 # create a ...
AhmedWas's user avatar
  • 247
0 votes
0 answers
25 views

Server not responding to ICMP requests

I have 4 servers running on rocky linux at a datacenter in Chicago but one is not answering to ping requests. I have been checking for solutions for day but so far things look good, what I am missing? ...
swissrockie's user avatar
0 votes
0 answers
29 views

How to use secondary IPs as source for a ping request without assigning it on an interface

Summary I have an Ubuntu VM that has a public IP address e.g. 1.1.1.1 assigned to its eth0 interface. upstream router has also routed another public IP subnet e.g 2.2.2.0/256 to server's main IP ...
keva es's user avatar
0 votes
1 answer
87 views

Unable to SSH into remote machine but able to ping - VPNC

I'm writing and posting the solution that I found with a recent issue regarding VScode remote server, ssh and VPNC. Yep, I lost to much time on it, hope to save your time. Issue I had to change VPN ...
Francesco Taioli's user avatar
1 vote
1 answer
94 views

ping output sporadically missing (labeled as wrong unit) in journal of systemd service

I am using ping in a script, which runs in a systemd service unit. The output from ping is sometimes (often) missing in the unit's journal. I.e., it is missing from journalctl --user -u MyUnit. Note ...
dialer's user avatar
  • 143
2 votes
1 answer
254 views

How to disable Ping response (ICMP) in Linux then bring back up?

I'm trying to test the aliveness of some of my services by continuously pinging them to make sure they're up. It checks if 'alive' by pinging the address (192.168.20.1). I've tried disabling it via ...
Andrew Narvaez's user avatar
0 votes
0 answers
36 views

VPN site-to-site client doesn´t get ping reply

I have 4 servers created on OVHcloud, all run Ubuntu 22. They compose simple test network with these IP: Client_A: ens3 - public IP ens4 - 10.200.0.1 Server_B: ens3 - public IP ens4 - ...
user2495545's user avatar
0 votes
0 answers
23 views

Network Connectivity Issue: Unable to Ping two VMs on eth1

I've configured two VMs and assigned them to the eth0 and to the eth1 interface. However, I'm encountering connectivity issues as I'm unable to ping between two VMs using eth1. I've verified the ...
Simon's user avatar
  • 1
0 votes
1 answer
283 views

Unable to ping or ssh into embedded Linux device: eno1 has no IPv4 address

I am trying to ssh into an embedded Linux device (let's call it petalinux) connected to my Ubuntu server running 22.04 (let's call it oip). petalinux and oip are connected by a direct ethernet cable ...
rkshthrmsh's user avatar
0 votes
1 answer
271 views

How to enable a host to reply to multicast ping

I'm experimenting with multicast traffic within my wireless network and tried to ping some pre-defined multicast address: $ ping 224.0.0.251 The ip address of the ping machine is 192.168.0.11. So I ...
Some Name's user avatar
  • 255
1 vote
0 answers
24 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 ...
Juergen's user avatar
  • 684
0 votes
1 answer
58 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 ...
Jeremy Davis's user avatar
1 vote
1 answer
75 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 ...
Blue Nebula's user avatar
1 vote
0 answers
1k 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 ...
cronos2's user avatar
  • 203
0 votes
1 answer
136 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 ...
Mr.P's user avatar
  • 101
0 votes
0 answers
954 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....
Vivere's user avatar
  • 203
0 votes
1 answer
88 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 ...
Vaibhav.c's user avatar
  • 133
0 votes
0 answers
156 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 ...
person's user avatar
  • 1
0 votes
2 answers
30 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 ...
ptiza_v_nebe's user avatar
2 votes
1 answer
366 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. ...
Rahul Raj Purohit's user avatar
1 vote
1 answer
1k 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, ...
BMBM's user avatar
  • 147
1 vote
2 answers
75 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 ...
Le Gharo Tyffler's user avatar
1 vote
1 answer
546 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....
Bob Odenkirk's user avatar
1 vote
1 answer
88 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 ...
Bùi Quang Nam's user avatar
0 votes
2 answers
305 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/...
Richard Rublev's user avatar
-1 votes
1 answer
75 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 ...
NicuMarasoiu's user avatar
0 votes
1 answer
710 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,...
user8178737's user avatar
0 votes
2 answers
665 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 ...
Danhui Xu's user avatar
0 votes
1 answer
911 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 ...
Tony M's user avatar
  • 101
2 votes
1 answer
108 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 ...
Morteza's user avatar
  • 23
1 vote
0 answers
86 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 ...
ning666's user avatar
  • 11
0 votes
2 answers
252 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 ...
anukalps's user avatar
1 vote
0 answers
270 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 ...
eapo's user avatar
  • 121
0 votes
1 answer
419 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 ...
Craig Bourne's user avatar
0 votes
1 answer
844 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 ...
Andrew Campi's user avatar
-1 votes
1 answer
4k 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: ...
Dims's user avatar
  • 3,255
0 votes
1 answer
125 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 ...
Willie S's user avatar
0 votes
0 answers
178 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 ...
Smash's user avatar
  • 101
1 vote
1 answer
3k 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. ...
Alex's user avatar
  • 5,730
1 vote
1 answer
794 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 ) ...
yael's user avatar
  • 13.3k
3 votes
1 answer
256 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 ...
Imitate Spectrum's user avatar
0 votes
1 answer
647 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 ...
PandaVHS's user avatar
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 $...
Adam's user avatar
  • 1
0 votes
1 answer
224 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 ...
user avatar
0 votes
1 answer
353 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 -> ...
fahim hasan's user avatar
0 votes
1 answer
1k 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 ...
Shirke Malvika's user avatar
1 vote
1 answer
306 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 (...
Philippe Champigny's user avatar
0 votes
2 answers
150 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 ...
user avatar
0 votes
1 answer
171 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 ...
Raja Sekhar's user avatar
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 ...
ks1322's user avatar
  • 1,656

1
2 3 4 5
10