netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ARP problem?
@ 2002-10-16 22:54 Thompson, Ian
  2002-10-16 23:06 ` Ben Greear
  2002-10-17  9:24 ` Julian Anastasov
  0 siblings, 2 replies; 5+ messages in thread
From: Thompson, Ian @ 2002-10-16 22:54 UTC (permalink / raw)
  To: 'netdev@oss.sgi.com'


Hi,

I'm seeing some odd behavior in RedHat 7.3 when handling ARP packets.  I
have two Intel NIC cards, eth0 and eth1, in one machine, connected to the
same switch.  eth0 is set to IP0 and has MAC addr M0, and eth1 is at IP1 and
MAC M1.  Now, if another machine connected to the switch sends an ARP
broadcast asking who is at IP0, I see two replies on the wire -- IP0 is at
M0, and IP0 is at M1.  This result seems contradictory to me; could it be
some sort of feature that I'm not aware of?  If so, can I disable it?

I am trying to devlop some code to support an active failover case, so I
want two seperate devices on the same physical network.  I have seen the
same result even if IP0 and IP1 are on different subnets, or even if one is
a class A and the other is a class C address.  

I'm sorry if this has already been discussed -- I haven't seen much relating
to it in the archives.

TIA,
-ian

---
Ian Thompson               Firmware Engineer
Adaptec, Inc               Storage Networking Group
408.957.4909               408.957.6800 (fax)
ian_thompson@adaptec.com

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: ARP problem?
@ 2002-10-16 23:17 Thompson, Ian
  2002-10-16 23:56 ` Ben Greear
  0 siblings, 1 reply; 5+ messages in thread
From: Thompson, Ian @ 2002-10-16 23:17 UTC (permalink / raw)
  To: 'Ben Greear'; +Cc: 'netdev@oss.sgi.com'

> 
> You need arp-filtering:
> 
>      # Set up arp-filter magic.  This, with source-based 
> routing allows us
>      # to have multiple NICs on the same subnet, on the same 
> machine, connected
>      # to the same switch...
>      if [ -f  /proc/sys/net/ipv4/conf/all/arp_filter ];
>      then
> 	echo 1 > /proc/sys/net/ipv4/conf/all/arp_filter
>      else
> 	echo "ERROR: kernel does not support arp_filter.  Don't 
> put more than"
> 	echo "       one interface on the same subnet on the 
> same machine."
> 	echo ""
>      fi
> 

I tried this, and now I'm getting only one ARP response.  However, I get the
same MAC address for ARP broadcasts for either IP address.  Does ARP
filtering turn off all but the first interface when processing ARP packets?
Can I get each interface to answer ARP packets only for its specific IP
address?

Thanks,
-ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-17  9:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-16 22:54 ARP problem? Thompson, Ian
2002-10-16 23:06 ` Ben Greear
2002-10-17  9:24 ` Julian Anastasov
  -- strict thread matches above, loose matches on Subject: below --
2002-10-16 23:17 Thompson, Ian
2002-10-16 23:56 ` Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).