From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22546 invoked from network); 21 Oct 1998 17:04:42 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 21 Oct 1998 17:04:42 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA24293 for ; Wed, 21 Oct 1998 12:55:55 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id KAA05116 for axp-list@redhat.com; Wed, 21 Oct 1998 10:55:52 -0600 From: Michal Jaegermann Message-Id: <199810211655.KAA05116@ellpspace.math.ualberta.ca> Subject: Re: Off topic... but couldn't get any help... To: axp-list@redhat.com Date: Wed, 21 Oct 1998 10:55:52 -0600 (MDT) In-Reply-To: from "Keith Baker" at Oct 21, 98 10:40:59 am Content-Type: text Keith Baker wrote: > > Those damn subnet masks got me. IPv4 address is really a 32-bit long unsigned number. It is divided into four octets, separated by dots, simply for a better readability by humans. :-) Netmask splits your address into a "fixed" (all those bits in your address which have a bit "on" in your netmask) and "movable" parts. If you 'and' your machine address with a netmask you should get your network address. Replacing in this address all those bits which in netmask are 0 with 1's will give you your broadcast address. Other combinations of bits in the "movable" part provide valid addresses for hosts on your subnetwork. It follows from that that a minimal subnetwork may have four addresses (two bits, one network address, one broadcast and two hosts) and that you may split a C class address into 28 subnetworks of that kind wasting 198 host addresses in the process. Of course nothing says that all your subnetworks have to be of the same size. :-) Michal