<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://kb.linux-vs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rsevero</id>
		<title>LVSKB - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://kb.linux-vs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rsevero"/>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki/Special:Contributions/Rsevero"/>
		<updated>2026-04-27T02:03:12Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://kb.linux-vs.org/wiki?title=Using_arp_announce/arp_ignore_to_disable_ARP&amp;diff=3952</id>
		<title>Using arp announce/arp ignore to disable ARP</title>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki?title=Using_arp_announce/arp_ignore_to_disable_ARP&amp;diff=3952"/>
				<updated>2007-03-22T21:29:48Z</updated>
		
		<summary type="html">&lt;p&gt;Rsevero: Fixing the examples.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== arp_announce/arp_ignore sysctl ==&lt;br /&gt;
&lt;br /&gt;
The arp_announce/arp_ignore sysctl on interfaces is available at the Linux official kernel since 2.6.4 and 2.4.26. The description about arp_announce/arp_ignore taken from kernel documentation is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
arp_announce - INTEGER&lt;br /&gt;
	Define different restriction levels for announcing the local&lt;br /&gt;
	source IP address from IP packets in ARP requests sent on&lt;br /&gt;
	interface:&lt;br /&gt;
	0 - (default) Use any local address, configured on any interface&lt;br /&gt;
	1 - Try to avoid local addresses that are not in the target's&lt;br /&gt;
	subnet for this interface. This mode is useful when target&lt;br /&gt;
	hosts reachable via this interface require the source IP&lt;br /&gt;
	address in ARP requests to be part of their logical network&lt;br /&gt;
	configured on the receiving interface. When we generate the&lt;br /&gt;
	request we will check all our subnets that include the&lt;br /&gt;
	target IP and will preserve the source address if it is from&lt;br /&gt;
	such subnet. If there is no such subnet we select source&lt;br /&gt;
	address according to the rules for level 2.&lt;br /&gt;
	2 - Always use the best local address for this target.&lt;br /&gt;
	In this mode we ignore the source address in the IP packet&lt;br /&gt;
	and try to select local address that we prefer for talks with&lt;br /&gt;
	the target host. Such local address is selected by looking&lt;br /&gt;
	for primary IP addresses on all our subnets on the outgoing&lt;br /&gt;
	interface that include the target IP address. If no suitable&lt;br /&gt;
	local address is found we select the first local address&lt;br /&gt;
	we have on the outgoing interface or on all other interfaces,&lt;br /&gt;
	with the hope we will receive reply for our request and&lt;br /&gt;
	even sometimes no matter the source IP address we announce.&lt;br /&gt;
&lt;br /&gt;
	The max value from conf/{all,interface}/arp_announce is used.&lt;br /&gt;
&lt;br /&gt;
	Increasing the restriction level gives more chance for&lt;br /&gt;
	receiving answer from the resolved target while decreasing&lt;br /&gt;
	the level announces more valid sender's information.&lt;br /&gt;
&lt;br /&gt;
arp_ignore - INTEGER&lt;br /&gt;
	Define different modes for sending replies in response to&lt;br /&gt;
	received ARP requests that resolve local target IP addresses:&lt;br /&gt;
	0 - (default): reply for any local target IP address, configured&lt;br /&gt;
	on any interface&lt;br /&gt;
	1 - reply only if the target IP address is local address&lt;br /&gt;
	configured on the incoming interface&lt;br /&gt;
	2 - reply only if the target IP address is local address&lt;br /&gt;
	configured on the incoming interface and both with the&lt;br /&gt;
	sender's IP address are part from same subnet on this interface&lt;br /&gt;
	3 - do not reply for local addresses configured with scope host,&lt;br /&gt;
	only resolutions for global and link addresses are replied&lt;br /&gt;
	4-7 - reserved&lt;br /&gt;
	8 - do not reply for all local addresses&lt;br /&gt;
&lt;br /&gt;
	The max value from conf/{all,interface}/arp_ignore is used&lt;br /&gt;
	when ARP request is received on the {interface}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Disable ARP for VIP ==&lt;br /&gt;
&lt;br /&gt;
To disable [[ARP]] for [[VIP]] at [[real server]]s, we just need to set arp_announce/arp_ignore sysctls at the interface connected to the VIP network. For example, [[real server]]s have eth0 connected to the VIP network with the VIP at interface lo, we will have the following commands.&lt;br /&gt;
&lt;br /&gt;
 echo 1 &amp;gt; /proc/sys/net/ipv4/conf/eth0/arp_ignore&lt;br /&gt;
 echo 2 &amp;gt; /proc/sys/net/ipv4/conf/eth0/arp_announce&lt;br /&gt;
