Date: Tue, 18 Feb 1997 17:10:06 -0800 (PST) From: Doug White <dwhite@gdi.uoregon.edu> To: Ben Black <black@gage.com> Cc: Roland Krocin <roland@netchicago.net>, freebsd-questions@freebsd.org Subject: Re: Virtual IPs Message-ID: <Pine.BSI.3.94.970218170736.8926I-100000@localhost> In-Reply-To: <9702141610.AA29171@squid.gage.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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_<xxx> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.970218170736.8926I-100000>