From owner-freebsd-questions@FreeBSD.ORG Tue Apr 29 10:51:27 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33E9337B401 for ; Tue, 29 Apr 2003 10:51:27 -0700 (PDT) Received: from diana.northnetworks.ca (att-ws20.switchview.com [216.13.70.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C68D43FB1 for ; Tue, 29 Apr 2003 10:51:25 -0700 (PDT) (envelope-from iaccounts@northnetworks.ca) Received: from diana.northnetworks.ca (localhost.northnetworks.ca [127.0.0.1]) h3THpODI040238; Tue, 29 Apr 2003 13:51:24 -0400 (EDT) (envelope-from iaccounts@northnetworks.ca) Received: from localhost (iaccounts@localhost)h3THpOvG040235; Tue, 29 Apr 2003 13:51:24 -0400 (EDT) X-Authentication-Warning: diana.northnetworks.ca: iaccounts owned process doing -bs Date: Tue, 29 Apr 2003 13:51:24 -0400 (EDT) From: Steve Bertrand To: Steve Warwick In-Reply-To: Message-ID: <20030429130419.O37021-100000@diana.northnetworks.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: Netmasks: the truth is out there? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 17:51:27 -0000 > I know someone out there knows the truth about netmasks. All the > documentation I can find on the net talks about "masking off" part of the IP > address and how you can tell network from subnet and host ids. > > However, I have knowledgeable friend who is telling me that the netmask is > also dependant on how the hosting company has set up their routing tables > and incorrect netmasking on my part can reduce or halt my connection. > > So the question is, who is right? Is it as simple as just masking off the > first three octets or does the netmask interact with the router? > > Please point me to an authoritative source or if you have the time, a brief > description of if or how the netmask has to match the router, as I am not > sure what questions to ask my hosting company. The netmask defines logical groups of IP addresses within a given range. It allows an ISP to subdivide up IP blocks into 'subnets' that are classified as different networks. The subnet doesn't really 'interact' with the router, but the router will know where to send a packet based on the IP and netmask. To a router, the netmask is as important as the IP address. Configuring improper netmasks into a routers routing table can be catastrophic (depending on the purpose of the router). >From your end, unless you have a static IP from your ISP, you probably need not be concerned with netmasking because DHCP will take care of this for you. Otherwise, with a static IP, you will have to enter in this manually. INcorect configuration of the netmask will likely cause your Internet connection to fail. In order to learn about subnetting, search google for 'subnetting', or try to find some online Cisco documentation. It was such Cisco docs and books that enabled me to literally 'subnet in my head'. Steve > > > --- > > My current rc.conf entry looks like this (these ips are bogus) - no > broadcast and FreeBSD seems happy with this. > > defaultrouter="123.456.789.1" > ifconfig_rl0="inet 123.456.789.111 netmask 255.255.240.0" > ifconfig_rl0_alias0="inet 123.456.789.112 netmask 255.255.255.0" > <+7 other aliases> > > > Thoughts, suggestions, links ? > > > TIA > > > Steve > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >