From owner-freebsd-isp Thu May 20 13:47:17 1999 Delivered-To: freebsd-isp@freebsd.org Received: from roble.com (roble.com [199.108.85.50]) by hub.freebsd.org (Postfix) with ESMTP id 86E5D154B4 for ; Thu, 20 May 1999 13:47:15 -0700 (PDT) (envelope-from sendmail@roble.com) Received: from roble2.roble.com (roble2.roble.com [199.108.85.52]) by roble.com (Roble1b) with SMTP id NAA01154 for ; Thu, 20 May 1999 13:47:18 -0700 (PDT) Date: Thu, 20 May 1999 13:47:13 -0700 (PDT) From: Roger Marquis To: freebsd-isp@FreeBSD.ORG Subject: Re: ifconfig_if0_alias? In-Reply-To: <19990520160813.A15580@infoteam.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > for h in $aliases1; do > ifconfig fxp0 inet 207.246.84.$h netmask 255.255.255.255 alias > done This will work assuming no deamons are expecting to listen on those interfaces before they are created. One place where you might see a problem is with inetd, named, or any_other_d configured in /etc/rc.conf when the ifconfig_aliases are defined in /etc/rc.local or /usr/local/etc/rc.d. I use rc.conf for IP aliases for this reason. Another problem with FreeBSD aliases is routing. For reasons which are not clear "ifconfig alias" doesn't automatically create a local route to the IP. With FreeBSD 2.2.8 and earlier at least this must be done manually: for h in $aliases1; do route add 207.246.84.$h 127.0.0.1 done -- Roger Marquis Roble Systems Consulting http://www.roble.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message