From owner-freebsd-questions Tue Feb 18 17:10:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA17811 for questions-outgoing; Tue, 18 Feb 1997 17:10:24 -0800 (PST) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA17802 for ; Tue, 18 Feb 1997 17:10:19 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.6.12) with SMTP id RAA09008; Tue, 18 Feb 1997 17:10:06 -0800 (PST) Date: Tue, 18 Feb 1997 17:10:06 -0800 (PST) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Ben Black cc: Roland Krocin , freebsd-questions@freebsd.org Subject: Re: Virtual IPs In-Reply-To: <9702141610.AA29171@squid.gage.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 14 Feb 1997, Ben Black wrote: > >The way seems to be to put a construct inside of /etc/rc.local running > >ifconfig in sequence, adding the ips. > > > >ifconfig vx0 xxx.yyy.zzz.qqq alias > >ifconfig vx0 aaa.bbb.cc.dd alias > > don't forget the netmasks or you will be an unhappy camper! > > http://www.cypher.net/~black/ipalias.html As you see I don't do this :) > and would someone please remind me how to add aliases in sysconfig (i recall > someone saying it could be done) so i can add it to the HOWTO? In 2.2, you have a construct like so: # for example: # # network_interfaces="ed0 sl0 lo0" # # ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00" # ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00" # ifconfig_lo0="inet localhost" # ifconfig_ed0_alias0="inet 10.0.2.1 netmask 0xffffff00" # ifconfig_ed0_alias1="inet 10.0.2.2 netmask 0xffffffff" # ifconfig_ed0_ipx="ipx 0x1234" # # Alternatively, /etc/start_if.${network_interface} is run if it exists. # This script can be used as an alternative to the ifconfig_ lines. # This is a comment in sysconfig on my box. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major