Hello,
I'm trying to set up LVS using Lar's method (as described in the LVS howto).
My setup:
________
| |
| client |
|________|
CIP=somewhere
|
(router)
|
VIP=157.193.49.102 (eth0, arps)
__________
| |
| director |
|__________|
DIP=10.1.49.102 (eth1, arps)
|
|
------------------
| |
| |
RIP1=10.1.49.95 RIP2=10.1.49.96
VIP=157.193.49.102 VIP=157.193.49.102 arp)
_____________ _____________
| | | |
| realserver | | realserver |
|_____________| |_____________|
| (*) | (**)
(router) (router)
| |
----------------------------------------------> to client
However I don't understand the following:
Can (*) and (**) be on the same network as the VIP ?
I've tried to set it up but it doesn't work. When I ping the virtual ip
adres, RS1 or RS2 answer.
langoest:~# ipvsadm -l
IP Virtual Server version 1.0.12 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 157.193.49.102:imaps wlc
-> 10.1.49.96:imaps Route 1 0 0
-> 10.1.49.95:imaps Route 1 0 0
On RS1 and RS2 I have:
lo:0 Link encap:Local Loopback
inet addr:157.193.49.102 Mask:255.255.255.255
UP LOOPBACK RUNNING MTU:16436 Metric:1
krab:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
157.193.49.102 0.0.0.0 255.255.255.255 UH 0 0 0 lo
157.193.49.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
0.0.0.0 157.193.49.254 0.0.0.0 UG 0 0 0 eth0
Shall I conclude that the not private NIC should be on an other network
that the VIP?
Thanks in advance,
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert e-mail: Rudy.Gevaert@xxxxxxxx
Directie ICT, Afdeling Infrastructuur
Groep Systemen tel: +32 9 264 4734
Universiteit Gent / Ghent University fax: +32 9 264 4994
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|