3.3.1. General LVS Networking Tips

3.3.1. General LVS Networking Tips

Configure the real IP addresses for both the public and private networks on the LVS routers before attempting to configure the cluster using the Piranha Configuration Tool. The sections on each topology give example network addresses, but the actual network addresses are needed. Below are some useful commands for bringing up network interfaces or checking their status.

Bringing Up Real Network Interfaces

To bring up a real network interface, use the following command as root, replacing N with the number corresponding to the interface (eth0 and eth1).

/sbin/ifup ethN

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 4.8, “Starting the Cluster” for details).

Bringing Down Real Network Interfaces

To bring down a real network interface, use the following command as root, replacing N with the number corresponding to the interface (eth0 and eth1).

/sbin/ifdown ethN

Checking the Status of Network Interfaces

If you need to check which network interfaces are up at any given time, type the following:

/sbin/ifconfig

To view the routing table for a machine, issue the following command:

/sbin/route


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-4 because CentOS-4 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-4 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.