one computer two ip address

HillarP hillar.poldmaa at
Tue Oct 28 18:33:00 UTC 2008

Marius Gedminas wrote:

> I have to admit that I never understood the point of the alias
> interfaces.  I always did
> auto eth0
>         iface eth0 inet static
>         address
>         netmask
>         gateway
>         up ip addr add dev eth0
>         up ip addr add dev eth0
> and it worked fine.

It's not a good idea. Most of applications send their request to IP address.
If there is only one device, it must deal with all those requests and
figure out an application to whom those must forwarded. Also application
sends answer and there isn't determined which IP address the answer gets.
If you have different interfaces, you can determine what interface (and IP
address) are used. Also can you set up virtually separated networks.

With best regards

More information about the ubuntu-users mailing list