Re: IP Alias

Matti Aarnio (matti.aarnio@sonera.fi)
Fri, 27 Nov 1998 12:08:46 +0200 (EET)


> And more questions from me:
>
> 8) Why ifconfig does not show aliases of an interface in 2.1.*
> (in 2.0 it does show)? But I can still add them and use them...

FAQ: The 'ifconfig' program needs to be upgraded to one understanding
the new mechanism, the old program will not find the new aliases.

> 9) Is it possible to establish a connection from an alias IP?
> Say, if I have eth0 with address 1.2.3.4 and alias eth0:0 with address
> 1.2.3.5, how can I connect to a host acme.com from IP address 1.2.3.5,
> not from 1.2.3.4.

Sure, your program must do a bind() to desired local IP address
(with in_port == 0) before doing connect().

> Regards,
> Alexander

/Matti Aarnio <matti.aarnio@sonera.fi>

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