From owner-freebsd-stable Fri May 9 21:12:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA15769 for stable-outgoing; Fri, 9 May 1997 21:12:18 -0700 (PDT) Received: from mailhost.anasazi.com (mailhost.anasazi.com [138.113.128.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id VAA15762 for ; Fri, 9 May 1997 21:12:13 -0700 (PDT) Received: from chad.anasazi.com by mailhost.anasazi.com (5.65/3.7) id AA12847; Fri, 9 May 97 21:11:40 -0700 Received: by chad.anasazi.com (5.65/3.7) id AA25674; Fri, 9 May 97 21:11:38 -0700 From: chad@anasazi.com (Chad R. Larson) Message-Id: <9705100411.AA25674@chad.anasazi.com> Subject: IP aliasing hacks To: freebsd-stable@freebsd.org Date: Fri, 9 May 1997 21:11:37 -0700 (MST) Reply-To: chad@anasazi.com X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-stable@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Quoting: > # From: @(#)netstart 5.9 (Berkeley) 3/30/91 > > # Note that almost all the user-configurable behavior is no longer in > # this file, but rather in /etc/sysconfig. Please check this file > # first before contemplating any changes here. If you do need to change > # this file for some reason, we would like to know about it. Ok, you asked for it... *** sysconfig.old Fri May 9 21:02:27 1997 --- sysconfig.new Fri May 9 21:02:12 1997 *************** *** 95,100 **** --- 95,108 ---- network_interfaces="lo0 ep0" ifconfig_lo0="inet localhost" + + # + # Set a list of network interface aliases. Used (for example) to + # support virtual hosted web servers. You need one entry for each + # interface that has aliases. The interface names are as configured + # above. For example: + # aliases_ed0="10.0.0.10 10.0.0.11" + # # # Set to the list of route add lines for this host. You must have a *** netstart.old Fri May 9 21:06:33 1997 --- netstart.new Fri May 9 21:06:46 1997 *************** *** 46,51 **** --- 46,56 ---- eval ifconfig_args=\$ifconfig_${ifn} ifconfig ${ifn} ${ifconfig_args} ifconfig ${ifn} + eval alias_list=\$aliases_${ifn} + for alias in $alias_list ; do + ifconfig ${ifn} ${alias} alias + echo "aliased $alias" + done done if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then -crl -- Chad R. Larson (CRL22) Brother, can you paradigm? 602-870-3330 chad@anasazi.com chad@anasaz.UUCP chad@dcfinc.com Anasazi, Inc. - 7500 North Dreamy Draw Drive, Suite 120, Phoenix, Az 85020