Date: Fri, 9 May 1997 21:11:37 -0700 (MST) From: chad@anasazi.com (Chad R. Larson) To: freebsd-stable@freebsd.org Subject: IP aliasing hacks Message-ID: <9705100411.AA25674@chad.anasazi.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9705100411.AA25674>