LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   two nics on one subnet on one machine (http://www.linuxquestions.org/questions/linux-networking-3/two-nics-on-one-subnet-on-one-machine-549202/)

mauricem 04-26-2007 11:45 AM

two nics on one subnet on one machine
 
Hello,

I`ve configured a machine with 2 physical nics witch both are attached to the same subnet.
They both have a different ip address ( in the same subnet ).
But when I do an arp request from a second machine for the ip adres of one of nics on the first machine I get a reply of both interfaces on the machine .

Does anybody know why this is happening ?

Thanks in advance for the answer.


Maurice

SlackDaemon 04-27-2007 06:40 AM

Are you getting two different MAC addresses or the same MAC address?

Also what is the output of this on your system:

cat /proc/sys/net/ipv4/conf/eth0/proxy_arp
cat /proc/sys/net/ipv4/conf/eth1/proxy_arp

mauricem 04-27-2007 07:28 AM

I found the solution myself.

If two interfaces are on the same subnet they both answer arp requests ( with their own mac ) for the ip adress that just is configured on one of the cards.

This behaviour can be stopped by setting :

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


All times are GMT -5. The time now is 10:11 AM.