LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS and FreeBSD real servers?

To: Jeremy Hansen <jeremy@xxxxxxxxxxxxx>
Subject: Re: LVS and FreeBSD real servers?
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Ratz <ratz@xxxxxx>
Date: Sat, 25 Mar 2000 21:43:23 +0100
Jeremy Hansen wrote:
> 
> I'll tell you as much as I can about the FreeBSD box, but I'm not a bsd
> guy at all.  These BSD boxes were existing machines.

I'm not the FreeBSD guy too. I was just setting up all kind of Unix
flavors to test LVS-DR. (for Joe: OpenBSD will follow! ) :) 

> 
> I'm using DR.  Here's the setup in the load balancer:
> 
> ld1:~# ipvsadm -L -n
> IP Virtual Server version 0.9.8 (size=8192)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port          Forward Weight ActiveConn InActConn
> TCP  216.99.99.2:25 wlc
>   -> 216.99.99.9:25              Route   1      0          0
>   -> 216.99.99.15:25             Route   1      0          0
>   -> 216.99.99.14:25             Route   1      0          0
> 
> eth0      Link encap:Ethernet  HWaddr 00:D0:B7:40:8E:49
>           inet addr:216.99.99.12  Bcast:216.99.99.31  Mask:255.255.255.224
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:19840 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:9103 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           Interrupt:10 Base address:0xdf00
> 
> eth0:0    Link encap:Ethernet  HWaddr 00:D0:B7:40:8E:49
>           inet addr:216.99.99.13  Bcast:216.99.99.13  Mask:255.255.255.255
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           Interrupt:10 Base address:0xdf00
> 
> ld1:~# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 216.99.99.12    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
> 216.99.99.13    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
> 216.99.99.0     0.0.0.0         255.255.255.224 U     0      0        0 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
> 0.0.0.0         216.99.99.1     0.0.0.0         UG    0      0        0 eth0
> 
> Here is the bsd real server:
> 
> fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 216.99.99.14 netmask 0xffffffe0 broadcast 216.99.99.31
>         ether 00:90:27:af:b4:da
>         media: autoselect (100baseTX <full-duplex>) status: active
>         supported media: autoselect 100baseTX <full-duplex> 100baseTX 
> 10baseT/UTP <full-duplex> 10baseT/UTP
> 
> lo0: flags=80c9<UP,LOOPBACK,RUNNING,NOARP,MULTICAST> mtu 16384
>         inet 216.99.99.12 netmask 0xffffffff
>         inet 127.0.0.1 netmask 0xff000000
>         inet 216.99.99.13 netmask 0xffffffff
> 
> imp1:~# netstat -rn
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags     Refs     Use     Netif Expire
> default            216.99.99.1        UGSc       32      283     fxp0
> 127.0.0.1          127.0.0.1          UH          0        0      lo0
> 216.99.99/27       link#1             UC          0        0     fxp0
> 216.99.99.1        0:0:c:7:ac:0       UHLW       33        0     fxp0 814
> 216.99.99.6        0:90:27:a5:70:41   UHLW        0       31     fxp0 89
> 216.99.99.9        link#1             UHLW        1   104568     fxp0
> 216.99.99.12       216.99.99.12       UH          0       22      lo0
> 216.99.99.13       216.99.99.13       UH          0        0      lo0
> 216.99.99.14       0:90:27:af:b4:da   UHLW        1        2      lo0
> 216.99.99.15       0:90:27:73:8f:34   UHLW        0   189575     fxp0 685
> 
> imp1:~# uname -a
> FreeBSD imp1.xxx.com 3.3-RELEASE FreeBSD 3.3-RELEASE #0: Wed Dec 8 22:51:44 
> GMT 1999 root@xxxxxxxxxxxxxxxxxxxxx:/usr/src/sys/compile/SIFT-SMP i386
> 
> I don't know what else you need.  Let me know.   
I can't really draw your network setup: How did you intend to use the
LVS?      
                        _______
                       |       |
                       |   R   |
                       |_______|
                       ~.1 |
                           |           
                           |       __________
                           | ~.12 |          |
                           |------|    LB    | VIP: ~.2, ~.12, ~.13 ?
                           |      |__________|
                           |
                           |
          216.99.99.0/27   |
         -------------------------------------
         |                 |                 |
         | ~.9             | ~.14            | ~.15
    ____________      ____________      ____________
   |            |    |            |    |            |
   |     BSD    |    |     BSD    |    |     BSD    |
   |____________|    |____________|    |____________|

    


I can't really draw your network setup: Could you help me? According to
the FreeBSD machine, your VIP are ~.12 and ~.13. According to the
ipvsadm -L -n your VIP is ~.2. Some network setup on your Linux machine
is fishy. But it's strange, that it works!

Roberto Nibali, ratz


<Prev in Thread] Current Thread [Next in Thread>