Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 1996 13:37:26 -0600 (CST)
From:      Joe Greco <jgreco@brasil.moneng.mei.com>
To:        mikel@sales.net.au
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Subnets and virtual IP
Message-ID:  <199610311937.NAA28495@brasil.moneng.mei.com>
In-Reply-To: <199610311322.AAA00319@esimene.cynet.net.au> from "mikel@sales.net.au" at Nov 1, 96 00:22:56 am

index | next in thread | previous in thread | raw e-mail

> 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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610311937.NAA28495>