netdev
[Top] [All Lists]

Re: external static routes to local interfaces

To: neal@xxxxxxxxx (Neal Cardwell)
Subject: Re: external static routes to local interfaces
From: kuznet@xxxxxxxxxxxxx
Date: Sat, 8 Jan 2000 15:58:41 +0300 (MSK)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <Pine.BSF.4.10.10001061332460.92859-100000@xxxxxxxxxxxxxx> from "Neal Cardwell" at Jan 7, 0 01:13:06 am
Sender: owner-netdev@xxxxxxxxxxx
Hello!

> But despite this routing table, packets bound for <A> do *not* go to the
> gateway, but rather through the loopback interface.
> 
> Is this a bug or a feature? How do i do this in Linux?

It is overriden by route, which is invisible with "route".
You may delete it with "ip route" but you will not achieve desired
result in any case.

To summarize, it is impossible. System has single route for each destination,
so that deleting loopback route will route packets to the place,
which you ordered, but packets will _not_ be accepted locally.

Alexey

<Prev in Thread] Current Thread [Next in Thread>