LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-26-2007, 10:45 AM   #1
mauricem
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Unhappy 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
 
Old 04-27-2007, 05:40 AM   #2
SlackDaemon
Member
 
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
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
 
Old 04-27-2007, 06:28 AM   #3
mauricem
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
two NICs on same subnet and ssh independently powah Linux - Networking 5 04-09-2007 12:56 PM
With 2 NICs cannot see Windows machine on Linux anilbh Linux - Networking 10 02-13-2006 10:52 AM
2 nics on the same subnet mask wrexy Linux - Networking 6 10-11-2004 05:33 PM
Accessing a machine in my subnet from an external source bigian79 Linux - Networking 2 01-29-2004 12:11 PM
One Machine, Multiple NICs, and a single Newbie CozyMel Linux - Networking 2 10-09-2002 12:53 AM


All times are GMT -5. The time now is 07:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration