All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc-Christian Petersen <m.c.p@gmx.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] RE: [LARTC] Load Balance simply doesn´t work...
Date: Tue, 31 Aug 2004 15:02:09 +0000	[thread overview]
Message-ID: <200408311702.09750@WOLK> (raw)
In-Reply-To: <1093602365.412f0c3e0230a@www.ire.pw.edu.pl>

On Thursday 26 August 2004 15:06, Marcos Schonfeld wrote:

Hi Marcos,

> ip route add $P1_NET dev $IF1 src $IP1 table 10
> ip route add default via $P1 table 10
> ip route add $P2_NET dev $IF2 src $IP2 table 20
> ip route add default via $P2 table 20
>
> ip route add $P1_NET dev $IF1 src $IP1  # This may be not necessary
> ip route add $P2_NET dev $IF2 src $IP2  # This may be not necessary
>
> ## ip route add default via $P1  ## You don't have to set this default
> gw, because you'll be routing accross this gateway instead of doing
> load-balance
>
> ip rule add from $IP1 table T1
> ip rule add from $IP2 table T2

shouldn't this be table 10 and table 20? :)

anyway, I have a problem settings this up. I get:


ip route add 212.71.142.210/29 dev eth1 src 212.71.142.210 table 10
RTNETLINK answers: Invalid argument

ip route add default via 212.71.142.209 table 10
ip route add 61.212.57.152/29 dev eth2 src 61.212.57.152 table 20
ip route add default via 61.212.57.153 table 20

ip route add 212.71.142.210/29 dev eth1 src 212.71.142.210
RTNETLINK answers: Invalid argument

ip route add 61.212.57.152/29 dev eth2 src 61.212.57.152
RTNETLINK answers: File exists

ip rule add from 212.71.142.210 table 10
ip rule add from 61.212.57.152 table 20

strace from 1st RTNETLINK invalid argument:

....
controllen=0, msg_flags=0}, 0) = 36
dup(2)                                  = 4
fcntl64(4, F_GETFL)                     = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat64(4, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x4b3ed000
_llseek(4, 0, 0xb8526df0, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(4, "RTNETLINK answers: Invalid argum"..., 36) = 36
close(4)                                = 0
munmap(0x4b3ed000, 4096)                = 0
brk(0)

any idea what I am doing wrong?

Thanks alot.

-- 
ciao, Marc

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2004-08-31 15:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-27 10:26 [LARTC] RE: [LARTC] Load Balance simply doesn´t work Robert Kurjata
2004-08-31 15:02 ` Marc-Christian Petersen [this message]
2004-08-31 15:32 ` Marc-Christian Petersen
2004-09-01  9:25 ` Marc-Christian Petersen
2004-09-03  8:29 ` Robert Kurjata
  -- strict thread matches above, loose matches on Subject: below --
2004-08-26 13:06 Marcos Schonfeld
2004-08-27  4:47 ` Ming-Ching Tiew
2004-08-27  6:43 ` Julian Anastasov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408311702.09750@WOLK \
    --to=m.c.p@gmx.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.