From owner-freebsd-java@FreeBSD.ORG Wed Mar 3 10:13:15 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 168D516A4CE for ; Wed, 3 Mar 2004 10:13:15 -0800 (PST) Received: from westbury.dixons.org (82-32-46-174.cable.ubr06.azte.blueyonder.co.uk [82.32.46.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id F30EB43D45 for ; Wed, 3 Mar 2004 10:13:13 -0800 (PST) (envelope-from jdd@dixons.org) Received: from localhost (jdd@localhost) by westbury.dixons.org (8.11.6/8.11.6) with ESMTP id i23IBSP34952; Wed, 3 Mar 2004 18:11:54 GMT (envelope-from jdd@dixons.org) Date: Wed, 3 Mar 2004 18:11:28 +0000 (GMT) From: Jim Dixon X-X-Sender: To: Erik Sliman In-Reply-To: <404604FC.1020506@openstandards.net> Message-ID: <20040303180844.M21204-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freedbsd.org cc: freebsd-java@freebsd.org Subject: Re: Multiple static IPs X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 18:13:15 -0000 On Wed, 3 Mar 2004, 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. It would help to know what kind of computer ;-) On FreeBSD, as I recall, the syntax is ifconfig vr0 inet 192.168.1.3 netmask 255.255.255.0 ifconfig vr0 inet 192.168.2.254 netmask 255.255.255.0 alias If you then do a ifconfig vr0 it will list all of the active aliases. -- Jim Dixon jdd@dixons.org tel +44 117 982 0786 mobile +44 797 373 7881 "Be liberal in what you accept, Jon Postel and conservative in what you send." RFC 793 http://jxcl.sourceforge.net Java unit test coverage http://xlattice.sourceforge.net p2p communications infrastructure