Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 1996 09:05:23 -0400 (EDT)
From:      steve hovey <shovey@buffnet.net>
To:        Mike Kercher <mike@synwork.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ifconfig question
Message-ID:  <Pine.SCO.3.91.960423085955.11526D-100000@buffnet3.buffnet.net>
In-Reply-To: <Pine.BSF.3.91.960422225132.410A-100000@synwork.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Apr 1996, Mike Kercher wrote:

> I am running a webserver here with 2 separate domains and everything is 
> working fine as long as IP's are assigned to my modem and NIC.  The 
> problem is, I want to have more domains and can't add a NIC for each IP.  
> 
> What I want to do is assign 204.120.255.16 netmask 255.255.255.240 to my 
> NIC, and I want to alias 204.120.255.19 to the same interface.  I assume 
> I will assign 204.120.255.16 in /etc/sysconfig

Leave sysconfig alone.  What i do on my web servers is I call a script 
file from rc.local  called /webaliases so as to keep them altogether in 
their own file.

/webaliases contains lines like this:

/sbin/ifconfig ed0 204.120.255.16 netmask 255.255.255.255 alias
/sbin/ifconfig ed0 204.120.255.17 netmask 255.255.255.255 alias
/sbin/ifconfig ed0 204.120.255.18 netmask 255.255.255.255 alias
/sbin/ifconfig ed0 204.120.255.19 netmask 255.255.255.255 alias





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SCO.3.91.960423085955.11526D-100000>