Ping from port A to port B on same NIC
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 ARP request your own IP (maybe to avoid packet spoofing).
I tried to disable all security services I know about (firewall, iptables, selinux, sysctl) but didn't succeed to make it work. I also 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/MAC that I own.
Any ideas how can I make this work? I want to show connectivity between port A and port B using standard application (not necessarily ping).