top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to avoid ARP flux issue in linux?

+2 votes
642 views

I have a setup where eth0 and eth1 interfaces are in same broadcast domain.

But i have a virtual IP configured on eth1 and a physical ip on eth0.
It is observed that if eth0 is default route then eth0 will respond to arp request for the IP configured on eth1.

This would cause an issue since traffic will be routed via eth0.

posted Apr 17, 2013 by Prem Chaitanya Prathi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Try the following too -

net.ipv4.conf.all.arp_ignore=1
net.ipv4.conf.all.arp_announce=2

Setting net.ipv4.conf.all.arp_ignore=1 and net.ipv4.conf.all.arp_announce=2 in /etc/sysctl.conf provides adequate settings. However, you should check whether these settings work in your network environment, especially if you depend on reaching an IP address from any other than the interface that it is configured on.

1 Answer

+1 vote

Try to disable rp_filter on each interface and try

# sysctl -w net.ipv4.conf.eth0.rp_filter=0
# sysctl -w net.ipv4.conf.eth1.rp_filter=0

Hope it should work.

answer Apr 17, 2013 by anonymous
Similar Questions
+2 votes

You are given two processes and each process is having four threads. One of the thread is having performance issue. How will you find out that thread which is having problem.

+2 votes

I have a process which is running as a linux service and assigns IP addresses using netlink to configued interface in linux.
For IPv4 addresses i do not see any issue with this assignment.

When i try to assign an IPv6 address, the address gets assigned successfully to the interface, but the Neighbour Solication request received for that address is not responded with and hence ping6 from a different machine doesn't work.

When i take the same netlink code and run it in a sample program the address gets assigned and the Neighbour solicitation is responded with a advertisement and hence ping6 works.

IP assigned by the program : 7000::15/32
IP on client machine from where ping6 is done : 7000::17/32.

Bot machines are connected to same Layer-2 switch.

I have flushed the ip6tables on both the machines just to rule out any firewall issues.

0 votes

Lets assume device is a computer which is connected to LAN switch and LAN switch has further links in upward.
Does a computer initiate ARP request for each destination IP ? Or it initiates ARP request only for a specific group of IPs ?

...