124
Chapter 8:Setting Up a Red Hat Enterprise Linux AS LVS Cluster
The
/etc/sysconfig/network-scripts/ifcfg-eth1
for the private NAT interface on the
LVS router could look something like this:
DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.11.12.9
NETMASK=255.255.255.0
In this example, the VIP for the LVS router’s public interface will be 192.168.26.10 and the VIP for
the NAT or private interface will be 10.11.12.10. So, it is essential that the real servers route requests
back to the VIP for the NAT interface.
Important
The sample Ethernet interface configuration settings in this section are for the
real IP addresses of an LVS router and not the floating IP addresses. To con-
figure the public and private floating IP addresses the administrator should
use the
Piranha Configuration Tool
, as shown in Section 9.4,
GLOBAL
SETTINGS
and Section 9.6.1, The
VIRTUAL SERVER
Subsection.
After configuring the primary LVS router node’s network interfaces, configure the backup LVS
router’s real network interfaces — taking care that none of the IP address conflict with any other IP
addresses on the network.
Important
Be sure each interface on the backup node services the same network as the
interface on primary node. For instance, if eth0 connects to the public net-
work on the primary node, it must also connect to the public network on the
backup node as well.
8.2.1 Routing on the Real Servers
The most important thing to remember when configuring the real servers network interfaces in a NAT
cluster is to set the gateway for the NAT floating IP address of the LVS router. In this example, that
address will be 10.11.12.10.
Summary of Contents for ENTERPRISE LINUX AS 2.1 -
Page 1: ...Red Hat Enterprise Linux AS 2 1 The Official Red Hat Enterprise Linux AS Installation Guide ...
Page 8: ...viii ...
Page 14: ...xiv Introduction ...
Page 15: ...Part I Installing Red Hat Enterprise Linux AS ...
Page 16: ......
Page 26: ...26 Chapter 1 Steps to Get You Started ...
Page 30: ...30 Chapter 2 System Requirements Table ...
Page 80: ...80 Chapter 3 Installing Red Hat Enterprise Linux AS ...
Page 94: ...94 Chapter 4 Installing Red Hat Enterprise Linux AS via Text Mode ...
Page 95: ...Part II Configuring Red Hat Enterprise Linux AS ...
Page 96: ......
Page 100: ...100 Chapter 5 Introduction ...
Page 114: ...114 Chapter 6 Linux Virtual Server Overview ...
Page 153: ...Part III Appendixes ...
Page 154: ......
Page 156: ...156 Appendix A Additional Resources for LVS Clustering ...
Page 160: ...160 Appendix B A Sample etc sysconfig ha lvs cf File ...
Page 162: ...162 Appendix C Removing Red Hat Linux ...
Page 168: ...168 Appendix D Getting Technical Support ...
Page 178: ...178 Appendix E Troubleshooting Your Installation of Red Hat Enterprise Linux AS ...