[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] assigner plusieurs ip à un device réseaux




Olivier Loschi wrote:

> Salut,
>
> Je suis novice sous Linux et je voudrais assigner plusieurs ip alias à ma
> carte réseau.
>
> Sous FreeBSD, pas de problèmes ->
>
> ifconfig ep0 192.168.1.10
> ifconfig ep0 192.168.1.11 alias netmask 0xFFFFFFFF
>
> Quelqu'un connait-il une commande équivalente sous Linux? J'ai cherché mais
> pas trouvé.

oui

il faut utiliser :[0-9] apres eth0, par exemple :

ifconfig eth0 192.168.1.10
ifconfig eth0:1 192.168.1.11
ifconfig eth0:2 192.168.1.12

je pense qu'on peut utiliser eth0:0 aussi, a essayer

> Le but est de créer des VirtualHost Apache sur une meme machine.
>

nous vivons dans un monde libre ...

>
> Merci
>

--

        Spineux Alain

Romani ite domus.
======================================================================
  Spineux Alain                         E-MAIL : spineux@prm.ucl.ac.be
  INSTITUT STEVIN
  Catholic University of Louvain        FAX    : 32-10-472501
  PLACE DU LEVANT 2                     PHONE  : 32-10-472516
  B-1348 LOUVAIN-LA-NEUVE (BELGIUM)
=======================================================================


---------
This message was send by Majordomo 1.94.3. Please repport problems to
manu@rtfm.be. If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.