Denis Havlik wrote:
> :>Je souhaiterais comprendre le fonctionnement des ALIAS IP
> :>Ma machine � une carte ethernet eth0 avec 2 adresses IP
> :>
> :>J'�tais sous Mandrake 5.2 et avec le LinuxConf cela fonctionnait parfaitement
> :>Je suis pass� sous Mandrake 6.0 (MAJ) et bien que LinuxConf m'annonce que
> :>mon ALIAS �tait valide, cela ne fonctionnait pas.
> :>J'ai r�solu le probl�me en cr�ant � la main un fichier
> :>ifcfg-eth0:0 dans le chemin etc/sysconfig/network-scripts
> :>
> ...
>
> Hm. I do not understand French, but I get the feeling this guy wants to
> have 2 IP-adresses on a single ethernet card. It beets me. I understand
> the need for two names on a same IP, I also understand the idea of a
> machine with two network interfaces (i.e. bridge), but two IP-s on a
> single interface - what would that be good for?
>
> I suppose it cannot be done. But then again, I may have completely
> misunderstood the question. Anybody cares to pay french lessons for me?
>
> cu
> Denis
> -----------------------------------------------------------
> Denis Havlik ||| http://www.ap.univie.ac.at/users/havlik
> (@ @) [EMAIL PROTECTED]
> ---------oOO--(_)--OOo-------------------------------------
Ah, two IP addresses can be used to support a virtual host under Apache. Suppose
you have mydomain.com setup to listen to ip address x.x.x.x and you want to setup
mycompany.com on the same machine, that can be accomplished with ip aliasing.
First it has to be selected when compiling the kernel, then you can use
linuxconf(or the tool of your choice) to setup two ip addresses on the same nic.
Then you configure apache with a Virtual Host and voila.
Regards,
Michael