Hi,
> I have a machine connected with 2 network-cards to the same hub... I've
> assigned the IP 192.168.0.1 to one card and 192.168.0.2 to the other.
>
> Now when an arp-request for, e.g. 192.168.0.1 arrives, _both_ cards
> reply with their own HW-address.
>
> I think this behaviour comes because the arp-code only checks if the
> IP-address is local, but _not_ if it's assigned to the device which
> replies.
>
> I don't think this behaviour is correct.. I've wrote a quick fix for it.
> Well, it works fine for me, possibly it breaks some other cases... who
> knows ;)
Your patch breaks some cases.
Please, try kernel the last kernel, i.e. 2.2.14pre17 (>=pre13) and
hide the eth devices using:
# Allow hiding interfaces
echo 1 > /proc/sys/net/ipv4/conf/all/hidden
# Hide eth0 from the other ARP devices (eth1)
echo 1 > /proc/sys/net/ipv4/conf/eth0/hidden
# Hide eth1 from the other ARP devices (eth0)
echo 1 > /proc/sys/net/ipv4/conf/eth1/hidden
Is it working for you ?
Regards,
Julian Anastasov
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jan 01 2000 - 23:11:58 EST