&lt;br /&gt;
Or, if /etc/sysctl.conf is used in the system, we have this config in /etc/sysctl.conf&lt;br /&gt;
 net.ipv4.conf.eth0.arp_ignore = 1&lt;br /&gt;
 net.ipv4.conf.eth0.arp_announce = 2&lt;br /&gt;
&lt;br /&gt;
Note that the arp_announce/arp_ignore sysctls must be setup correctly, before the [[VIP]] address is brought up at a logical interface at [[real server]]s.&lt;br /&gt;
&lt;br /&gt;
== Linux Distributions ==&lt;br /&gt;
&lt;br /&gt;
* RHEL 4 / CentOS 4&lt;br /&gt;
* SUSE 9 Enterprise&lt;br /&gt;
* Debian&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* http://ssi.bg/~ja/#arp_announce&lt;br /&gt;
&lt;br /&gt;
[[Category:ARP Issue]]&lt;/div&gt;</summary>
		<author><name>Rsevero</name></author>	</entry>

	<entry>
		<id>http://kb.linux-vs.org/wiki?title=Using_arp_announce/arp_ignore_to_disable_ARP&amp;diff=3951</id>
		<title>Using arp announce/arp ignore to disable ARP</title>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki?title=Using_arp_announce/arp_ignore_to_disable_ARP&amp;diff=3951"/>
				<updated>2007-03-22T20:16:00Z</updated>
		
		<summary type="html">&lt;p&gt;Rsevero: Changing example from eth0 to lo as it is the common case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== arp_announce/arp_ignore sysctl ==&lt;br /&gt;
&lt;br /&gt;
The arp_announce/arp_ignore sysctl on interfaces is available at the Linux official kernel since 2.6.4 and 2.4.26. The description about arp_announce/arp_ignore taken from kernel documentation is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
arp_announce - INTEGER&lt;br /&gt;
	Define different restriction levels for announcing the local&lt;br /&gt;
	source IP address from IP packets in ARP requests sent on&lt;br /&gt;
	interface:&lt;br /&gt;
	0 - (default) Use any local address, configured on any interface&lt;br /&gt;
	1 - Try to avoid local addresses that are not in the target's&lt;br /&gt;
	subnet for this interface. This mode is useful when target&lt;br /&gt;
	hosts reachable via this interface require the source IP&lt;br /&gt;
	address in ARP requests to be part of their logical network&lt;br /&gt;
	configured on the receiving interface. When we generate the&lt;br /&gt;
	request we will check all our subnets that include the&lt;br /&gt;
	target IP and will preserve the source address if it is from&lt;br /&gt;
	such subnet. If there is no such subnet we select source&lt;br /&gt;
	address according to the rules for level 2.&lt;br /&gt;
	2 - Always use the best local address for this target.&lt;br /&gt;
	In this mode we ignore the source address in the IP packet&lt;br /&gt;
	and try to select local address that we prefer for talks with&lt;br /&gt;
	the target host. Such local address is selected by looking&lt;br /&gt;
	for primary IP addresses on all our subnets on the outgoing&lt;br /&gt;
	interface that include the target IP address. If no suitable&lt;br /&gt;
	local address is found we select the first local address&lt;br /&gt;
	we have on the outgoing interface or on all other interfaces,&lt;br /&gt;
	with the hope we will receive reply for our request and&lt;br /&gt;
	even sometimes no matter the source IP address we announce.&lt;br /&gt;
&lt;br /&gt;
	The max value from conf/{all,interface}/arp_announce is used.&lt;br /&gt;
&lt;br /&gt;
	Increasing the restriction level gives more chance for&lt;br /&gt;
	receiving answer from the resolved target while decreasing&lt;br /&gt;
	the level announces more valid sender's information.&lt;br /&gt;
