From owner-freebsd-questions Tue Mar 14 13:06:18 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id NAA01704 for questions-outgoing; Tue, 14 Mar 1995 13:06:18 -0800 Received: from kryten.atinc.com (kryten.atinc.com [198.138.38.7]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id NAA01672 for ; Tue, 14 Mar 1995 13:06:09 -0800 Received: (jmb@localhost) by kryten.atinc.com (8.6.9/8.3) id MAA11049; Tue, 14 Mar 1995 12:26:57 -0500 Date: Tue, 14 Mar 1995 12:26:56 -0500 (EST) From: "Jonathan M. Bresler" Subject: Re: Routing / gateway To: Jan_Guldemond cc: questions@FreeBSD.org In-Reply-To: <199503141209.NAA07591@mail.euronet.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@FreeBSD.org Precedence: bulk On Tue, 14 Mar 1995, Jan_Guldemond wrote: > |--------------| |------------------------------| |----------------| > | FreeBSD | | FreeBSD | | MS-Windows | > | 193.78.175.1 | | 193.78.175.2 193.78.175.129 | | 193.78.175.138 | > |--------------| |------------------------------| |----------------| > | | | | > \------------------/ \--------------------/ > > The configuration of the first FreeBSD machine (snap 2-2, one ethernet card): > ifconfig -a: > *** ed1: flags=8863 mtu 1500 > *** inet 193.78.175.1 netmask 0xffffff80 broadcast 193.78.175.127 ^^^^^^^^^^ ^^^^^^^^^^^^^^ you are trying to subnet on a single bit. this is illegal per the rfc's. a net admin here wanted to do the same. here is the mail that i sent him: the proposal is to subnet on 1 bit. this is a direct violation of rfc1122. (ftp://kryten.atinc.com/pub/rfc/rfc1122). a subnet mask must contain at least 2 bits. (eg 00, 01, 10, 11. the 00 and 11 subnets are reserved for broadcast addresses. the 0 and all-ones host parts are also reserved for boardcast addresses. so subnetting on 2 bits leaves 256 - ( 64 + 64 + 2 + 2 ) == 124 host addresses available, 62 on subnet 01 and 62 on subnet 10. over 50% of the address space is lost. subnetting on more bits improves the ratio, for a while) here are some relevant parts (lightly editted): 3.2.1.3 Addressing: RFC-791 Section 3.2 [deletion] We now summarize the important special cases for Class A, B, and C IP addresses, using the following notation for an IP address: { , } or { , , } and the notation "-1" for a field that contains all 1 bits. This notation is not intended to imply that the 1-bits in an address mask need be contiguous. [deletion] (d) { , -1 } Directed broadcast to the specified network. It MUST NOT be used as a source address. (e) { , , -1 } Directed broadcast to the specified subnet. It MUST NOT be used as a source address. (f) { , -1, -1 } Directed broadcast to all subnets of the specified subnetted network. It MUST NOT be used as a source address. [deletion] !!!!!--> IP addresses are not permitted to have the value 0 or -1 for any of the , , or fields (except in the special cases listed above). !!!!--> This implies that each of these fields will be at least two bits long. For further discussion of broadcast addresses, see Section 3.3.6. A host MUST support the subnet extensions to IP [IP:3]. As a result, there will be an address mask of the form: {-1, -1, 0} associated with each of the host's local IP addresses; see Sections 3.2.2.9 and 3.3.1.1. jmb Jonathan M. Bresler jmb@kryten.atinc.com | Analysis & Technology, Inc. | 2341 Jeff Davis Hwy play go. | Arlington, VA 22202 ride bike. hack FreeBSD.--ah the good life | 703-418-2800 x346