public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: ARP responses broken!
@ 2001-04-16 21:26 Eric Weigle
  2001-04-17 14:12 ` Broken ARP (was Re: ARP responses broken!) Sampsa Ranta
  2001-04-17 14:19 ` ARP responses broken! Andi Kleen
  0 siblings, 2 replies; 15+ messages in thread
From: Eric Weigle @ 2001-04-16 21:26 UTC (permalink / raw)
  To: Sampsa Ranta, linux-net, linux-kernel, zebra

Hello-

This is a known 'feature' of the Linux kernel, and can help with load sharing
and fault tolerance. However, it can also cause problems (such as when one nic
in a multi-nic machine fails and you don't know right away).

There are three 'solutions' I know of:

  * In recent 2.2 kernels, it was possible to fix this by doing the following as
root: 
        # Start the hiding interface functionality
        echo 1 > /proc/sys/net/ipv4/conf/all/hidden
        # Hide all addresses for this interface
        echo 1 > /proc/sys/net/ipv4/conf/<interface_name>/hidden
    but 2.4 doesn't have that option, for technical reasons.

   * Use 'ifconfig -arp ...' to force an interface not to respond to ARP
requests. Hosts which want to send to that interface may need to manually add
the proper mac address to their ARP tables with 'arp -s'.

   * Use a packet filtering tool (iptables arp filter module, for example) and
just filter the ARP requests and ARP replies so that only the proper set get
through, i.e. when an arp request for the mac address of an interface arrives,
filter out arp replies from all the other interfaces. 

There have been a few threads on this on the linux-kernel mailing list. Search
your favorite archive for them.

-Eric
 
--------------------------------------------
 Eric H. Weigle   CCS-1, RADIANT team
 ehw@lanl.gov     Los Alamos National Lab
 (505) 665-4937   http://home.lanl.gov/ehw/
--------------------------------------------

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: Broken ARP (was Re: ARP responses broken!)
@ 2001-04-18  1:44 Julian Anastasov
  2001-04-18 22:12 ` Sampsa Ranta
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Julian Anastasov @ 2001-04-18  1:44 UTC (permalink / raw)
  To: Sampsa Ranta; +Cc: linux-kernel


	Hello,

Sampsa Ranta wrote:

> The code I used to do the trick at my network was as simple as this,
> in function arp_rcv, the problem is ip_dev_find that does know if there
> are other devices with same IP address.

	I don't think this is your problem. You patch is not correct.
In fact, you implement the same function as in "hidden" but you are
missing some things. Please, read the "hidden" flag description in
the kernel docs. You must solve the case where your ARP probes are sent
always through one device due to your routing (this is out traffic,
yes?). These probes soon or later will cause you problems because
they change the entry in the remote hosts' ARP tables. You so carefully
tried to advertise the address on specific interface and now the other
hosts again talk to one card only.

	who-has 194.29.192.1 tell 194.29.192.38

	and your are dead :)

	So, please try "hidden" before going into more problems with
these patches (I see two in this thread, and I saw so many before).


Regards

--
Julian Anastasov <ja@ssi.bg>


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

end of thread, other threads:[~2001-04-18 23:11 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-16 21:26 ARP responses broken! Eric Weigle
2001-04-17 14:12 ` Broken ARP (was Re: ARP responses broken!) Sampsa Ranta
2001-04-17 15:21   ` Eric Weigle
2001-04-17 15:32     ` dean gaudet
2001-04-17 14:19 ` ARP responses broken! Andi Kleen
2001-04-17 14:53   ` Martin Josefsson
2001-04-17 15:01     ` Andi Kleen
2001-04-17 15:07       ` Martin Josefsson
2001-04-17 16:05         ` Alan Cox
2001-04-17 21:43           ` Rogier Wolff
  -- strict thread matches above, loose matches on Subject: below --
2001-04-18  1:44 Broken ARP (was Re: ARP responses broken!) Julian Anastasov
2001-04-18 22:12 ` Sampsa Ranta
2001-04-18 22:21 ` Sampsa Ranta
2001-04-18 22:34 ` Sampsa Ranta
2001-04-19  2:11   ` Julian Anastasov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox