From owner-freebsd-questions Thu Jun 7 15: 5: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.nbrewer.com (sparge.nbrewer.com [208.42.68.70]) by hub.freebsd.org (Postfix) with ESMTP id AD93A37B403 for ; Thu, 7 Jun 2001 15:05:00 -0700 (PDT) (envelope-from chris@nbrewer.com) Received: by mail.nbrewer.com (Postfix, from userid 1001) id 9EAC83830E5; Thu, 7 Jun 2001 17:04:59 -0500 (CDT) Date: Thu, 7 Jun 2001 17:04:59 -0500 From: Christopher Farley To: freebsd-questions@freebsd.org Subject: ifconfig aliases Message-ID: <20010607170458.C16752@northernbrewer.com> Mail-Followup-To: Christopher Farley , freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Northern Brewer, St. Paul, MN 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 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" # ifconfig xl0 xl0: flags=8843 mtu 1500 inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255 inet6 fe80::260:8ff:fea4:e9c3%xl0 prefixlen 64 scopeid 0x1 inet 10.0.0.32 netmask 0xffffffff broadcast 10.0.0.255 ether 00:60:08:a4:e9:c3 media: autoselect (100baseTX) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX -- Christopher Farley www.northernbrewer.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message