&lt;br /&gt;
arp_ignore - INTEGER&lt;br /&gt;
	Define different modes for sending replies in response to&lt;br /&gt;
	received ARP requests that resolve local target IP addresses:&lt;br /&gt;
	0 - (default): reply for any local target IP address, configured&lt;br /&gt;
	on any interface&lt;br /&gt;
	1 - reply only if the target IP address is local address&lt;br /&gt;
	configured on the incoming interface&lt;br /&gt;
	2 - reply only if the target IP address is local address&lt;br /&gt;
	configured on the incoming interface and both with the&lt;br /&gt;
	sender's IP address are part from same subnet on this interface&lt;br /&gt;
	3 - do not reply for local addresses configured with scope host,&lt;br /&gt;
	only resolutions for global and link addresses are replied&lt;br /&gt;
	4-7 - reserved&lt;br /&gt;
	8 - do not reply for all local addresses&lt;br /&gt;
&lt;br /&gt;
	The max value from conf/{all,interface}/arp_ignore is used&lt;br /&gt;
	when ARP request is received on the {interface}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Disable ARP for VIP ==&lt;br /&gt;
&lt;br /&gt;
To disable [[ARP]] for [[VIP]] at [[real server]]s, we just need to set arp_announce/arp_ignore sysctls at the interface connected to the VIP network. For example, [[real server]]s have eth0 connected to the VIP network with the VIP at interface lo, we will have the following commands.&lt;br /&gt;
&lt;br /&gt;
 echo 1 &amp;gt; /proc/sys/net/ipv4/conf/lo/arp_ignore&lt;br /&gt;
 echo 2 &amp;gt; /proc/sys/net/ipv4/conf/lo/arp_announce&lt;br /&gt;
&lt;br /&gt;
Or, if /etc/sysctl.conf is used in the system, we have this config in /etc/sysctl.conf&lt;br /&gt;
 net.ipv4.conf.lo.arp_ignore = 1&lt;br /&gt;
 net.ipv4.conf.lo.arp_announce = 2&lt;br /&gt;
&lt;br /&gt;
Note that the arp_announce/arp_ignore sysctls must be setup correctly, before the [[VIP]] address is brought up at a logical interface at [[real server]]s.&lt;br /&gt;
&lt;br /&gt;
== Linux Distributions ==&lt;br /&gt;
&lt;br /&gt;
* RHEL 4 / CentOS 4&lt;br /&gt;
* SUSE 9 Enterprise&lt;br /&gt;
* Debian&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* http://ssi.bg/~ja/#arp_announce&lt;br /&gt;
&lt;br /&gt;
[[Category:ARP Issue]]&lt;/div&gt;</summary>
		<author><name>Rsevero</name></author>	</entry>

	<entry>
		<id>http://kb.linux-vs.org/wiki?title=Talk:Using_arp_announce/arp_ignore_to_disable_ARP&amp;diff=3950</id>
		<title>Talk:Using arp announce/arp ignore to disable ARP</title>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki?title=Talk:Using_arp_announce/arp_ignore_to_disable_ARP&amp;diff=3950"/>
				<updated>2007-03-22T20:13:42Z</updated>
		
		<summary type="html">&lt;p&gt;Rsevero: Justification: Removing erroneous &amp;quot;conf/all&amp;quot; entries.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I believe the &amp;quot;conf/all&amp;quot; entries should not be used as per arp_ignore and arp_announce documentation: the max value from conf/{all,interface}/arp_[announce|ignore] is used for {interface}&amp;quot;. -- [[User:Rsevero|Rsevero]] 04:13, 23 March 2007 (CST)&lt;/div&gt;</summary>
		<author><name>Rsevero</name></author>	</entry>

	<entry>
		<id>http://kb.linux-vs.org/wiki?title=Using_arp_announce/arp_ignore_to_disable_ARP&amp;diff=3949</id>
		<title>Using arp announce/arp ignore to disable ARP</title>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki?title=Using_arp_announce/arp_ignore_to_disable_ARP&amp;diff=3949"/>
				<updated>2007-03-22T20:10:56Z</updated>
		
		<summary type="html">&lt;p&gt;Rsevero: Removing erroneous &amp;quot;conf/all&amp;quot; entries.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== arp_announce/arp_ignore sysctl ==&lt;br /&gt;
