Subject: =?iso-8859-1?Q?RE:_multiple_ip=B4s?=
To: Netbsd-Users <Netbsd-Users@NetBSD.org>
From: Carlos Castro <castor@vivirasturias.com>
List: netbsd-users
Date: 06/29/2004 10:00:15
thanks!

I feel if it is not understood to me, my inlges is not very good

Sorry

Carlos Castro



-----Mensaje original-----
De: netbsd-users-owner@NetBSD.org
[mailto:netbsd-users-owner@NetBSD.org]En nombre de Christoph Kaegi
Enviado el: martes, 29 de junio de 2004 9:53
Para: Netbsd-Users
Asunto: Re: multiple ipīs


On 29.06-09:37, Carlos Castro wrote:
> I have a machine with NetBSD 1.6.2, a card of ethernet.
> Ipīs can be assigned to several, to a single card of ethernet.
> All ipīs is of the same rank .
>
> It is possible?.

If your question is, howto assign more than one ipadress to a single
ethernet card: Yes this is possible.

Look at the ifconfig(8) manpage and the alias parameter.

To have them automatically assigned at bootup, you can put the
following in your /etc/rc.conf, for example:

------------------------------- 8< -------------------------------
net_interfaces="fxp0"
ifconfig_fxp0="inet 1.2.3.4 netmask 255.255.255.0 media 100BaseTX mediaopt
full-duplex"
ifaliases_fxp0="1.2.3.5 255.255.255.0 1.2.3.6 255.255.255.0"
------------------------------- 8< -------------------------------

This gives you 3 adresses on your single fxp0.

Hope this helps

Chris

--
----------------------------------------------------------------------
Christoph Kaegi                                           kgc@zhwin.ch
----------------------------------------------------------------------