Installation guide
106 Chapter 9. Setting Up a Red Hat Enterprise Linux LVS Cluster
It is best to turn off extraneous network interfaces by setting ONBOOT=no in their network
scripts within the /etc/sysconfig/network-scripts/ directory or by making sure the
gateway is correctly set in the interface which comes up first.
9.1.3. Enabling NAT Routing on the LVS Routers
In a simple NAT LVS cluster where each clustered service uses only one port, like
HTTP on port 80, the administrator needs only to enable packet forwarding on the
LVS routers for the requests to be properly routed between the outside world and the
real servers. See Section 8.5 Turning on Packet Forwarding for instructions on
turning on packet forwarding. However, more configuration is necessary when the
clustered services require more than one port to go to the same real server during a
user session. For information on creating multi-port services using firewall marks, see
Section 9.3 Multi-port Services and LVS Clustering.
Once forwarding is enabled on the LVS routers and the real servers are set up and have the
clustered services running, use the Piranha Configuration Tool to configure the cluster as
shown in Chapter 10 Configuring the LVS Routers with Piranha Configuration Tool.
Warning
Do not configure the floating IP for eth0:1 or eth1:1 by manually editing
network scripts or using a network configuration tool. Instead, use the Piranha
Configuration Tool as shown in Section 10.4 GLOBAL SETTINGS and
Section 10.6.1 The VIRTUAL SERVER Subsection to configure any cluster-related
virtual interfaces.
When finished, start the pulse service as shown in Section 10.8 Starting the Cluster. Once
pulse is up and running, the active LVS router will begin routing requests to the pool of
real servers.
9.2. Putting the Cluster Together
After determining which of the above routing methods to use, the hardware for the LVS
cluster should be linked together on the network.