&lt;br /&gt;
The arp_announce/arp_ignore sysctl on interfaces is available at the Linux official kernel since 2.6.4 and 2.4.26. The description about arp_announce/arp_ignore taken from kernel documentation is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
arp_announce - INTEGER&lt;br /&gt;
	Define different restriction levels for announcing the local&lt;br /&gt;
	source IP address from IP packets in ARP requests sent on&lt;br /&gt;
	interface:&lt;br /&gt;
	0 - (default) Use any local address, configured on any interface&lt;br /&gt;
	1 - Try to avoid local addresses that are not in the target's&lt;br /&gt;
	subnet for this interface. This mode is useful when target&lt;br /&gt;
	hosts reachable via this interface require the source IP&lt;br /&gt;
	address in ARP requests to be part of their logical network&lt;br /&gt;
	configured on the receiving interface. When we generate the&lt;br /&gt;
	request we will check all our subnets that include the&lt;br /&gt;
	target IP and will preserve the source address if it is from&lt;br /&gt;
	such subnet. If there is no such subnet we select source&lt;br /&gt;
	address according to the rules for level 2.&lt;br /&gt;
	2 - Always use the best local address for this target.&lt;br /&gt;
	In this mode we ignore the source address in the IP packet&lt;br /&gt;
	and try to select local address that we prefer for talks with&lt;br /&gt;
	the target host. Such local address is selected by looking&lt;br /&gt;
	for primary IP addresses on all our subnets on the outgoing&lt;br /&gt;
	interface that include the target IP address. If no suitable&lt;br /&gt;
	local address is found we select the first local address&lt;br /&gt;
	we have on the outgoing interface or on all other interfaces,&lt;br /&gt;
	with the hope we will receive reply for our request and&lt;br /&gt;
	even sometimes no matter the source IP address we announce.&lt;br /&gt;
&lt;br /&gt;
	The max value from conf/{all,interface}/arp_announce is used.&lt;br /&gt;
&lt;br /&gt;
	Increasing the restriction level gives more chance for&lt;br /&gt;
	receiving answer from the resolved target while decreasing&lt;br /&gt;
	the level announces more valid sender's information.&lt;br /&gt;
&lt;br /&gt;
arp_ignore - INTEGER&lt;br /&gt;
	Define different modes for sending replies in response to&lt;br /&gt;
	received ARP requests that resolve local target IP addresses:&lt;br /&gt;
	0 - (default): reply for any local target IP address, configured&lt;br /&gt;
	on any interface&lt;br /&gt;
	1 - reply only if the target IP address is local address&lt;br /&gt;
	configured on the incoming interface&lt;br /&gt;
	2 - reply only if the target IP address is local address&lt;br /&gt;
	configured on the incoming interface and both with the&lt;br /&gt;
	sender's IP address are part from same subnet on this interface&lt;br /&gt;
	3 - do not reply for local addresses configured with scope host,&lt;br /&gt;
	only resolutions for global and link addresses are replied&lt;br /&gt;
	4-7 - reserved&lt;br /&gt;
	8 - do not reply for all local addresses&lt;br /&gt;
&lt;br /&gt;
	The max value from conf/{all,interface}/arp_ignore is used&lt;br /&gt;
	when ARP request is received on the {interface}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Disable ARP for VIP ==&lt;br /&gt;
&lt;br /&gt;
To disable [[ARP]] for [[VIP]] at [[real server]]s, we just need to set arp_announce/arp_ignore sysctls at the interface connected to the VIP network. For example, [[real server]]s have eth0 connected to the VIP network, we will have the following commands.&lt;br /&gt;
&lt;br /&gt;
 echo 1 &amp;gt; /proc/sys/net/ipv4/conf/eth0/arp_ignore&lt;br /&gt;
 echo 2 &amp;gt; /proc/sys/net/ipv4/conf/eth0/arp_announce&lt;br /&gt;
&lt;br /&gt;
Or, if /etc/sysctl.conf is used in the system, we have this config in /etc/sysctl.conf&lt;br /&gt;
 net.ipv4.conf.eth0.arp_ignore = 1&lt;br /&gt;
 net.ipv4.conf.eth0.arp_announce = 2&lt;br /&gt;
&lt;br /&gt;
Note that the arp_announce/arp_ignore sysctls must be setup correctly, before the [[VIP]] address is brought up at a logical interface at [[real server]]s.&lt;br /&gt;
&lt;br /&gt;
== Linux Distributions ==&lt;br /&gt;
&lt;br /&gt;
* RHEL 4 / CentOS 4&lt;br /&gt;
* SUSE 9 Enterprise&lt;br /&gt;
* Debian&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* http://ssi.bg/~ja/#arp_announce&lt;br /&gt;
&lt;br /&gt;
[[Category:ARP Issue]]&lt;/div&gt;</summary>
		<author><name>Rsevero</name></author>	</entry>

	</feed>