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 08-21-2009, 04:34 PM   #1
allooshy
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Ping from port A to port B on same NIC


Hi,
I have a dual port NIC, and I would like to run ping from port A (eth2) to port B (eth3) on same NIC card, using Linux RH5.3 I run:
ping -I eth2 <eth3-ip>
and I don't receive and pong.
It appears that when an ARP request received on eth3 (I used tcpdump) the system decides not to answer the ARP request, apparently because it's sent from a local IP and it doesn't allow you to "query yourself".

Any ideas how can I make this work? I want to test connectivity between port A and port B (not necessarily ping), how can I do that?

Thanks for your help,
Ali.

Last edited by allooshy; 08-21-2009 at 04:43 PM.
 
Old 08-22-2009, 10:06 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi Ali,

Thats some wierd behavior, just tested it myself... the only thing I noticed was that it was being logged as a martian, maybe there was no response because it thought the packet was spoofed ?

cheers,

kbp
 
Old 08-23-2009, 01:17 AM   #3
allooshy
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks kbp,
Yeah it's odd, I also think it's kind of IP layer security that prevents the ARP modules from answering the ARP request. I tried to disable all security services (firewall, iptables, selinux, sysctl) but didn't succeed to make it work. I even tried to trick the ARP table and set a manual entry for port B so the ping will not initiate ARP request (and will send ICMP echo directly) but the arp table won't let me set an entry of an IP that I own.

Any other ideas?
 
Old 08-23-2009, 08:31 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You could try mucking about with kernel/network tuning stuff in /etc/sysctl.conf, I thought it might have been source routing related. I had a little play but didnt have that much time available, good luck

kbp
 
Old 08-26-2009, 02:06 PM   #5
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
I would suggest using arping and tcpdump/wireshark for this test.
 
Old 08-28-2009, 05:42 AM   #6
allooshy
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
kbp, already tried playing with sysctl, it didn't help.
TimothyEBaldwin, that would work, but I wanted to show a real connection like ping-pong (or other application) rather than sniffing packets on port B.

Thanks guys.
Ali;
 
Old 08-30-2009, 02:33 PM   #7
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
Why?

I think network namespaces can be used to do this.
 
Old 12-02-2009, 10:51 AM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Well?
 
  


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
How to ping a device using port number ? harisudhan Linux - Networking 5 02-08-2012 12:29 PM
What port should I add to firewall to allow ping from client? hsia Linux - Newbie 1 10-28-2008 06:07 AM
how to ping a port khalifah AIX 1 06-09-2005 09:41 AM
Ping port? TheRealDeal Linux - General 4 01-18-2005 11:03 AM
can ping but can't telnet to port 53 msweetnam Linux - Networking 4 01-26-2004 03:01 PM

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

All times are GMT -5. The time now is 08: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