LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-20-2011, 11:53 AM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
Ping not answering (Debian)


Hi,
two computers connected directly to each other.
HOST A: 192.168.1.1/24
HOST B: 192.168.1.2/24

Host A can ping and receive answer from host B.

BUT, when host B tries to ping host A, host A does not send an answer to host B.

tcpdump from host A:
Code:
13:44:57.788200 arp who-has 192.168.1.187 tell 192.168.1.1
13:44:57.968215 arp who-has 192.168.1.101 tell 192.168.1.1
13:44:57.986220 IP 192.168.1.2 > 192.168.1.1: ICMP echo request, id 2832, seq 3, length 64
13:44:58.392238 arp who-has 192.168.1.102 tell 192.168.1.1
13:44:58.628252 arp who-has 192.168.1.3 tell 192.168.1.1
There's no firewall actived.

What can be happening?

regards,
 
Old 05-20-2011, 04:05 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
"Host A can ping and receive answer from host B."

This proves that the connection was OK. You didn't need to do anything else. Ping is send and receive.

It has to be some firewall issue or port or other issue on one of them. I guess in a real world a switch or router could block it too.
Ping is a poor choice to use.
 
Old 05-20-2011, 04:44 PM   #3
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
thanks!
The problem was about iptables firewall related to postrouting and nat.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
[SOLVED] Cannot access/ping Debian. DebianHelp Linux - Newbie 6 11-28-2010 09:38 PM
Debian 5 , after SysCp Installation and configure Ping Valure ( ping: unknown host ) brenner23 Linux - Networking 1 07-14-2010 09:01 PM
ping debian on hostname mr_andersen Linux - Networking 2 04-02-2010 03:20 PM
HLDS on Debian = Ping Timeouts volvodriver Linux - Games 2 04-09-2004 08:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration