I GOT IT!!!!
Maybe its stupid and everybody already knows that, but I just figured out
whats going on and I got it running, so here goes the solution, maybe this
can help someone.
I have 2 nic cards on my director with 2 different ips, from 2 different
networks.
I found that I cannot use both ips at same time for lvs, coz I need 1 ip to
be doing nothing and being the default route. this ip I cannot set on my
real server.
I took 2 servers in the same situation, 2 lines each, I put 1 line of each
server on tunl0:0 and tunl0:1 on my real server and its now working just
fine.
Thanks for all the efforts and all your attention.
That list rocks!
Leni
----- Original Message -----
From: "Easytrans Systems (Laurie Baker)" <lvs@xxxxxxxxxxxxx>
To: "LinuxVirtualServer.org users mailing list."
<lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Sunday, August 03, 2003 5:01 AM
Subject: RE: Problem when using aliased interfaces on realservers
> Viperman Sent the following on: 03 August 2003 07:02
> Subject: Problem when using aliased interfaces on realservers
>
> >I'm running LVS with IP TUN pretty fine, but now when trying to do a new
> >thing, I can't get it going.
>
> >On the real server, if I do that
>
> >ifconfig tunl0 0.0.0.0 up
>
> Why 0.0.0.0 ?
> That looks strange to me (but what do I know?) ....
>
> >echo 1 > /proc/sys/net/ipv4/conf/all/hidden
> >echo 1 > /proc/sys/net/ipv4/conf/tunl0/hidden
> >ifconfig tunl0:0 VIP-1 netmask 255.255.255.255 up
>
> >it works fine, np at all
>
> Yes I don't doubt that for a single tunnel.
>
> >now, if I add another VIP, like this
>
> >ifconfig tunl0:1 VIP-2 netmask 255.255.255.255 up
>
> Hmm... So I would have thought that each tunnel should have a unique or am
I
> being a fool and you have defined VIP-1 & VIP-2 in the hosts file
somewhere?
> if so what is the "ifconfig tunl0 0.0.0.0 up" all about?
>
> >it stops working.
> >I tried to add the routes like
>
> >route add -host VIP-1 dev tunl0:0
> You mean: route add -host VIP-1 dev tunl0 ?? Ok same thing I guess!
>
> >route add -host VIP-2 dev tunl0:1
>
> >but no luck.
>
> >Any guess? Am I missing something here?
>
> >Thanks for your attention.
>
> >Leni
>
>
> My limited knowledge thinks that you would need something along the lines
> of:
>
> /sbin/ifconfig tunl0 192.168.1.100 netmask 255.255.255.255 broadcast
> 192.168.1.100 up
> /sbin/route add -host 192.168.1.100 dev tunl0
> and
> /sbin/ifconfig tunl0:1 192.168.1.200 netmask 255.255.255.255 broadcast
> 192.168.1.200 up
> /sbin/route add -host 192.168.1.200 dev tunl0:1
>
> Don't quote me on in this but it might get you thinking while the others
> sleep off them "Saturday blues"
>
> Laurie
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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
>
|