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
|