LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: First try to setip not working

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: First try to setip not working
From: Aniruddh Singh <aps@xxxxxxxxxxxxx>
Date: Fri, 13 Jan 2006 11:47:23 +0530
On Thu, 2006-01-12 at 21:39 -0800, Alexander Attarian wrote:
> Hello everyone. 
> 
> I've been reading all day today how to configure lvs with lvs-dr.
> I'll explain my network setup. I have a router with a public IP, and I have 
> three servers with public IPs as well.
> I have one director and two realservers. The director and the realservers 
> have  one nic each, eth0.
> On the director I have:
>                       eth0:      72.15.219.10 (public IP)
>                       eth0:99    72.15.219.11 (public vip)
>                       eth0:100   10.3.1.1     (private ip)
>                       gateway:   72.15.219.1 
> 
> 
> On the realserver I have:
>                       eth0:      72.15.219.12   (public ip)
>                       lo:0    72.15.219.11   (public vip)
>                       eth0:100   10.3.1.2       (private ip)
>                       gateway:   72.15.219.1 
> 
> Both nics are on the same switch. While I can ping the public IPs from each 
> machine, I cannot ping the private IPs. Does this mean that I cannot ip 
> alias private IPs, if eth0 is a public ip? 
you can ping private ip alias, check route (route -n) there should be
a route to your private network. (10.3.1.0  0.0.0.0  255.255.255.0 eth0)

> 
> Is it possible that when I try to ping 10.3.1.2 from the director, it 
> actualy goes to the router because of the gateway? I would think it would 
> find the realserver on the switch. 
yes it should find that.
> 
> Should I get a second nic for each machine? I need to mix the public and 
> private IPs unfortunately the way our setup is. 
it is always better to use second NIC for private network

> 
> Any help is highly appreciated! 
> 
> Thanks,
> Alex
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
-- 
Regards
Aniruddh Singh
System Administrator
Monster.com India Pvt. Ltd.
FC 23, Block B, 1st Floor, Sector 16A
Film City Noida 201301 U.P.



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