LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2017, 11:52 PM   #1
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Rep: Reputation: Disabled
icmp requset packet send from eth0 and icmp reply packet receive from eth1,why linux ingore it


Click image for larger version

Name:	305.PNG
Views:	31
Size:	23.2 KB
ID:	25941
as the topology ,

i use "ping -I eth1 9.9.9.9 " on JP , and watch tcpdump -i eth0 "icmp && host 9.9.9.9",

tcpdump was able to capture icmp reply packet , but ping was ingoring it .

i have enable net.conf.ipv4.ip_forward=1 and net.conf.ipv4.all.rp_filter=0

any one can tell me what is going on ?

Last edited by gbcbooks; 09-23-2017 at 12:02 AM.
 
Old 09-23-2017, 08:32 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Firewall running?
 
Old 09-25-2017, 12:57 PM   #3
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
firewall was running , but firewall rule did not drop the packet . and i did not find any log about the icmp in the /var/log/kern.log file.
 
Old 09-25-2017, 01:38 PM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Look at your routing table you might find that packets are not traversing the way you think they should.
 
Old 09-25-2017, 04:38 PM   #5
camp0
Member
 
Registered: Dec 2016
Location: Dublin
Distribution: Fedora
Posts: 70

Rep: Reputation: 4
Put your firewall rules and your routing table helps
 
Old 09-26-2017, 08:16 AM   #6
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Using IP addresses from same subnet usually cause that.
If you need more IP from same subnet, use IP alias.
If you need redundancy or throughput by using two cards, use bond.
 
  


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
Is it possible to receive # of ICMP packet more than sendout ICMP packet georgewhr Linux - Networking 1 03-04-2014 09:06 AM
icmp echo received by GTPU tunnel, but when system do icmp reply, wrong! pxgxue Linux - Networking 0 12-07-2012 10:44 AM
Porting C Program to Linux & Problem with Size of ICMP Packet SeymourButts Programming 11 01-15-2010 09:06 AM
ICMP Packet capture SaTaN Programming 1 01-20-2004 12:38 AM
ICMP packet requests Ch@meleon Linux - General 0 11-29-2001 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:39 AM.

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