Can ping out but cannot receive

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Can ping out but cannot receive
# 1  
Old 08-19-2018
Can ping out but cannot receive

Hi there,

I am able to ping google.com
However, I am able to see like google.com (172.xx.xx.xx).
When the ping is done, like 5 packet transmitted but zero packet recieved. How do I go about re-mediating it?
# 2  
Old 08-19-2018
What exactly is your problem to be re-mediated?
# 3  
Old 08-19-2018
I am able to test if a particular host is reachable. However, I did not receive a data packet back.
# 4  
Old 08-19-2018
How are you able to tell a "host is reachable" when you do "not receive a data packet back"?
# 5  
Old 08-21-2018
This is a sed control file we use to report no return after doing a ping to a number of remote computers. Run this file after specifying sed -n -f following_code log_of_pings .
Code:
/ ping statistics / {
                    N
                   / 0 packets / {
                        s/^....//
                        s/ .*//
                        p
                      }
                   }

You may have to experiment with the s commands to format the name of your remote computers. The N appends the line following "ping statistics" so it can be checked for "0 packets" while info on the remote computer is on the "same" line (before a line feed).
# 6  
Old 08-21-2018
You are proving that you can lookup the DNS name to give you an IP address and indeed you may be sending packets and requests out from your server, but zero packets received means:-
  • The target IP is not active
  • There is no route to the target IP (you mention google.com but then a 172.x.x.x private address)
  • Your outbound IP tables may filter them out
  • Your network devices may filter them out
  • The target IP may ignore you
  • The target IP may try to respond but your public-facing proxy may filter them out
  • The target IP may try to respond but your internal network devices may filter them out
  • The target IP may try to respond but your inbound IP tables may filter them out

A ping is one type of packet, so it does not guarantee that you will actually be able to hold a conversation with the target address.


What is your eventual intention for which I presume that this is a step? Perhaps there is a better way to be monitoring what it is that you really need.



Kind regards,
Robin
# 7  
Old 08-21-2018
Moderator's Comments:
Mod Comment Thread title changed from "Can ping out but cannot recieved" to "Can ping out but cannot receive" hoping to get better matches on similar thread topics.
This User Gave Thanks to Don Cragun For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Ping test sends mail when ping fails

help with bash script! im am working on this script to make sure my server will stay online, so i made this script.. HOSTS="192.168.138.155" COUNT=4 pingtest(){ for myhost in "$@" do ping -c "$COUNT" "$myhost" &&return 1 done return 0 } if pingtest $HOSTS #100% failed... (4 Replies)
Discussion started by: mort3924
4 Replies

2. Solaris

ZFS receive error

trying to clone a zfs file system on the same system using zfs send -r root/branch@snapshot |zfs receive root/newbranch and get the following error :parent does not exist. How do I fix this? (1 Reply)
Discussion started by: os2mac
1 Replies

3. Shell Programming and Scripting

How to get reason for ping failure using perls Net::Ping->new("icmp");?

Hi I am using perl to ping a list of nodes - with script below : $p = Net::Ping->new("icmp"); if ($p->ping($host,1)){ print "$host is alive.\n"; } else { print "$host is unreacheable.\n"; } $p->close();... (4 Replies)
Discussion started by: tavanagh
4 Replies

4. Shell Programming and Scripting

Notification from another server need to receive.

I have two application server appserver1 and appserver 2. A script will run from appserver1 which main activity is 1. Connect with the apserver 2 and run a script which saved on appserver2 2. the saved script will in appserver 2 will complete its task and generate a log Problem i need to... (0 Replies)
Discussion started by: Imtiaz43
0 Replies

5. UNIX for Dummies Questions & Answers

How to receive mails in unix .....

HI experts, By using mailx command i can send mails to any email id. and my DNS is like oper@xyz.com ..... but if someone replied to the mail sent earlier using mailx command. then how to recieve or view that mail ... Is dre any command to do the same ... Im working on some project and got... (7 Replies)
Discussion started by: ankitknit
7 Replies

6. Shell Programming and Scripting

Animation Ping on Solaris Like Cisco Ping

Hi, I develop simple animation ping script on Solaris Platform. It is like Cisco ping. Examples and source code are below. bash-3.00$ gokcell 152.155.180.8 30 Sending 30 Ping Packets to 152.155.180.8 !!!!!!!!!!!!!.!!!!!!!!!!!!!!!. % 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
1 Replies

7. Programming

Is it possible to receive emails from my computer?

Could someone help me receive emails sent to my ip address with a c program? (5 Replies)
Discussion started by: Errigour
5 Replies

8. Shell Programming and Scripting

how to receive file through connectdirect

Hi All, I have an idea on how to transfer file from one unix server to the other unix server but How do I receive files from unix to unix using connectdirect. Thanks in Advance, (0 Replies)
Discussion started by: HemaV
0 Replies

9. UNIX for Dummies Questions & Answers

Can send but not receive email

Hi, One of the users in our company can send but not receive email. We are using SENDMAIL in conjunction with procmail. The funny thing is that all his sent email is in his /var/spool/mail but the email client does not pick anything up! He is using IMAP. Anyone see have any ideas? (2 Replies)
Discussion started by: mojoman
2 Replies
Login or Register to Ask a Question

Featured Tech Videos