LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: please help

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: please help
From: "dynnema" <dynnema@xxxxxxxxx>
Date: Fri, 22 Mar 2002 00:13:25 +0100
>>> Lets say I got one RS and two NAT DIRs.
>>> 
>>> RS:
>>> RIP1:   192.168.1.2/24 dev eth0
>>> RIP2    192.168.2.2/24 dev eth0:10
>>> 
>>> DIR1:
>>> VIP:    x.x.x.69        eth0:110
>>> DIP     192.168.1.1
>>> 
>>> DIR2:
>>> VIP:    x.x.x.70        eth0:110
>>> DIP     192.168.2.1
>>
>>.
>>> ip route add src 192.168.1.2 via 192.168.1.1
>>> 
>>> but then I can't add the second route:
>>> 
>>> ip route add src 192.168.2.2 via 192.168.2.1:
>>> 
>>> "RTNETLINK answers: File exists"
>>
>>that would seem to be a reasonable thing to do.
>>I don't know why it doesn't work. Hopefully
>>other more ip knowlegable people here can help.
>               ^ ^ ^
>   Can any | | |  help me?

I've helped myself ;) (I hope: works at home, haven't checked
at school yet).

Careful reading of IProute mailing list was very useful.

ip route add src 192.168.2.2 via 192.168.2.1
            ^^^
Should be:

ip route append src 192.168.2.2 via 192.168.2.1

M.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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