LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2014, 02:58 AM   #16
anindyameister
Member
 
Registered: Oct 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled

At this point I'm thinking about abandoning my original plan of dedicated NICs for database traffic and everything else and thinking about create a bonded interface. At least that way i'll get load balancing and failover support. But what still bugs me is why does two separate IP addresses, assigned to two different NICs would resolve to the same MAC address(eth0) ? I just need to know the reason why the current setup is not working and i'll be happy.
 
Old 08-13-2014, 10:51 AM   #17
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
Try this and see if it works.

http://serverfault.com/questions/580...-interfaces-on

Basically the interface is responding to the ARP request since the server owns the MAC. Try using sysctl to tell it to reply only if that interface has the MAC.
 
Old 08-14-2014, 04:30 AM   #18
anindyameister
Member
 
Registered: Oct 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by grim76 View Post
Try this and see if it works.

http://serverfault.com/questions/580...-interfaces-on

Basically the interface is responding to the ARP request since the server owns the MAC. Try using sysctl to tell it to reply only if that interface has the MAC.
I added the entry "net.ipv4.conf.all.arp_ignore = 1" to my sysctl.conf and ran sysctl -p. Then tried running arping from another box to both IPs. It worked for eth0 and I got unicast replies. But for eth1 arping couldn't reach the host at all. I tried running ping -I eth1 from the target box to my desktop and it failed too. When I set the value of arp_ignore to 0 again, ping from the target box to my desktop via both eth0 and eth1 started working and from the old behavior of returning eth0's MAC for both IPs returned. Then I tried "ifconfig eth0 down" and then when I brought it back up again, arping started showing eth1's MAC for both IPs.
 
  


Reply

Tags
iptables


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: All routing on any interface seems to stop when a rule for wlan0 is added iwonbigbro Linux - Security 4 10-11-2012 09:23 AM
[SOLVED] [FIREWALL] confused about setting up a specific rule using iptables cryptoboss Linux - Security 4 04-14-2011 09:22 AM
Need iptables rule to force outgoing interface redss Linux - Networking 12 03-03-2010 01:34 AM
simple DNAT iptables rule doesn't work. firatkucuk Linux - Networking 2 10-22-2007 01:35 AM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration