From owner-freebsd-isp Tue Jan 9 6:32:27 2001 Delivered-To: freebsd-isp@freebsd.org Received: from orion.psknet.com (mail.psknet.com [63.171.251.4]) by hub.freebsd.org (Postfix) with SMTP id 445A337B698 for ; Tue, 9 Jan 2001 06:32:09 -0800 (PST) Received: (qmail 8290 invoked from network); 9 Jan 2001 14:31:59 -0000 Received: from abyss.dashit.net (HELO ABYSS) (209.100.22.250) by mail.psknet.com with SMTP; 9 Jan 2001 14:31:59 -0000 From: "Troy Settle" To: "Tom Samplonius" , "David Lawson" Cc: "FreeBSD ISP" Subject: RE: Hosting with multiple subnets Date: Tue, 9 Jan 2001 09:31:59 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-reply-to: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ** -----Original Message----- ** From: owner-freebsd-isp@FreeBSD.ORG ** [mailto:owner-freebsd-isp@FreeBSD.ORG]On Behalf Of Tom Samplonius ** Sent: Tuesday, January 09, 2001 12:35 AM ** To: David Lawson ** Cc: FreeBSD ISP ** Subject: Re: Hosting with multiple subnets ** ** ** ** On Mon, 8 Jan 2001, David Lawson wrote: ** ** > We setup a new hosting box running FreeBSD 4.1, we have two ** Class C's that ** > we want to use on this box but we are having problems. When ever we add ** > another subnet we lose all connection. All the other Interfaces stop ** > working. ** ** You haven't provided any really detail on how you are "adding ** a subnet". ** I can think of several ways that could be done, and a lot more ways that ** it could be done wrong. ** Agreed, but you could have given an example of one of the good ways to do it. Here's how I set up for hosting: 192.168.10.1/26 - gw address 192.168.10.8/26 - fxp0 on my web server 192.168.20.0/23 - bound to lo1 on the web server I use zebra to implement OSPF to get the routes kicked around my network, but it could easily be done with a static route on the gateway router. Doing it like this keeps the arp tables small. I don't know if it really matters or not, but I like it like that. I also use a script rather than rc.conf to do my bindings: for i in `jot 256 0` do ifconfig lo1 inet 192.168.20.${i} netmask 0xffffffff alias done And, yes, I do bind the /whole/ subnet. I won't use .0 or .255, but with a /26, I will use all 64 addresses. HTH, -- Troy Settle Pulaski Networks 540.994.4254 They told me to think out of the box, but I tripped over it, now I own my own company. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message