From owner-freebsd-isp Wed May 1 17:28:04 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA08612 for isp-outgoing; Wed, 1 May 1996 17:28:04 -0700 (PDT) Received: from irbs.irbs.com (irbs.com [199.182.75.129]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id RAA08590 for ; Wed, 1 May 1996 17:28:00 -0700 (PDT) Received: (from jc@localhost) by irbs.irbs.com (8.7.5/8.6.6) id UAA09862; Wed, 1 May 1996 20:26:51 -0400 (EDT) From: John Capo Message-Id: <199605020026.UAA09862@irbs.irbs.com> Subject: Re: Problem with ifconfig for a virtual machine To: dashadow@tchnet.tchnet.com (John Hart) Date: Wed, 1 May 1996 20:26:51 -0400 (EDT) Cc: freebsd-isp@freebsd.org In-Reply-To: from John Hart at "May 1, 96 12:02:12 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk John Hart writes: > Ok, I have been trying over and over to get this to work, and I actually > had it working, but then I realized that the main ip address was gone. > Now, what I have is a start_if.ed1 file in /etc that reads: > > ifconfig ed1 alias 198.109.196.252 netmask 255.255.255.0 > > I also have had the netmask at 0xffffffff, and it worked from the outside > world, but not from the machine it is aliased to. > Did you re-arrange the code in /etc/netstart so that start_if.ed1 is called /after/ the ifconfig rather than before? The alias netmask should be 0xffffffff, or 255.255.255.255, since the first ifconfig command will establish a route to 198.109.196/24. If you use another /24 netmask for the alias, ifconfig will whine about "ifconfig: ioctl (SIOCAIFADDR): File exists" but the alias will still work. John Capo jc@irbs.com IRBS Engineering FreeBSD Servers and Workstations (954) 792-9551 Unix/Internet Consulting - ISP Solutions