LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: VS_DR with redirect approach not work!

To: Nguyen Dang Phuoc Dong <dongnd@xxxxxxxxxxxx>
Subject: Re: VS_DR with redirect approach not work!
Cc: Linux Virtual Server <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Horms <horms@xxxxxxxxxxxx>
Date: Mon, 31 Jul 2000 00:52:29 -0700
On Mon, Jul 31, 2000 at 01:58:22PM +0700, Nguyen Dang Phuoc Dong wrote:
> Hello,
> 
> I have a problem with VS_DR.
> 
> My configuration:
> 
> + LinuxDirector:
> 
> - interface:
> 
> eth0 --> 10.0.0.1/255.0.0.0 (VIP)
> eth0:0 --> 172.16.1.254/255.255.0.0
> 
> - routing enabled
> 
> echo 1 > /proc/sys/net/ipv4/ip_forward
> 
> -ipvsadm
> 
> ipvsadm -A -t 10.0.0.1:80 -s wlc
> ipvsadm -a -t 10.0.0.1:80 -R 172.16.1.1 -g -w 1
> 
> + Real server (IP 172.16.1.1)
> 
> - interface
> 
> eth0 --> 172.16.1.1/255.255.0.0
> 
> - Apache is listening on all interface 0.0.0.0:80
> 
> - ipchains -A input -j REDIRECT 80 -d 10.0.0.1 80 -p tcp
> 
> - routing enabled
> 
> echo 1 >/proc/sys/net/ipv4/ip_forward
> 
> - Default gateway: 172.16.1.254
> 
> I use a client computer that has IP 10.0.0.2 connect to VIP 10.0.0.1 on port
> 80 and get timeout. VS_NAT works fine.
> 
> Any help wuold be greatly appreciated. Thanks in advance.

In general if you are using direct routing then you should
use a gateway other than the linux-director.

-- 
Horms


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