From owner-freebsd-questions@FreeBSD.ORG Fri Sep 18 15:09:05 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B7E01065672 for ; Fri, 18 Sep 2009 15:09:05 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 2F2A08FC14 for ; Fri, 18 Sep 2009 15:09:05 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mof56-0001hn-L5 for freebsd-questions@freebsd.org; Fri, 18 Sep 2009 08:09:04 -0700 Message-ID: <25510433.post@talk.nabble.com> Date: Fri, 18 Sep 2009 08:09:04 -0700 (PDT) From: Freeco To: freebsd-questions@freebsd.org In-Reply-To: <4AB39479.8090205@ibctech.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: freeco@inbox.lv References: <25491958.post@talk.nabble.com> <20090917174950.GC34712@ei.bzerk.org> <25504647.post@talk.nabble.com> <200909180815.n8I8FpFS045063@banyan.cs.ait.ac.th> <25507235.post@talk.nabble.com> <4AB37AE0.2070409@ibctech.ca> <25508442.post@talk.nabble.com> <4AB39479.8090205@ibctech.ca> Subject: Re: IPF, NAT or NIC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2009 15:09:05 -0000 A 'subnet' is a term used to describe a portion of an IP address space, where each device in that space can communicate with one another without using a router: Steve wrote: 192.168.1.0/24 is a subnet, so hosts 192.168.1.1 through 192.168.1.254 can 'speak' to each other without using a router. If you have more than one PC, you need a 'switch' or hub to physically connect all of those devices, so they can all speak to each other. (fwiw, I cringe at the term subnet). I have a switch to connect all of these 3 pc's. Steve wrote: In the diagram above, you need two NICs in the gateway. One goes to the ISP, and the other 192.168.1.2 goes to the switch. The rest of the computers also plug into the switch. If all of the devices have 192.168.1.x, they are all in the same subnet. If the 2 pc's will be connected to gateway directly and another one with the switch, then all 3 pc's won't be in one subnet. Right? > I want to use this one: > |------- > > | > ISP x.x.88.17>--------- 192.168.1.6> | > |_______ > Steve wrote: 192.168.1.2 255.255.255.0 ...but on the pc: 192.168.1.7 255.255.255.128: > ----PC Settings---- > IP: 192.168.1.7 > Mask: 255.255.255.128 (SAME IN rc.conf ON FREEBSD) > Gateway: 192.168.1.2 > Dns: x.x.88.17 > Dns: 192.168.1.2 -- View this message in context: http://www.nabble.com/IPF%2C-NAT-or-NIC-tp25491958p25510433.html Sent from the freebsd-questions mailing list archive at Nabble.com.