From owner-freebsd-questions Tue Apr 23 06:07:44 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA00784 for questions-outgoing; Tue, 23 Apr 1996 06:07:44 -0700 (PDT) Received: from buffnet4.buffnet.net (root@buffnet4.buffnet.net [205.246.19.13]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA00776 for ; Tue, 23 Apr 1996 06:07:40 -0700 (PDT) Received: from buffnet1.buffnet.net (mmdf@buffnet1.buffnet.net [205.246.19.10]) by buffnet4.buffnet.net (8.6.12/8.6.9) with SMTP id HAA26070 for ; Tue, 23 Apr 1996 07:21:54 GMT Received: from buffnet3.buffnet.net by buffnet1.buffnet.net id aa16453; 23 Apr 96 9:05 EDT Date: Tue, 23 Apr 1996 09:05:23 -0400 (EDT) From: steve hovey To: Mike Kercher cc: freebsd-questions@freebsd.org Subject: Re: ifconfig question In-Reply-To: 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 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