Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ping]

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

0
votes
1answer
47 views

For veth pair, ping does not recognize interface name and tc qdisc netem does not work

I have Ubuntu 16.04 LTS with hwe kernel 4.13.0-39-generic. I configure the veth pair in the default network namespace as follows: $ sudo ip link add h1-eth0 type veth peer name h2-eth0 $ sudo ip ...
0
votes
1answer
26 views

From server cannot ping server itself by its hostname while can ping by its IP

I host an ubuntu server at a data center and worked well for years till last night the server can not ping itself by host name. No config has been changed. Here are what it can/can not do now. From ...
2
votes
0answers
35 views

name resolves doesn't work in chroot for users, but does for root

I've booted a live-cd in order to download, compile and install a few packages on a otherwise working system without actually booting said system. I've created a build user on the system by issuing ...
-7
votes
0answers
46 views

In what cases, can ping receive response when the IP address is not assigned to a network interface?

Is ping supposed to test if an IP address has been assigned to a network interface and if the network interface is reacheable? Stephen replies at Why is some virtual network interface assigned ...
0
votes
1answer
63 views

Why specify packet size during ping test?

Does it make a difference to specify packet size during ping tests (RedHat)? Engineers in my company asked for ping checks with packet size of 2000 bytes (-s 2000). On certain systems, this fails, ...
0
votes
2answers
53 views

How to print multiple values from a file? [closed]

#!/bin/bash COUNT=100 SIZE=100 INTERVAL=0.2 for myHost in `cat /files0/home/singhtr/input` do echo $myHost ping -i $INTERVAL -q -n -s $SIZE -c $COUNT $myHost|grep -i packet done The input ...
0
votes
1answer
28 views

Perpetually ping 3 devices from startup [duplicate]

I wish to ping three local devices, every 5 min, without stopping, from a Raspberry Pi running Raspbian OS. When my Pi powers on, I want that to automatically start. I saw an old post about it, ...
3
votes
1answer
108 views

Ping not working in a new C container

I've been working on writing my own Linux container from scratch in C. I've borrowed code from several places and put up a basic version with namespaces & cgroups. Basically, I clone a new ...
0
votes
0answers
138 views

How to find jitter?

I'm looking for a way to find the jitter using bash commands. I know I can use ping <Server Address> to find the latency, and then by calculating the delta between the packets I can find the ...
1
vote
1answer
40 views

hping3 reports higher latency than ping

I'm just checking the network latency with different tools e.g. with hping3: sudo hping3 -A -n -p 80 www.google.ro HPING www.google.ro (ppp0 172.217.20.3): A set, 40 headers + 0 data bytes len=40 ...
1
vote
1answer
41 views

ping: network unreachble although I have an IP through DHCP [closed]

