Red Hat LINUX VIRTUAL SERVER 4.7 - ADMINISTRATION Przewodnik Instalacji Strona 28

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 59
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 27
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.26.9
NETMASK=255.255.255.0
GATEWAY=192.168.26.254
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 configure the public and private floating IP
addresses the administrator should use the Piranha Configuration Tool, as shown in
Section 4.4,GLOBAL SETTINGS and Section 4.6.1,T he 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 network on the primary node, it must
also connect to the public network on the backup node as well.
3.1.2. Routing on the Real Servers
The most important thing to remember when configuring the real servers network interfaces in a NAT
topology is to set the gateway for the NAT floating IP address of the LVS router. In this example, that
address is 10.11.12.10.
Note
Once the network interfaces are up on the real servers, the machines will be unable to ping or
connect in other ways to the public network. This is normal. You will, however, be able to ping the
real IP for the LVS router's private interface, in this case 10.11.12.8.
So the real server's /etc/sysconfig/network-scripts/ifcfg-eth0 file could look similar to this:
Chapter 3. Setting Up LVS
25
Przeglądanie stron 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 58 59

Komentarze do niniejszej Instrukcji

Brak uwag