From owner-freebsd-questions Wed Aug 28 06:16:44 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA25942 for questions-outgoing; Wed, 28 Aug 1996 06:16:44 -0700 (PDT) Received: from uswgco3.uswc.uswest.com (uswgco3.uswest.com [206.196.133.82]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA25931 for ; Wed, 28 Aug 1996 06:16:42 -0700 (PDT) Received: from egate.mnet.uswest.com (egate.mnet.uswest.com [151.116.23.138]) by uswgco3.uswc.uswest.com (8.7.5/8.7.3) with ESMTP id HAA01047 for ; Wed, 28 Aug 1996 07:16:11 -0600 (MDT) Received: from easthub (easthub.mnet.uswest.com [151.117.26.86]) by egate.mnet.uswest.com (8.7.1/8.7.1) with SMTP id HAA10707 for ; Wed, 28 Aug 1996 07:16:10 -0600 (MDT) Received: by easthub.mnet.uswest.com (M-Net Hub.951228) Received: by acs.uswest.com (5.x/SMI-SVR4) id AA28106; Wed, 28 Aug 1996 08:16:09 -0500 Received: from astro.acs.uswest.com by acs.uswest.com (5.x/SMI-SVR4) id AA28085; Wed, 28 Aug 1996 08:15:50 -0500 Received: by astro.acs.uswest.com (SMI-8.6/SMI-SVR4) id IAA20460; Wed, 28 Aug 1996 08:15:47 -0500 From: ptroot@uswest.com (Paul T. Root) Message-Id: <199608281315.IAA20460@astro.acs.uswest.com> Subject: Re: "Re: UTP to UTP Networking'" To: nickliu@netcom.com Date: Wed, 28 Aug 1996 08:15:47 -0500 (CDT) Cc: questions@freebsd.org In-Reply-To: <199608272038.PAA13185@horton.iaces.com> from "The Filter of proot@horton.iaces.com" at Aug 27, 96 03:38:24 pm X-Organization: !nterprise Networking Services X-Phone: (612) 663-1979 X-Fax: (612) 663-8030 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 200 S. 5th St., Suite 1100 X-Address: Minneapolis, MN 55402 X-Mailer: ELM [version 2.4 PL25] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In a previous message, The Filter of proot@horton.iaces.com said: > > > Your netmasks don't match your broadcast, and your broadcast should > > actually go to a subnet not a node. > > I'd do something like > > > > ifconfig ed0 192.168.253.x broadcast 192.168.253.11 netmask 0xfffffffc > > > > Broadcast will be automatically set via the netmask. > > > > Paul. > > > > > > I know someone wise enough will stand up and be willing to teach me > something. Thanks, Paul. > > In the address above, the broadcast address was set to 192.168.253.11, > why 11 and not 10? In lp0 (laplink interface), I do: This is how subnetting works. I set the netmask to 255.255.255.252 ok. That leaves you 2 bits for your sub net. Your addresses are 9 - 00001001 10 - 00001010 and we'll throw in 8 and 11: 8 - 00001000 11 - 00001011 then the netmask 252 252 - 11111100 So with a 2 bit subnet you get 00, 01, 10 and 11. You generally don't use 00, and 11 is broadcast (that's the same as 255 in an 8 bit subnet). So a broadcast wants to go to the broadcast subnet. 252 is the subnet we use to put together point to point and Frame Relay links. > ifconfig lp0 192.168.253.7 192.168.253.8 > route add ... > > and > > ifconfig lp0 192.168.253.8 192.168.253.7 > route add ... > > And it worked fine. I know it would be just a simple knock-on-the-forehead > hint to make me understand all that. > > Please give me a punch instead of a knock. Thanks. > > > -- End of filtered message -- > -- Paul T. Root - USWEST !NTERPRISE Networking Service ptroot@uswest.com "Your friend dissected, yourself a mental vegetable; not a pleasant prospect, is it, Captain?" -- Kang