From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arthur van Leeuwen arthurvl@sci.kun.nl Date: Fri, 17 Nov 2000 13:00:05 +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
On Thu, 16 Nov 2000, Andrew wrote:

> 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"

Try using   ip rule add priority 256 from 0.0.0.0/0 type blackhole

Doei, Arthur. (There's some hints as to the priority being required in the
               IP command reference)

-- 
  /\    / |      arthurvl@sci.kun.nl      | Work like you don't need the money
 /__\  /  | A friend is someone with whom | Love like you have never been hurt
/    \/__ | you can dare to be yourself   | Dance like there's nobody watching