Deploy in a Linux Environment
To add a non-ARPing adapter to a Real Server running Linux, add an alias to the lo (loopback) adapter. The following commands are examples of how to do this for some versions of Linux. Consult your operating system vendor if you need more details about how to add a non-ARPing loopback adapter.
- Edit your rc.local file (usually located at /etc/rc.d/rc.local) and add the following:
sysctl -w net.ipv4.conf.lo.arp_ignore=1
sysctl -w net.ipv4.conf.lo.arp_announce=2
sysctl -w net.ipv4.conf.all.arp_ignore=1
sysctl -w net.ipv4.conf.all.arp_announce=2
ifconfig <interface_name> <ip_address> netmask 255.255.255.255
<interface_name> is lo:<number> (e.g. lo:0, lo:1, lo:2)
<ip_address> is the Virtual IP Address for the ServiceFor example:
ifconfig lo:1 192.168.4.217 netmask 255.255.255.255 -arp up
- httpd.conf must have a VirtualHost entry for the VIPs. Edit the file to add these two lines:
<virtual_ip_address> is the Virtual IP Address for the Service
<real_ip_address> is the actual IP Address for the Real Server
- To check if the loopback adapter is working, make sure the Real Server is bound to the loopback adapter’s IP address. Output from the
ifconfigcommand should show the presence of the loopback adapter.