4.1.3. Enabling NAT Routing on the LVS Routers

4.1.3. Enabling NAT Routing on the LVS Routers

4.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 3.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 4.4, “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 5, 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 5.4, “GLOBAL SETTINGS” and Section 5.6.1, “The VIRTUAL SERVER Subsection” to configure any cluster-related virtual interfaces.

When finished, start the pulse service as shown in Section 5.8, “Starting the Cluster”. Once pulse is up and running, the active LVS router will begin routing requests to the pool of real servers.