Date: Tue, 9 Jan 2001 09:31:59 -0500 From: "Troy Settle" <troy@psknet.com> To: "Tom Samplonius" <tom@sdf.com>, "David Lawson" <dave@siteone.net> Cc: "FreeBSD ISP" <freebsd-isp@FreeBSD.ORG> Subject: RE: Hosting with multiple subnets Message-ID: <GIEHKBHPBGKJPNMBCOHFCEDOCAAA.troy@psknet.com> In-Reply-To: <Pine.BSF.4.05.10101082133230.15363-100000@misery.sdf.com>
next in thread | previous in thread | raw e-mail | index | archive | help
** -----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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?GIEHKBHPBGKJPNMBCOHFCEDOCAAA.troy>