ARP's frustrating behavior
Hi,
I'm noticing on a machine with dual NICs that they they all seem to answer ARP queries, even if the request is not directed to their IP. Here's an example:
---8<---
10:52:03.177863 eth1 B arp who-has eddy tell soliton
10:52:03.177895 eth1 > arp reply eddy (0:3:47:8:1a:64) is-at 0:3:47:8:1a:64 (0:90:27:41:c9:f4) 10:52:03.177875 eth0 B arp who-has eddy tell soliton
10:52:03.177908 eth0 > arp reply eddy (0:b0:d0:78:bc:92) is-at 0:b0:d0:78:bc:92 (0:90:27:41:c9:f4) --8<--
This is a problem for me because eth1 is 1000Mb fibre while eth0 is 100Mb, and almost all of the clients are caching the response from eth0 in preference to the response from eth1.
I know this appeared on the list once before (20/08/1999, Chris Leech. "ARP (mis)behavior") however there was no definite answer. My questions are: Is this ARP behavior intentional? (I can't recreate the fault in other UNIX's) and if it is, is there a way to turn it off?
Thank you,
Stuart Duncan
----
Stuart Duncan
Systems Administrator
WNI Weathernews
31 Bishop Street
JOLIMONT WA 6014
Quoted 7 lines · Stuart Duncan
Hi,
I'm noticing on a machine with dual NICs that they they all seem to answer ARP queries, even if the request is not directed to their IP. Here's an example:
Evidently, this is considered a feature. However, to turn it off:
echo 1 > /proc/sys/net/ipv4/conf/all/arp_filter
Ben
Signature · 3 lines
Ben Greear <[email protected]> <[email protected]> President of Candela Technologies Inc http://www.candelatech.com ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
Quoted 3 lines
Evidently, this is considered a feature. However, to turn it off:
echo 1 >/proc/sys/net/ipv4/conf/all/arp_filter
I've tried this and it doesn't work. I understand that arp_filter uses routing tables to determine which interfaces should respond to ARP queries. In my case, both interfaces are on the same network.
There isn't a lot of documentation available for the use of arp_filter.
Thanks,
Stuart Duncan
----
Stuart Duncan
Systems Administrator
WNI Weathernews
31 Bishop Street
JOLIMONT WA 6014
Hi!
Quoted 11 lines · Ben Greear
Quoted 7 lines · Stuart Duncan
Hi,
I'm noticing on a machine with dual NICs that they they all seem to answer ARP queries, even if the request is not directed to their IP. Here's an example:
Evidently, this is considered a feature. However, to turn it off:
echo 1 >/proc/sys/net/ipv4/conf/all/arp_filter
This doesn't work for me, which is quite annoying: the machine answers arp for 192.168.1.254 (its IP on the private net on eth1) when arping'ed on the official side (eth0). Networks are physically separated, the official side is inside a big network which routes 192.168 internally, so this is really bad. If anyone could fix it I would be pleased...
Ciao,
Roland
Quoted 10 lines · Stuart Duncan
Quoted 3 lines
Evidently, this is considered a feature. However, to turn it off:
echo 1 >/proc/sys/net/ipv4/conf/all/arp_filterI've tried this and it doesn't work. I understand that
arp_filteruses routing tables to determine which interfaces should respond to ARP queries. In my case, both interfaces are on the same network.There isn't a lot of documentation available for the use of
arp_filter.
I put interfaces on the same network too, and it works for me. I do use source-based routing (using the 'ip' command) though, which may be why it works for me...
Ben
Signature · 3 lines
Ben Greear <[email protected]> <[email protected]> President of Candela Technologies Inc http://www.candelatech.com ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
Quoted 7 lines · Stuart Duncan
Quoted 3 lines
Evidently, this is considered a feature. However, to turn it off:
echo 1 >/proc/sys/net/ipv4/conf/all/arp_filterI've tried this and it doesn't work. I understand that
arp_filteruses routing tables to determine which interfaces should respond to ARP queries. In my case, both interfaces are on the same network.
Interesting. This works fine on 2.2.17. It actually uses the ip address to network device mapping, so that a NIC won't respond to arp requests for addresses that are not assigned to that NIC.
Signature · 4 lines
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: [email protected]