public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: ARP responses broken!
@ 2001-04-17 18:25 Sam.Bingner
  0 siblings, 0 replies; 17+ messages in thread
From: Sam.Bingner @ 2001-04-17 18:25 UTC (permalink / raw)
  To: cfriesen, sampsa; +Cc: linux-kernel, linux-net

Correction, that was on kernel v2.2.19

Sam

****** Forwarded Message Follows *******
>To: "'Christopher Friesen'" <cfriesen@nortelnetworks.com>,   Sampsa Ranta	

<sampsa@netsonic.fi>
>From: "Bingner Sam J. Contractor RSIS" <Sam.Bingner@hickam.af.mil>
>Date: Tue, 17 Apr 2001 18:07:41 -0000
>
>I tested this with kernel version 2.2.18 and arp_filter appeared to be
>broken... I enabled it for /proc/sys/net/ipv4/conf/all/arp_filter,
>/proc/sys/net/ipv4/conf/eth0/arp_filter and
>/proc/sys/net/ipv4/conf/eth1/arp_filter and it did not change the arp
>behavior at all.  I enabled hidden and it worked, is there a know problem
>with this functionality?
>
>	Sam Bingner
>	PACAF CSS/SCHE
>	Contractor RSIS
>	DSN	315 449-7889
>	COMM	808 449-7889
>

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: ARP responses broken!
@ 2001-04-18  1:05 Julian Anastasov
  2001-04-18 22:02 ` Sampsa Ranta
  0 siblings, 1 reply; 17+ messages in thread
From: Julian Anastasov @ 2001-04-18  1:05 UTC (permalink / raw)
  To: Sampsa Ranta; +Cc: linux-kernel


	Hello,

Sampsa Ranta wrote:

> 23:38:25.278848 > arp who-has 194.29.192.38 tell 194.29.192.10 (0:50:da:82:ae:9f)
> 23:38:25.278988 < arp reply 194.29.192.38 is-at 0:1:2:dc:d2:64 (0:50:da:82:ae:9f)
> 23:38:25.279009 < arp reply 194.29.192.38 is-at 0:1:2:dc:d2:6c (0:50:da:82:ae:9f)
>
> The second one is the valid one, but both interfaces seem to answer to the
> broadcasted packet with their own ARP addresses.

	arp_filter is not broken, it is simply not for your setup.
It depends what you want to achieve by defining two IP addresses in
different interfaces. Considering the fact you have two addresses
in one subnet you need the incoming traffic to come from the two
interfaces. In this case you need "hidden". For the outgoing traffic:
it is controlled only from the routing.

	While in your setup arp_filter and rp_filter will ARP answer
from one card only, for the both addresses, hidden will answer from the
both cards, "correctly" in your eyes. Use arp_filter for different
nets only, i.e. when the ARP probes come from different nets in your
routing universe. hidden does not depend on nets/subnets. But may
be there are exceptions I'm missing and the other guys can correct me.

Regards

--
Julian Anastasov <ja@ssi.bg>


^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: ARP responses broken!
@ 2001-04-17 18:07 Bingner Sam J. Contractor RSIS
  0 siblings, 0 replies; 17+ messages in thread
From: Bingner Sam J. Contractor RSIS @ 2001-04-17 18:07 UTC (permalink / raw)
  To: 'Christopher Friesen', Sampsa Ranta; +Cc: linux-net, linux-kernel

I tested this with kernel version 2.2.18 and arp_filter appeared to be
broken... I enabled it for /proc/sys/net/ipv4/conf/all/arp_filter,
/proc/sys/net/ipv4/conf/eth0/arp_filter and
/proc/sys/net/ipv4/conf/eth1/arp_filter and it did not change the arp
behavior at all.  I enabled hidden and it worked, is there a know problem
with this functionality?

	Sam Bingner
	PACAF CSS/SCHE
	Contractor RSIS
	DSN	315 449-7889
	COMM	808 449-7889


-----Original Message-----
From: Christopher Friesen [mailto:cfriesen@nortelnetworks.com]
Sent: Tuesday, April 17, 2001 4:25 AM
To: Sampsa Ranta
Cc: linux-net; linux-kernel
Subject: Re: ARP responses broken!


Sampsa Ranta wrote:

> I have two interfaces that share same subnet, I call eth0 194.29.192.37
> and eth1 194.29.192.38. I have forwarding turned on, proxy arp is not
> neighter are redirects.
> 
> When I flush local neighbor table in other machine I use to observe the
> response and ping the router I get response like:
> 
> 23:38:25.278848 > arp who-has 194.29.192.38 tell 194.29.192.10
(0:50:da:82:ae:9f)
> 23:38:25.278988 < arp reply 194.29.192.38 is-at 0:1:2:dc:d2:64
(0:50:da:82:ae:9f)
> 23:38:25.279009 < arp reply 194.29.192.38 is-at 0:1:2:dc:d2:6c
(0:50:da:82:ae:9f)
> 
> The second one is the valid one, but both interfaces seem to answer to the
> broadcasted packet with their own ARP addresses.

This is the default Linux behaviour.  It can be turned off by running the
following command as root:

echo 1 > /proc/sys/net/ipv4/conf/all/arp_filter

This ensures that interfaces will only respond to arp requests for IP
addresses
which are configured as belonging to that particular interface.

Chris

-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <E14pWQ2-0005LM-00@calista.inka.de>]
[parent not found: <4CDA8A6D03EFD411A1D300D0B7E83E8F6972AC@FSKNMD07.hickam.af.mil>]
* Re: ARP responses broken!
@ 2001-04-16 21:26 Eric Weigle
  2001-04-17 14:19 ` Andi Kleen
  0 siblings, 1 reply; 17+ 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] 17+ messages in thread
