From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew andrewd@uccsda.org Date: Fri, 17 Nov 2000 01:07:03 +0000 Subject: [LARTC] A complicated routing scenario (for me at least) Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org
Hey, I'm working on the rules and routes to implement what I've been talking
about, and I've got a small question about the ip rule add.

I'm trying to add a blackhole route, and ip rule add seems to insist that I
provide a lookup table with the route.

For instance If I execute the command:

"ip rule add from 0.0.0.0/0 type blackhole."

when I look at what it did with "ip rule ls" I see

"from all lookup main blackhole"

The only way it seems to get rid of main in the example above is
to define a dummy table and re-add the route like so:

"ip rule add from 0.0.0.0/0 lookup bit-bucket type blackhole."

Then when I see what's done with "ip rule ls" it says:

"from all lookup bit-bucket blackhole"

I suppose that's OK. Just seems a bit stilted. Does it matter that the
bit-bucket table might not contain any routes? In the case of a blackhole route,
does the kernel even perform the table lookup? Would leaving the default main in
have been OK?

-Andrew