4.3.1. General LVS Networking Tips

4.3.1. General LVS Networking Tips

4.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 5.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