* ARP responses broken!
@ 2001-04-16 20:49 Sampsa Ranta
  2001-04-16 22:47 ` Bernd Eckenfels
  2001-04-17 14:24 ` Christopher Friesen
  0 siblings, 2 replies; 17+ messages in thread
From: Sampsa Ranta @ 2001-04-16 20:49 UTC (permalink / raw)
  To: linux-net, linux-kernel, zebra


Hello, I had a mystery with my Linux running 2.4.2 kernel with ARP packet
response.

I have two interfaces that share same subnet, I call eth0 194.29.192.37
and eth1 194.29.192.38. I have forwarding turned on, proxy arp is not
neighter are redirects.

When I flush local neighbor table in other machine I use to observe the
response and ping the router I get response like:

23:38:25.278848 > arp who-has 194.29.192.38 tell 194.29.192.10 (0:50:da:82:ae:9f)
23:38:25.278988 < arp reply 194.29.192.38 is-at 0:1:2:dc:d2:64 (0:50:da:82:ae:9f)
23:38:25.279009 < arp reply 194.29.192.38 is-at 0:1:2:dc:d2:6c (0:50:da:82:ae:9f)

The second one is the valid one, but both interfaces seem to answer to the
broadcasted packet with their own ARP addresses.

This came up when I wondered why I get responses to wrong interface with
Zebra.

 - Sampsa Ranta
   sampsa@netsonic.fi


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

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

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-17 18:25 ARP responses broken! Sam.Bingner
  -- strict thread matches above, loose matches on Subject: below --
2001-04-18  1:05 Julian Anastasov
2001-04-18 22:02 ` Sampsa Ranta
2001-04-19  1:46   ` Julian Anastasov
2001-04-17 18:07 Bingner Sam J. Contractor RSIS
     [not found] <E14pWQ2-0005LM-00@calista.inka.de>
2001-04-17 14:31 ` Bernd Eckenfels
     [not found] <4CDA8A6D03EFD411A1D300D0B7E83E8F6972AC@FSKNMD07.hickam.af.mil>
2001-04-17 13:56 ` Eric Weigle
2001-04-16 21:26 Eric Weigle
2001-04-17 14:19 ` 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
2001-04-16 20:49 Sampsa Ranta
2001-04-16 22:47 ` Bernd Eckenfels
2001-04-17 14:24 ` Christopher Friesen

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