Re: destination-only IP aliases

kuznet@ms2.inr.ac.ru
Sun, 27 Jun 1999 17:43:02 +0400 (MSK DST)


Hello!

> I have a machine running 2.2.3 with the following IP addresses assigned:
> eth0 204.180.47.99 netmask 255.255.255.224
> eth0:0 209.43.25.195 netmask 255.255.255.0
> I would like to be able to "hide" the eth0:0 interface. By that I mean I
> don't want it to be used as the source address for any outgoing packets
> except when a another machine deliberately initiates a connection to it.

Just add it with netmask 255.255.255.255, then it will never be used
as source address. In this case you will have to add direct route by hands.
route add 209.43.25.0/24 dev eth0.

Actually, there exist more robust ways to do it, but
they seems to be not necessary in your case.

> If possible I don't want it to
> be listened to when a socket binds to INADDR_ANY, but this isn't as important
> as the first part.

It is impossible.

Alexey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/