LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: a probelm about VS-TUN

To: He Weitao <hewt@xxxxxxxxxx>
Subject: Re: a probelm about VS-TUN
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Sun, 26 Mar 2000 20:56:52 +0800 (CST)


On Fri, 24 Mar 2000, He Weitao wrote:

>      thanks, I have made a test successfully in A subnet using VS-TUN,
> while when I try to make the test in TWO subnets, some strange thing
> happened,
> DIP=192.168.2.3
> VIP=172.16.2.41
> CIP=172.16.2.63
> RIP=192.168.2.1
> 
> the director act as router at the same time,
> I can ping from RIP to CIP or from CIP to RIP, and
> I also can telnet from CIP to RIP,while when I telnet
> from CIP to VIP, it failed, in RIP machine, the command
> 'netstat -n' shows something as follow:
> 
> tcp        0      0 172.16.2.41:23          172.16.2.63:3821        SYN_RECV
> 
> and in DIP machine, the command 'ipvsadm -ln' shows:
> 
> [root@faint /root]# ipvsadm -ln
> IP Virtual Server version 0.9.8 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port          Forward Weight ActiveConn InActConn
> TCP  172.16.2.41:23 wlc
>   -> 192.168.2.1:23                     Tunnel         1             0
> 1
> 

Well, have you configured 172.16.2.x address on your real server? The real
server should be directly connected to the client. If so, then you may
meet the arp problem. please read www.linuxvirtualserver.org/arp.html,
which might help.

Thanks,

Wensong 

>     thanks for any comments
> 
> ttao.
> 
> ----- Original Message -----
> 发件人: Wensong Zhang <wensong@xxxxxxxxxxxx>
> 收件人: He Weitao <hewt@xxxxxxxxxx>
> 抄送: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
> 发送时间: 2000年3月24日 10:19
> 主题: Re: a probelm about VS-TUN
> 
> 
> >
> >
> >
> > On Thu, 23 Mar 2000, He Weitao wrote:
> >
> > >     I wander two questions:
> > > 1. how many realservers can be extended in the VS-TUN method?
> > >
> >
> > It depends on your network applications and your real server throughput.
> > If incoming requests carry less data (such as http service), you can have
> > a large amount of general servers (50 or 100).
> >
> > > 2. the realservers in VS-TUN can use private IP such as 192.168.1.0?
> > >
> > >                       _________ 202.103.88.221
> > >                      |          |  (director have 2 NICs)
> > >                      | director |
> > >                      |__________|192.168.1.1
> > >                           |
> > >                           |
> > >                           |
> > >           ------------------------------------
> > >           |                  |               |
> > >           |                  |               |
> > >           |                  |               |
> > >     ____________      ____________    ____________
> > >    |            |    |            |  |            |
> > >    | realserver |    | realserver |  | realserver |
> > >    |____________|    |____________|  |____________|
> > >    192.168.1.2(eth0) 192.168.1.3(eth0) 192.168.1.4(eth0)
> > >     VIP(tunl0)            VIP(tunl0)    VIP(tunl0)
> > >
> > >     the director and realservers are all linux (2.2.14),all NICs are
> 100M.
> > >     if the director have two NICs,
> eth0(202.103.88.221),eth1(192.168.1.1),
> > > then does the VIP should be 202.103.88.221?
> > >     To realize the Virtual Server in this way, does all the throughput
> > > SHOULD pass through director? then I am afraid it will be the bottleneck
> of
> > > whole system? can I make the realservers connect directly to client?
> >
> > Yes, you can, you have to configure external IP addresses on those real
> > servers so that they can reach clients directly, then the whole throughput
> > will be much higher.
> >
> > Wensong
> >
> >
> >
> 



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