Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] LVS Clarification

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


ChithiraiVadivu.Subramanian at honeywell

Jul 23, 2009, 2:10 AM

Post #1 of 3 (855 views)
Permalink
[lvs-users] LVS Clarification

Hi,



Having one clarification in LVS-NAT. Can we connect to VIP from Real
Server which is routed to the same real server?



Configuration:
Load Balancer has 2 NICs one is connected to external network (VIP) and
the other to the internal network to which Real Server 1 & 2 is
connected.
The gateway for Real server 1 and 2 are configured to be the Load
Balancer's internal network.

Virtual Service Configuration:
LoadBalancer VIP:80 rr Weight
RealServer1 RS1:80 1
RealServer2 RS2:80 1

The internal routing in RealServer is removed and

netstat -r shows

link-local * 255.255.0.0 U 0 0 0
eth0
default director 0.0.0.0 UG 0 0 0
eth0


Testing scenario:

When external client is accessing VIP:80 it works perfectly. First it is
routed to RS1 and then to RS2 and again to RS1 ....

>From RS1 -
Trying to access http://VIP:80 and tcpdump is used for debugging
1. When VIP routes the call to RS2:80, RS1 is getting ack and
works fine.
2. When VIP routes the call to RS1:80 no ack signal is received
and keeps sending the request.
tcpdump in LoadBalancer at this stage:
RS1->VIP
RS1->RS1
RS1->VIP
RS1->RS1
and this goes on...

Is anything needs to be done apart from these setup?



Thanks & Regards,

Chithra.S





_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


jmack at wm7d

Jul 23, 2009, 4:57 AM

Post #2 of 3 (804 views)
Permalink
Re: [lvs-users] LVS Clarification [In reply to]

On Thu, 23 Jul 2009, Subramanian, ChithiraiVadivu (IE10) wrote:

> Having one clarification in LVS-NAT. Can we connect to VIP from Real
> Server which is routed to the same real server?

look in the HOWTO on clients on realservers

Joe
--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


ChithiraiVadivu.Subramanian at honeywell

Jul 24, 2009, 3:01 AM

Post #3 of 3 (790 views)
Permalink
Re: [lvs-users] LVS Clarification [In reply to]

Configured LVS-NAT with reference to RealServer as LVS Client as per
section 12.2. in HOWTO.

Followed Julian's solution for one Network LVS-NAT. Able to connect from
one RS1 to other RS2 but not from RS1 to the same RS1 through VIP.



Configuration is as:
Load Balancer has 2 NICs one is connected to external network (VIP) and
the other to the internal network to which Real Server 1 & 2 is
connected.
The gateway for Real server 1 and 2 are configured to be the Load
Balancer's internal network.

Virtual Service Configuration:
LoadBalancer VIP:80 rr Weight
RealServer1 RS1:80 1
RealServer2 RS2:80 1

The internal routing in RealServer is removed and

netstat -r shows

link-local * 255.255.0.0 U 0 0 0
eth0
default director 0.0.0.0 UG 0 0 0
eth0


Testing scenario:

When external client is accessing VIP:80 it works perfectly. First it is
routed to RS1 and then to RS2 and again to RS1 ....

>From RS1 -
Trying to access http://VIP:80 and tcpdump is used for debugging
1. When VIP routes the call to RS2:80, RS1 is getting ack and
works fine.
2. When VIP routes the call to RS1:80 no ack signal is received
and keeps sending the request.
tcpdump in LoadBalancer at this stage:
RS1->VIP
RS1->RS1
RS1->VIP
RS1->RS1
and this goes on...

Is anything needs to be done apart from these setup?



Thanks & Regards,

Chithra.S





_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.