Date: Thu, 20 May 1999 13:47:13 -0700 (PDT) From: Roger Marquis <marquis@roble.com> To: freebsd-isp@FreeBSD.ORG Subject: Re: ifconfig_if0_alias? Message-ID: <Pine.GSO.3.96.990520133018.22203A-100000@roble2.roble.com> In-Reply-To: <19990520160813.A15580@infoteam.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.990520133018.22203A-100000>