From owner-freebsd-stable Fri May 9 22:37:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA20030 for stable-outgoing; Fri, 9 May 1997 22:37:48 -0700 (PDT) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA20024 for ; Fri, 9 May 1997 22:37:46 -0700 (PDT) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.5/8.6.9) with ESMTP id WAA18494; Fri, 9 May 1997 22:37:50 -0700 (PDT) To: chad@anasazi.com cc: freebsd-stable@FreeBSD.ORG Subject: Re: IP aliasing hacks In-reply-to: Your message of "Fri, 09 May 1997 21:11:37 PDT." <9705100411.AA25674@chad.anasazi.com> Date: Fri, 09 May 1997 22:37:50 -0700 Message-ID: <18491.863242670@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-stable@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Ok, you asked for it... Heh. This is already implemented. :-) >From the 2.2's /etc/rc.network (was earlier /etc/netstart): # Set up all the network interfaces, calling startup scripts if needed for ifn in ${network_interfaces}; do if [ -e /etc/start_if.${ifn} ]; then . /etc/start_if.${ifn} ${ifn} fi # Do the primary ifconfig if specified eval ifconfig_args=\$ifconfig_${ifn} if [ -n "${ifconfig_args}" ] ; then ifconfig ${ifn} ${ifconfig_args} fi # Check to see if aliases need to be added alias=0 while : do eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} if [ -n "${ifconfig_args}" ]; then ifconfig ${ifn} ${ifconfig_args} alias alias=`expr ${alias} + 1` else break; fi done ...