I am about to install Archlinux on a root server via VNC. For installation Archlinux needs an internet connection. If I run ip addr it seems to me that I get an IPv6 address via DHCP (every reboot it'...
6
votes
2answers
395 views

'ping' uses localhost instead of public IP address

Let's say my server has IP address 11.22.33.44 and hostname server1.mydomain.com. When I ping server1.mydomain.com, it looks as if ping is actually using the public IP address: # ping server1....
0
votes
1answer
230 views

How to Disable Ping ( TCP ) in Linux all the time? [closed]

I want to disable ping response all the time. I use the following command for disable ICMP ping iptables -A INPUT -p icmp --icmp-type echo-request -j DROP what should I do for disable TCP ping ?
1
vote
2answers
412 views

Script for checking if device is online, if not then do something

I'm building an IP Camera Server for rtsp ffmpeg capture and 24/7 purposes. Only thing that is missing is a script that checks connectivity of the camera and if it's not reachable there should be ...
1
vote
1answer
151 views

Ping - big packet size problems

I have some problems with pinging hosts with big packet size. I'm doing some research on latency between one configuration and another. I have written bash/zsh script to make it simpler that pings 8....
1
vote
0answers
354 views

iscsiadm: cannot make connection to <IP>: No route to host

when I try iscsiadm discovery: iscsiadm -m discovery -t sendtargets -p <IP> I get this error: iscsiadm: cannot make connection to <IP>: No route to host however, I can ping the IP fine....
0
votes
1answer
73 views

Ping responses missing but can see them in tcpdump

Redhat 2.6.32-754.el6.x86_64 I have an FPGA card acting as a NIC with an associated driver. On my RH host, if I run ping through the FPGA NIC I see lots of missing responses. However, if I also run ...
0
votes
1answer
330 views

No internet connection in chroot environment (customizing iso)

I want to customize a Ubuntu Desktop Iso and I have come that far, that I am in the chroot environment. The problem is that I do not have Internet access in there to install anything. I just can ...
0
votes
1answer
19 views

Exclude interface when send ICMP ping

for build small linux application I need to check the internet connectivity of the system. But my box have multiple network interfaces with interfaced for backup internet connection. I need to do some ...
0
votes
1answer
45 views

outputting 2 positions from same file into script and then echo

I have a file which looks like this: Sender Bob IP 10.1.1.1 Sender Alex IP 10.1.1.2 Sender Jim IP 10.1.1.3 10 lines like this in same format. I need to echo Name and IP. While iterating through my ...
1
vote
1answer
158 views

Ping to any ip does not work on ppp0 from USB 3G modem Huawei using wvdial

I have a Debian OS on a Banana pi and I use a Huawei 3G modem to connect to the internet from it using the wvdial tool. I also have the usb-modeswitch installed and I think the modem is working as a ...
0
votes
1answer
200 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
1answer
44 views

linux & identify the interface name on remote machine

lets say I want to ping to some machine as from my machine - moon ping -c 1 master01 now I want to understand what is the interface name in master01 machine that get the packet from ping so how we ...
0
votes
1answer
118 views

Can't access internal network but Internet

I have a strange problem with one Ubuntu-system in my network. As well as some other Linux-boxes it is located in an internal network in IP range 192.168.1.x with full access to all other systems in ...
0
votes
2answers
508 views

Ping : Name or service not known

So i am creating this bash script but it is giving me an error that ** name or service not known .** The code is : #!/bin/bash if [ "$1" == "" ] then echo "Hello" echo "Bye" else for x in 'seq 1 254'...
2
votes
1answer
714 views

Trying to ping IP of one VM from another VM: Destination Host Unreachable

I have 2 VMs. One acts as a client and the other acts as a server. For the server VM, I set an IP address like this: sudo ifconfig enp0s8 192.168.0.73/24 up And for the client VM, I set the IP ...
1
vote
1answer
106 views

I want allow user to execute *only* ping utility using SELinux

I did it already with rbash (restricted bash) but now I want to use SELinux. So I created new user and add him to guest_u: semanage login -a -s guest_u restricteduser also I forbid him to execute ...
0
votes
1answer
30 views

interpreting the overall time in ping results [closed]

I have two different machines I am doing pings on. The hosts setup of the machine (OS, installed software, etc.) are identical. The only difference is they are in two different networks. These ...
0
votes
1answer
75 views

Does ping omit iptables / postrouting rules

I have a server with a proxmox installation and only 1 outbound connection (eth0). To make the machines network between each other I created a network bridge (vmbr0) in the interfaces configuration ...
-1
votes
1answer
253 views

What is the relation between test results of ping and telnet?

Is it correct that if ping host fails, telnet host port will fail too. But not vice versa. i.e. if telnet host port succeeds, ping host will succeed too. But not vice versa. Thanks.
0
votes
1answer
168 views

Does `ping` connect to a ICMP server?

ping - send ICMP ECHO_REQUEST to network hosts when I run ping host in terminal, is ping a ICMP client? Does ping connect to a ICMP server running on host? What is the program which is the ICMP ...
-1
votes
2answers
48 views

server stuck at the boot process:RECEIVED SIGTERM

The issue is when I try to log in the server using SSh , it's not responding and cannot be pinged. And when I go to the console and reboot the server, its stuck in the reboot process. How Can this ...
-2
votes
1answer
93 views

Using the ping command on my VirtualBox Debian System returns no route but I can still connect to websites

For further clarification, I'm using a bridged adapter on VirtualBox and it's set to allow VMs (it is also using the correct adapter). This is what the terminal responds with after running the ...
0
votes
2answers
43 views

How to specify nmap to add redirect address?

I'm trying to ping the health of VM's using nmap utility. # nmap -v -n -sP 192.168.102.116 Host 192.168.102.116 appears to be down. Note: Host seems down. If it is really up, but blocking our ping ...
2
votes
3answers
3k views

Continuous ping loop in script

I am working on some custom Openwrt compilation. Some of my scripts do ping for testing connection before doing their stuff. if [ "$(ping -c 1 -w 3 8.8.8.8)" ]; then do stuff; else echo "no ...
-1
votes
4answers
45 views

Is there a ping-like program that will return false when a packet is lost?

I'm trying to diagnose network instability on my home LAN -- I'm losing connectivity between my router and my cable modem. In my shell script, I'd like to ping the first ip address past the modem, and ...
3
votes
1answer
70 views

How to change `ping from` value when pinging Linux server?

Content of hostname file in my server is: # cat /etc/hostname sub.mysite.com But when I ping my CentOS 7 server it says: # ping sub.mysite.com 64 bytes from sub ... Even: # ping ns1.mysite.com ...
1
vote
2answers
1k views

How to do a ping test through a non default routing table?

I have a Linux box acting as a router for my home network. it has 3 routing tables: # ip route show default default via 192.168.5.1 dev wlp2s0 172.18.231.140/30 dev wwx0c5b8f279a64 proto kernel ...
4
votes
1answer
759 views

ping command always returns zero exit code in cygwin

I just noticed the ping command always returns zero exit code in cygwin. I installed it as a package ping. Actual output: $ ping 192.168.0.102 -c 1 PING 192.168.0.102 (192.168.0.102): 0 data bytes ...
2
votes
1answer
52 views

Remote host pingable from Mac but not from Virtualbox VM

I have a remote that I can ping from my macbook's terminal. But when I start my VirtualBox Ubuntu 16.04 VM and ping the same remote host, its not pingable and I get an error saying "Destination Host ...
1
vote
1answer
2k views

I need to ping a list of ip addresses from a file and log the status as “up” or “down”

I am needing to ping a list of host addresses (non-sequential) and log the output as "up" or "down". I've got a start but my script seems faulty. For example. when i run the following script ...
0
votes
0answers
271 views

Script to check server status from polybar

I'm currently running Arch with i3 and polybar. I also maintain 6 servers, so to make my life easier I made a series of shell scripts to notify me if a server is down. The scripts work, but it's far ...
0
votes
2answers
41 views

ping over wlanX when X is unknown

I've been running a bash script which updates the hosts table and tests a connection to a specific host. It runs successfully on a number of machines. Along the way, it checks communication with a ...
1
vote
2answers
1k views

Create shell script to ssh inside remote host and ping from that host

I want to ssh into a remote host and ping another IP from that host. However, with the following script, I am only able to ssh into that host. #!/bin/sh sshpass -p <password> ssh -t -o ...
0
votes
0answers
137 views

Why ping hop dest doesn't work?

Why this would work in linux : ping -I ens3 8.8.8.8 and not ping 192.168.5.1 8.8.8.8 where 192.168.5.1 is the default gateway and so the next hop? In place I have a permission denied: attempting raw ...
0
votes
1answer
52 views

Can't ping 2 machines through a switch

2 machines are connected through a switch. I have configured static IPs for both of them. Machine 1 is 192.168.0.3, whereas machine 2 is 192.168.0.5. Both have 255.255.255.0 for netmask address. I ...
1
vote
1answer
326 views

How to route traffic over specific interface on linux (debian)?

I would like to route traffic over usb0 (a cellular modem) when it is available instead of eth0. The ip address for usb0 may change over time. How do I create a route in this scenario since the ip ...
1
vote
1answer
246 views

Suppress “Name or service not known” on ping

I have several Raspberry Pi's named numerically (pi0, pi1, etc). They have static IP addresses, but I wanted a simple tool to check on them and make sure they were online even if they got the wrong IP ...
0
votes
0answers
440 views

IPv6 forwarding doesn't work

I have three Virtual Machines: A, B, C. Machine A and Machine C connected to each other through the B. Their config: A's IP: 2000::ffff:50a:b0b/120 C's IP: 2000::ffff:50a:d0d/120 Machine B has ...
0
votes
1answer
281 views

Cannot Ping Site but DNS Resolves

I am using DNS-crypt proxy as a local DNS server with cloudflare as the resolver. For some reason I cannot ping www.automaticwebforms.com despite the DNS resolving: ping $ ping www....