Re: aliasing IPs to ethX:X vs lo:X?

kuznet@ms2.inr.ac.ru
Wed, 23 Jun 1999 16:23:34 +0400 (MSK DST)


Hello!

> What is the most "correct" way to alias ip addresses to ethernet devices?
> From all the documentation it says you should alias IP's to ethX:X but what
> if you have a multihomed machine? I would guess aliasing the IP's to lo:X
> would be better, but does that cause any problems (routing/arp)?

It will not result in any problems. Such setup is valid.

Actually, one of the most paradoxical but still valid setups
is when physical interfaces have no addresses at all,
and all the host addresses are attached to loopback.

Mapping address <-> interface is required only by a few bsd derived
control programs (sort of gated), but even they may be fixed not to rely
on such mapping too much.

> How does Linux handle IP's aliased on lo?

Exactly as all another ones.

Alexey Kuznetsov

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