LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Multiple NICS - Real Servers

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Multiple NICS - Real Servers
From: "Michael McConnell" <michaelm@xxxxxxxxxxx>
Date: Mon, 6 Aug 2001 17:01:27 -0700
You have a LVS NAT configuration.
 
LVS = 2 NICS
eth0 10.2.1.1
eth0:1 192.168.0.1
eth1 10.2.1.2
eth1:1 192.168.0.2
 
Real Servers = 2 NICS
eth0 192.168.0.10
eth1 192.168.0.20
 
You want to take advantage of the DUAL NICS in the real server to provide additional redundancy.
Unforchunately the Default GW issue comes up....
 
 
            ================
            -    outside 10.1.1.1   -
            -    outside 10.1.1.2   -
            ================
            - inside 192.168.0.1  -
            - inside 192.168.0.2 -
            ================
                           |
                           |
                           |
                           |
    ---- NIC1 ----------|----- NIC2 --------
    |192.168.0.10    |   192.168.0.20|                          
    ------------------------------------------------
        Default GW 192.168.0.1
 
The real servers routing table looks something like this
 
192.168.0.0    0.0.0.0    255.255.255.0    U    0    0    eth0
192.168.0.0    0.0.0.0    255.255.255.0    U    0    0    eth1
0.0.0.0           192.168.0.1   0.0.0.0        UG    1    0    eth0
0.0.0.0           192.168.0.2   0.0.0.0        UG    2    0    eth1
 
This routing table would work fine for a Router, in the event that eth0 did not work it would go to the next metric eth1. But unforchunately PING and Apache are not going to do this, they are trying to send there packets out the first listed interface and that is it.
 
Any idea how I can actually have the 2nd metric used in the event that the first default gw is offline.
 
Anyone have any suggestions as to how I can solve this?
 
Thanks, Mike
<Prev in Thread] Current Thread [Next in Thread>