Section 8.2:Configuring Network Interfaces for a NAT LVS Cluster
123
WARNING
Do not use the
ifup
scripts to bring up any floating IP addresses
you may configure using
Piranha Configuration Tool
(
eth0:1
or
eth1:1
). Use the
service
command to start
pulse
instead
(see Section 9.8, Starting the Cluster for details).
To bring a network interface down, simply type:
/sbin/ifdown eth
N
Again, replace N in the above command with the number corresponding to the interface you
wish to bring down.
Checking the Status of Network Interfaces
If you need to check which network interfaces are up at any given time, type:
/sbin/ifconfig
To view the routing table for a machine, issue the following command:
/sbin/route
8.2 Configuring Network Interfaces for a NAT LVS
Cluster
To set up a NAT LVS cluster, the administrator must first configure the network interfaces for the
public network and the private network on the LVS routers. In this example, the LVS routers’ public
interfaces (
eth0
) will be on the 192.168.26/24 network (I know, I know, this is not a routable IP, but
let us pretend there is a firewall in front of the LVS router for good measure) and the private interfaces
which link to the real servers (
eth1
) will be on the 10.11.12/24 network.
So on the active or primary LVS router node, the public interface’s network script,
/etc/syscon-
fig/network-scripts/ifcfg-eth0
, could look something like this:
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.26.9
NETMASK=255.255.255.0
GATEWAY=192.168.26.254
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 ...