Chapter 3. Setting Up LVS

Chapter 3. Setting Up LVS

3.1. The NAT LVS Network
3.1.1. Configuring Network Interfaces for LVS with NAT
3.1.2. Routing on the Real Servers
3.1.3. Enabling NAT Routing on the LVS Routers
3.2. LVS via Direct Routing
3.2.1. Direct Routing and arptables_jf
3.2.2. Direct Routing and iptables
3.3. Putting the Configuration Together
3.3.1. General LVS Networking Tips
3.4. Multi-port Services and LVS
3.4.1. Assigning Firewall Marks
3.5. Configuring FTP
3.5.1. How FTP Works
3.5.2. How This Affects LVS Routing
3.5.3. Creating Network Packet Filter Rules
3.6. Saving Network Packet Filter Settings

LVS consists of two basic groups: the LVS routers and the real servers. To prevent a single point of failure, each groups should contain at least two member systems.

The LVS router group should consist of two identical or very similar systems running Red Hat Enterprise Linux. One will act as the active LVS router while the other stays in hot standby mode, so they need to have as close to the same capabilities as possible.

Before choosing and configuring the hardware for the real server group, determine which of the three LVS topologies to use.

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.