Netdev List
 help / color / mirror / Atom feed
From: "Ignacy Gawędzki" <i@lri.fr>
To: netdev@vger.kernel.org
Subject: Re: Adding routes to another table: no such process
Date: Tue, 7 Aug 2012 17:57:49 +0200	[thread overview]
Message-ID: <20120807155749.GA3058@zenon.in.qult.net> (raw)
In-Reply-To: <20120807141306.GB32655@zenon.in.qult.net>

On Tue, Aug 07, 2012 at 04:13:06PM +0200, thus spake Ignacy Gawedzki:
> Hi,
> 
> I'm having a hard time setting some routes on a router and can't find any
> relevant information anywhere, so I resort to asking on this list.
> 
> The router has one interface, say eth0, with configured address 10.0.0.1/32.
> 
> Now I would like to do:
> 
>   ip rule add from 10.0.0.1 table 100
>   ip route add 10.0.0.2/32 dev eth0 table 100
>   ip route add 10.0.0.3/32 via 10.0.0.2 table 100
> 
> but I get
> 
>   RTNETLINK answers: No such process

Okay, I think I got it right, at last.  Apparently it all depends on how the
rules are set up.

The rule to lookup table 100 when the source address is 10.0.0.1 doesn't
concern the general situation of route to 10.0.0.2/32 (for which packets may
have any source address).

The solution in my case is to put

  ip rule add to 10.0.0.0/8 table 100

Cheers,

Ignacy

-- 
:wq!

      reply	other threads:[~2012-08-07 15:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-07 14:13 Adding routes to another table: no such process Ignacy Gawędzki
2012-08-07 15:57 ` Ignacy Gawędzki [this message]

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=20120807155749.GA3058@zenon.in.qult.net \
    --to=i@lri.fr \
    --cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox