LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Anyone can have a look at my setting of DR?

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Anyone can have a look at my setting of DR?
From: "Leo" <fds3ssw@xxxxxxxxxxxx>
Date: Mon, 26 Jul 2004 18:42:25 -0500
With yours kindly help, I had build up a DR system, but the client can't access 
Director, here is my script and setting, Anyone can please have a look and give 
me some suggetion?


__________________________
Setting in Director:
Real IP address: 192.168.0.102
Virtual IP address: 192.168.0.11
(Director PC is in Microsoft VirualPC, it can ping lan and internet no problem)

ipvsadmi script in Director:
__________________________
#?/bin/bash
# set ip_forward OFF for vs-dr director (1 on, 0 off)
echo 0 > /proc/sys/net/ipv4/ip_forward
ifconfig  eth0:0 192.168.0.11 netmask 255.255.255.255 broadcast 192.168.0.255 up
ipvsadm -C
ipvsadm -A -t 192.168.0.11:80 -s wlc
# Set Real Server
ipvsadm -a -t 192.168.0.11:80 -r 192.168.0.103 -g
ipvsadm
___________________________

linux:/tmp # ipvsadm
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.0.11:http wlc
-> 192.168.0.103:http           Route   1      0          0

___________________________

linux:/tmp # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:03:FF:FF:D6:2F
         inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
         inet6 addr: fe80::203:ffff:feff:d62f/64 Scope:Link
         UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:5514 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2200 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:1943570 (1.8 Mb)  TX bytes:239729 (234.1 Kb)
         Interrupt:11 Base address:0xec00

eth0:0    Link encap:Ethernet  HWaddr 00:03:FF:FF:D6:2F
         inet addr:192.168.0.11  Bcast:192.168.0.255  Mask:255.255.255.255
         UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
         Interrupt:11 Base address:0xec00

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:74 errors:0 dropped:0 overruns:0 frame:0
         TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:4764 (4.6 Kb)  TX bytes:4764 (4.6 Kb)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            
        
And the real server is Windows 2000, the real IP is 192.168.0.103, I had add a 
Microsoft loopback device with virtual IP:192.168.0.11/255.255.255.255(changed 
the register)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
After that I try to access 192.168.0.102(Director) in the 
client(192.168.0.101), here is no response(Page Not found)
The physics connection is no problem, those 3 PCs can ping eachother 
successfully.

I don't know how to continue it, please give me a hand.

BTW: If all of the computers is in internet, the virtual ip still can be 
192.x.x.x or must be a unused internet IP like 4.1.2.254 etc?


¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Leo
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡fds3ssw@xxxxxxxxxxxx
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-07-26



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