Direct Routing And - Red Hat LINUX VIRTUAL SERVER - FOR ENTERPRISE LINUX 5.2 REV 05-2008 Manual

Linux virtual server (lvs) for red hat enterprise linux 5.2
Table of Contents

Advertisement

Chapter 3. Setting Up LVS
requests for any of the VIPs is the current active LVS node.
2. Once this has been completed on each real server, save the ARP table entries by typing the
following commands on each real server:
service arptables_jf save
chkconfig --level 2345 arptables_jf on
The
command will cause the system to reload the arptables configuration on
chkconfig
bootup — before the network is started.
3. Configure the virtual IP address on all real servers using
example:
# ifconfig eth0:1 192.168.76.24 netmask 255.255.252.0 broadcast
192.168.79.255 up
Or using the
iproute2
# ip addr add 192.168.76.24 dev eth0
As previously noted, the virtual IP addresses can not be configured to start on boot using the
Red Hat system configuration tools. One way to work around this issue is to place these
commands in
/etc/rc.d/rc.local
4. Configure Piranha for Direct Routing. Refer to
Piranha Configuration Tool

2.2. Direct Routing and

You may also work around the ARP issue using the direct routing method by creating
firewall rules. To configure direct routing using
transparent proxy so that a real server will service packets sent to the VIP address, even though
the VIP address does not exist on the system.
The
method is simpler to configure than the
iptables
circumvents the LVS ARP issue entirely, because the virtual IP address(es) only exist on the
active LVS director.
However, there are performance issues using the
, as there is overhead in forwarding/masquerading every packet.
arptables_jf
You also cannot reuse ports using the
two separate Apache HTTP Server services bound to port 80, because both must bind to
28
utility
, for example:
ip
.
for more information.
iptables
iptables
iptables
to create an IP alias. For
ifconfig
Chapter 4, Configuring the LVS Routers with
, you must add rules that create a
method. This method also
arptables_jf
method compared to
iptables
method. For example, it is not possible to run
iptables

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux virtual server

Table of Contents