From owner-freebsd-questions Tue Sep 10 06:46:47 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA15995 for questions-outgoing; Tue, 10 Sep 1996 06:46:47 -0700 (PDT) Received: from gage.com (ns.gage.com [205.217.2.4]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA15989 for ; Tue, 10 Sep 1996 06:46:36 -0700 (PDT) Received: from octopus by gage.com (NX5.67d/NX4.2M) id AA00652; Tue, 10 Sep 96 08:46:30 -0500 Received: from squid by octopus.gage.com (NX5.67e/NX3.0S) id AA23853; Tue, 10 Sep 96 08:42:16 -0500 Received: from insomnia by squid.gage.com (NX5.67e/NX3.0S) id AA14425; Tue, 10 Sep 96 08:46:50 -0500 Message-Id: <9609101346.AA14425@squid.gage.com> Received: by insomnia.gage.com (NX5.67g/NX3.0X) id AA01170; Tue, 10 Sep 96 08:47:08 -0500 Mime-Version: 1.0 (NeXT Mail 4.0 v146.2) Content-Type: multipart/alternative; boundary=NeXT-Mail-827975070-2 Content-Transfer-Encoding: 7bit In-Reply-To: X-Nextstep-Mailer: Mail 3.3 (Enhance 1.3) Received: by NeXT.Mailer (1.146.2) From: Ben Black Date: Tue, 10 Sep 96 08:47:07 -0500 To: Nadav Eiron Subject: Re: Multi host web server on FreeBSD Cc: Rob Buchanan , questions@freebsd.org References: Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk --NeXT-Mail-827975070-2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline > Well, the reason is that the rule to go by is that if a machine has more > than one IP address those should be on different networks. Since when no, the rule is if you have a machine with more than one INTERFACE they need to be on different networks. > configuring virtual hosts you normally won't assign addresses from > different nets or subnets, using a mask of all 1-s will let you use > addresses from the same net. if you have a netmask of 255.255.255.0 and you add an alias within the same network to a given interface along with a route for that IP through localhost you get the saem thing, except without using weird netmasks. you just use the same netmask as the primary IP on the interface. the reason i asked why you were doing it that way is because it seemed rather redundant and confusing for newbies. skipping the netmask magic has no effect on functionality, but it does improve understandability (if i may be permitted to butcher the english language). b3n black@cypher.net --NeXT-Mail-827975070-2 Content-Type: text/enriched; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline > Well, the reason is that the rule to go by is that if a machine has more > than one IP address those should be on different networks. Since when no, the rule is if you have a machine with more than one INTERFACE they need to be on different networks. > configuring virtual hosts you normally won't assign addresses from > different nets or subnets, using a mask of all 1-s will let you use > addresses from the same net. if you have a netmask of 255.255.255.0 and you add an alias within the same network to a given interface along with a route for that IP through localhost you get the saem thing, except without using weird netmasks. you just use the same netmask as the primary IP on the interface. the reason i asked why you were doing it that way is because it seemed rather redundant and confusing for newbies. skipping the netmask magic has no effect on functionality, but it does improve understandability (if i may be permitted to butcher the english language). b3n black@cypher.net --NeXT-Mail-827975070-2--