From owner-freebsd-newbies@FreeBSD.ORG Wed Mar 3 08:42:32 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D797216A4D1 for ; Wed, 3 Mar 2004 08:42:32 -0800 (PST) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id A076B43D2D for ; Wed, 3 Mar 2004 08:42:32 -0800 (PST) (envelope-from kdk@daleco.biz) Received: from daleco.biz ([69.27.131.0]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.0); Wed, 3 Mar 2004 10:42:52 -0600 Message-ID: <40460AF1.5070800@daleco.biz> Date: Wed, 03 Mar 2004 10:42:25 -0600 From: "Kevin D. Kinsey, DaleCo, S.P." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Erik Sliman References: <40460642.2030001@openstandards.net> In-Reply-To: <40460642.2030001@openstandards.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Mar 2004 16:42:53.0031 (UTC) FILETIME=[927A5F70:01C4013E] cc: freebsd-newbies@freebsd.org Subject: Re: Creating multiple static IPs X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 16:42:33 -0000 Erik Sliman wrote: > How do you give a computer multiple static IPs? > > I've tried many things, including the ifaliases setting in rc.conf: > > ifconfig_vr0="inet 192.168.1.3 netmask 255.255.255.0" > ifaliases_vr0="192.168.1.36 255.255.255.0" > > but none seem to work. _______________________________________________ > Obligatory comment: is that a question? You have heard about "freebsd-questions@freebsd.org" .... Now that I've covered my communal 'tail': Don't you mean "How do you give an interface multiple static IPs?" I mean, you could just install two NICS .... :-) The correct syntax is in the handbook, section 6.9, but you're very close.... Also, note in ifconfig(8): alias Establish an additional network address for this interface. This is sometimes useful when changing network numbers, and one wishes to accept packets addressed to the old interface. If the address is on the same subnet as the first network address for this interface, a non-conflicting netmask must be given. Usually 0xffffffff is most appropriate. So you may need to compute another netmask for the alias address. HTH, Kevin Kinsey DaleCo, S.P.