From owner-freebsd-isp Thu Oct 31 11:39:40 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA01370 for isp-outgoing; Thu, 31 Oct 1996 11:39:40 -0800 (PST) Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.109.160]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA01351 for ; Thu, 31 Oct 1996 11:39:24 -0800 (PST) Received: (from jgreco@localhost) by brasil.moneng.mei.com (8.7.Beta.1/8.7.Beta.1) id NAA28495; Thu, 31 Oct 1996 13:37:27 -0600 From: Joe Greco Message-Id: <199610311937.NAA28495@brasil.moneng.mei.com> Subject: Re: Subnets and virtual IP To: mikel@sales.net.au Date: Thu, 31 Oct 1996 13:37:26 -0600 (CST) Cc: freebsd-isp@freebsd.org In-Reply-To: <199610311322.AAA00319@esimene.cynet.net.au> from "mikel@sales.net.au" at Nov 1, 96 00:22:56 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > G'Day all, > > After successfully configuring virtual services (thanks to this list) I am > running out of IPs in my current subnet. > > I have a single class C split 4 ways with 255.255.255.192 designated for > this type of usage. > > Network 1 currently contains all the ISP hosts as well as our local LAN > hosts. Network 1 also has our Livingston Portmaster (203.24.16.2) that is > acting as the primary gateway for that subnet. The server that is hosting > the virtual stuff is 203.24.16.1, all virtual servers are currently also > located in this subnet, this server has only one ethernet card, ed0. > > Network 2 has been allocated as a .192 subnet to a client's LAN running > our of a serial port on the Livingston > > Network 3 has been allocated as a to another client through another serial > port on the Livingston > > Network 4 is currently unused and I would like to use it to host the > virtual domain IP alias addresses. > > > Now... as I am spanning subnets, a simple: > > ifconfig ed0 alias 203.24.16.200 netmask 255.255.255.255 > > will not work as I won't be able to route to it as no default route has > been added from this subnet (.0) to that subnet (.192) > > The question is. What do I need to do to tell the FreeBSD 2.1.5 box (on > 203.24.16.1) that it's virtual hosts are on network 192 and are all on > it's one ethernet card Give the FIRST (and only the first) alias a netmask. ifconfig ed0 alias 203.24.16.192 netmask 255.255.255.192 ifconfig ed0 alias 203.24.16.193 netmask 255.255.255.255 ifconfig ed0 alias 203.24.16.194 netmask 255.255.255.255 ... That creates another "network". ... JG