All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julian Anastasov <ja@ssi.bg>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Problems with routes
Date: Wed, 05 Jun 2002 20:43:44 +0000	[thread overview]
Message-ID: <marc-lartc-102330982404770@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102327976303588@msgid-missing>


	Hello,

On 5 Jun 2002, Alexander Brill wrote:

> Whenever I try to 'readd' a route I receive an error and I can't figure
> out why...
>
> # Add some routes
> ip route add $EXT via $INT
> ip route add prio 320 from $INT nat $EXT

ip rule add prio 320 from $INT nat $EXT

> # Delete them
> ip route del from $INT nat $EXT

ip route del prio 320 from $INT nat $EXT

> ip route del $EXT via $INT
> # Add again
> ip route add $EXT via $INT
> ip route add prio 320 from $INT nat $EXT

ip rule add prio 320 from $INT nat $EXT

> The last command exits with exit-code '2' and the message:
> RTNETLINK answers: Invalid argument

	May be not only the last one :)

> What am I doing wrong?

	Use ip rules for SNAT and ip routes for DNAT

Regards

--
Julian Anastasov <ja@ssi.bg>

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

  reply	other threads:[~2002-06-05 20:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-05 12:21 [LARTC] Problems with routes Alexander Brill
2002-06-05 20:43 ` Julian Anastasov [this message]
2002-06-06  7:45 ` Alexander Brill

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=marc-lartc-102330982404770@msgid-missing \
    --to=ja@ssi.bg \
    --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.