Subject: Re: multiple =?iso-8859-1?Q?ip=B4s?=
To: Netbsd-Users <Netbsd-Users@NetBSD.org>
From: Christoph Kaegi <kgc@zhwin.ch>
List: netbsd-users
Date: 06/29/2004 09:52:30
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
----------------------------------------------------------------------