<?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=Ak</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=Ak"/>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki/Special:Contributions/Ak"/>
		<updated>2026-04-23T04:58:17Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://kb.linux-vs.org/wiki?title=Mini_Mini_Howto&amp;diff=5743</id>
		<title>Mini Mini Howto</title>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki?title=Mini_Mini_Howto&amp;diff=5743"/>
				<updated>2007-11-06T12:52:49Z</updated>
		
		<summary type="html">&lt;p&gt;Ak: /* Instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Mini-Mini-Howto ==&lt;br /&gt;
&lt;br /&gt;
This describes a quick way to get up and going with LVS.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
&lt;br /&gt;
Start from a precompiled Linux distribution.  I was using a combination of Fedora Core 4 and Fedora Core 6, but this should work with any recent version of Linux.&lt;br /&gt;
&lt;br /&gt;
The following will set up the [[real server]]s (192.168.1.100 and 192.168.1.101) to accept data from the [[load balancer]] (192.168.1.5) for VIP 192.168.1.10.  I put it into a shell script and added that script to /etc/rc.d/rc.local on real servers.&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;
 echo 1 &amp;gt; /proc/sys/net/ipv4/conf/all/arp_ignore&lt;br /&gt;
 echo 2 &amp;gt; /proc/sys/net/ipv4/conf/all/arp_announce&lt;br /&gt;
 &lt;br /&gt;
 ifconfig lo:0 192.168.1.10 netmask 255.255.255.255 broadcast 192.168.1.10 up&lt;br /&gt;
&lt;br /&gt;
One time setup on the load balancer:&lt;br /&gt;
&lt;br /&gt;
 rpm -U /net/shauna/usr/local/share/RPMS/4/ipvsadm-1.24-7.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
I put the following script on the load balancer, again referenced in /etc/rc.d/rc.local&lt;br /&gt;
&lt;br /&gt;
 ifconfig eth0:0 192.168.1.10 netmask 255.255.255.255 broadcast 192.168.1.10 up&lt;br /&gt;
 ipvsadm --clear&lt;br /&gt;
 ipvsadm --add-service --tcp-service 192.168.1.10:80 --scheduler rr&lt;br /&gt;
 ipvsadm --add-server --tcp-service 192.168.1.10:80 --real-server 192.168.1.100:80 --gatewaying&lt;br /&gt;
 ipvsadm --add-server --tcp-service 192.168.1.10:80 --real-server 192.168.1.101:80 --gatewaying&lt;br /&gt;
&lt;br /&gt;
That’s all it took.  I didn’t recompile anything.  My firewall treats 192.168.1.10, the VIP, just like an ordinary machine.  Inside the firewall I have a standard switch.  Aside from the firewall, all of the machines are using only one NIC and one subnet.&lt;br /&gt;
&lt;br /&gt;
== Rationale ==&lt;br /&gt;
&lt;br /&gt;
Several years ago I set up an LVS.  Recently I did it again.  Because of changes in the 2.6 kernel, it was a whole lot easier this time.  It was almost trivial.  Unfortunately, it took me a long time to dig through the documentation to what I needed.&lt;br /&gt;
&lt;br /&gt;
All of this information was available on Google, but it was hiding.  I can appreciate the older documentation – as I said I worked with this software a long time ago – but some of it has little or no value.  How many people, for example, need to use an old version of the kernel?  There may be a place for that information, but it should not be the first thing that a potential user sees.&lt;br /&gt;
&lt;br /&gt;
[[Category:LVS Handbook]]&lt;/div&gt;</summary>
		<author><name>Ak</name></author>	</entry>

	<entry>
		<id>http://kb.linux-vs.org/wiki?title=Mini_Mini_Howto&amp;diff=5742</id>
		<title>Mini Mini Howto</title>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki?title=Mini_Mini_Howto&amp;diff=5742"/>
				<updated>2007-11-06T12:51:45Z</updated>
		
		<summary type="html">&lt;p&gt;Ak: /* Instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Mini-Mini-Howto ==&lt;br /&gt;
&lt;br /&gt;
This describes a quick way to get up and going with LVS.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
&lt;br /&gt;
Start from a precompiled Linux distribution.  I was using a combination of Fedora Core 4 and Fedora Core 6, but this should work with any recent version of Linux.&lt;br /&gt;
&lt;br /&gt;
The following will set up the [[real server]]s (192.168.1.100 and 192.168.1.101) to accept data from the [[load balancer]] (192.168.1.5) for VIP 192.168.1.10.  I put it into a shell script and added that script to /etc/rc.d/rc.local on real servers.&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;
 echo 1 &amp;gt; /proc/sys/net/ipv4/conf/all/arp_ignore&lt;br /&gt;
 echo 2 &amp;gt; /proc/sys/net/ipv4/conf/all/arp_announce&lt;br /&gt;
 &lt;br /&gt;
 ifconfig lo:0 192.168.1.10 netmask 255.255.255.255 broadcast 192.168.1.10 up&lt;br /&gt;
&lt;br /&gt;
One time setup on the load balancer:&lt;br /&gt;
&lt;br /&gt;
 rpm -U /net/shauna/usr/local/share/RPMS/4/ipvsadm-1.24-7.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
I put the following script on the load balancer, again referenced in /etc/rc.d/rc.local&lt;br /&gt;
&lt;br /&gt;
 ifconfig eth0:0 192.168.1.10 netmask 255.255.255.255 broadcast 192.168.1.10 up&lt;br /&gt;
&lt;br /&gt;
 ipvsadm --clear&lt;br /&gt;
 ipvsadm --add-service --tcp-service 192.168.1.10:80 --scheduler rr&lt;br /&gt;
 ipvsadm --add-server --tcp-service 192.168.1.10:80 --real-server 192.168.1.100:80 --gatewaying&lt;br /&gt;
 ipvsadm --add-server --tcp-service 192.168.1.10:80 --real-server 192.168.1.101:80 --gatewaying&lt;br /&gt;
&lt;br /&gt;
That’s all it took.  I didn’t recompile anything.  My firewall treats 192.168.1.10, the VIP, just like an ordinary machine.  Inside the firewall I have a standard switch.  Aside from the firewall, all of the machines are using only one NIC and one subnet.&lt;br /&gt;
&lt;br /&gt;
== Rationale ==&lt;br /&gt;
&lt;br /&gt;
Several years ago I set up an LVS.  Recently I did it again.  Because of changes in the 2.6 kernel, it was a whole lot easier this time.  It was almost trivial.  Unfortunately, it took me a long time to dig through the documentation to what I needed.&lt;br /&gt;
&lt;br /&gt;
All of this information was available on Google, but it was hiding.  I can appreciate the older documentation – as I said I worked with this software a long time ago – but some of it has little or no value.  How many people, for example, need to use an old version of the kernel?  There may be a place for that information, but it should not be the first thing that a potential user sees.&lt;br /&gt;
&lt;br /&gt;
[[Category:LVS Handbook]]&lt;/div&gt;</summary>
		<author><name>Ak</name></author>	</entry>

	<entry>
		<id>http://kb.linux-vs.org/wiki?title=Mini_Mini_Howto&amp;diff=5741</id>
		<title>Mini Mini Howto</title>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki?title=Mini_Mini_Howto&amp;diff=5741"/>
				<updated>2007-11-06T12:49:46Z</updated>
		
		<summary type="html">&lt;p&gt;Ak: /* Instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Mini-Mini-Howto ==&lt;br /&gt;
&lt;br /&gt;
This describes a quick way to get up and going with LVS.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
&lt;br /&gt;
Start from a precompiled Linux distribution.  I was using a combination of Fedora Core 4 and Fedora Core 6, but this should work with any recent version of Linux.&lt;br /&gt;
&lt;br /&gt;
The following will set up the [[real server]]s (192.168.1.100 and 192.168.1.101) to accept data from the [[load balancer]] (192.168.1.5) for VIP 192.168.1.10.  I put it into a shell script and added that script to /etc/rc.d/rc.local.&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;
 echo 1 &amp;gt; /proc/sys/net/ipv4/conf/all/arp_ignore&lt;br /&gt;
 echo 2 &amp;gt; /proc/sys/net/ipv4/conf/all/arp_announce&lt;br /&gt;
 &lt;br /&gt;
 ifconfig lo:0 192.168.1.10 netmask 255.255.255.255 broadcast 192.168.1.10 up&lt;br /&gt;
&lt;br /&gt;
One time setup on the load balancer:&lt;br /&gt;
&lt;br /&gt;
 rpm -U /net/shauna/usr/local/share/RPMS/4/ipvsadm-1.24-7.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
I put the following script on the load balancer, again referenced in /etc/rc.d/rc.local&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ifconfig eth0:0 192.168.1.10 netmask 255.255.255.255 broadcast 192.168.1.10 up&lt;br /&gt;
&lt;br /&gt;
 ipvsadm --clear&lt;br /&gt;
 ipvsadm --add-service --tcp-service 192.168.1.10:80 --scheduler rr&lt;br /&gt;
 ipvsadm --add-server --tcp-service 192.168.1.10:80 --real-server bart:80 --gatewaying&lt;br /&gt;
 ipvsadm --add-server --tcp-service 192.168.1.10:80 --real-server lisa:80 --gatewaying&lt;br /&gt;
&lt;br /&gt;
That’s all it took.  I didn’t recompile anything.  My firewall treats 192.168.1.10, the VIP, just like an ordinary machine.  Inside the firewall I have a standard switch.  Aside from the firewall, all of the machines are using only one NIC and one subnet.&lt;br /&gt;
&lt;br /&gt;
== Rationale ==&lt;br /&gt;
&lt;br /&gt;
Several years ago I set up an LVS.  Recently I did it again.  Because of changes in the 2.6 kernel, it was a whole lot easier this time.  It was almost trivial.  Unfortunately, it took me a long time to dig through the documentation to what I needed.&lt;br /&gt;
&lt;br /&gt;
All of this information was available on Google, but it was hiding.  I can appreciate the older documentation – as I said I worked with this software a long time ago – but some of it has little or no value.  How many people, for example, need to use an old version of the kernel?  There may be a place for that information, but it should not be the first thing that a potential user sees.&lt;br /&gt;
&lt;br /&gt;
[[Category:LVS Handbook]]&lt;/div&gt;</summary>
		<author><name>Ak</name></author>	</entry>

	<entry>
		<id>http://kb.linux-vs.org/wiki?title=Mini_Mini_Howto&amp;diff=5740</id>
		<title>Mini Mini Howto</title>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki?title=Mini_Mini_Howto&amp;diff=5740"/>
				<updated>2007-11-06T12:48:23Z</updated>
		
		<summary type="html">&lt;p&gt;Ak: /* Instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Mini-Mini-Howto ==&lt;br /&gt;
&lt;br /&gt;
This describes a quick way to get up and going with LVS.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
&lt;br /&gt;
Start from a precompiled Linux distribution.  I was using a combination of Fedora Core 4 and Fedora Core 6, but this should work with any recent version of Linux.&lt;br /&gt;
&lt;br /&gt;
The following will set up the [[real server]]s to accept data from the [[load balancer]].  I put it into a shell script and added that script to /etc/rc.d/rc.local.&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;
 echo 1 &amp;gt; /proc/sys/net/ipv4/conf/all/arp_ignore&lt;br /&gt;
 echo 2 &amp;gt; /proc/sys/net/ipv4/conf/all/arp_announce&lt;br /&gt;
 &lt;br /&gt;
 ifconfig lo:0 192.168.1.10 netmask 255.255.255.255 broadcast 192.168.1.10 up&lt;br /&gt;
&lt;br /&gt;
One time setup on the load balancer:&lt;br /&gt;
&lt;br /&gt;
 rpm -U /net/shauna/usr/local/share/RPMS/4/ipvsadm-1.24-7.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
I put the following script on the load balancer, again referenced in /etc/rc.d/rc.local&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ifconfig eth0:0 192.168.1.10 netmask 255.255.255.255 broadcast 192.168.1.10 up&lt;br /&gt;
&lt;br /&gt;
 ipvsadm --clear&lt;br /&gt;
 ipvsadm --add-service --tcp-service 192.168.1.10:80 --scheduler rr&lt;br /&gt;
 ipvsadm --add-server --tcp-service 192.168.1.10:80 --real-server bart:80 --gatewaying&lt;br /&gt;
 ipvsadm --add-server --tcp-service 192.168.1.10:80 --real-server lisa:80 --gatewaying&lt;br /&gt;
&lt;br /&gt;
That’s all it took.  I didn’t recompile anything.  My firewall treats 192.168.1.10, the VIP, just like an ordinary machine.  Inside the firewall I have a standard switch.  Aside from the firewall, all of the machines are using only one NIC and one subnet.&lt;br /&gt;
&lt;br /&gt;
== Rationale ==&lt;br /&gt;
&lt;br /&gt;
Several years ago I set up an LVS.  Recently I did it again.  Because of changes in the 2.6 kernel, it was a whole lot easier this time.  It was almost trivial.  Unfortunately, it took me a long time to dig through the documentation to what I needed.&lt;br /&gt;
&lt;br /&gt;
All of this information was available on Google, but it was hiding.  I can appreciate the older documentation – as I said I worked with this software a long time ago – but some of it has little or no value.  How many people, for example, need to use an old version of the kernel?  There may be a place for that information, but it should not be the first thing that a potential user sees.&lt;br /&gt;
&lt;br /&gt;
[[Category:LVS Handbook]]&lt;/div&gt;</summary>
		<author><name>Ak</name></author>	</entry>

	</feed>