From owner-freebsd-questions Fri Jun 8 1:40:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from discus.nl.uu.net (discus.nl.uu.net [193.67.79.178]) by hub.freebsd.org (Postfix) with ESMTP id 6CB9837B403 for ; Fri, 8 Jun 2001 01:40:35 -0700 (PDT) (envelope-from arjan@jak.nl) Received: from 1Cust220.tnt8.rtm1.nl.uu.net ([213.116.110.220]:1087 "EHLO jak.nl") by discus.nl.uu.net with ESMTP id ; Fri, 8 Jun 2001 10:40:26 +0200 Message-ID: <3B208F90.8BF49BFC@jak.nl> Date: Fri, 08 Jun 2001 10:40:48 +0200 From: Arjan Knepper Organization: JAK++ Software Development B.V. X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Christopher Farley Cc: freebsd-questions@freebsd.org Subject: Re: ifconfig aliases References: <20010607170458.C16752@northernbrewer.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Christopher Farley wrote: > A machine's primary IP address on the xl0 interface is 10.0.0.2. > For the purposes of running a webserver, I have an IP alias on the > same interface: 10.0.0.32 > > The machine now advertises itself to my network as 10.0.0.32. > > Is there a way to force this machine to advertise itself as it's primary > IP address, 10.0.0.2? > > Attached are the relevant lines from rc.conf, and an ifconfig xl0 > > # cat /etc/rc.conf | grep xl0 > network_interfaces="xl0 lo0" > ifconfig_xl0="inet 10.0.0.2 netmask 255.255.255.0" > ifconfig_xl0_alias0="inet 10.0.0.32 netmask 255.255.255.255 broadcast 10.0.0.255" Should be: ifconfig_xl0_alias0="inet 10.0.0.2 netmask 255.255.255.0" ifconfig_xl0_alias1="inet 10.0.0.32 netmask 255.255.255.255 broadcast 10.0.0.255" Arjan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message