From owner-freebsd-questions Thu Oct 14 18:15:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pau-amma.whistle.com (pau-amma.whistle.com [207.76.205.64]) by hub.freebsd.org (Postfix) with ESMTP id DDF1C14E59; Thu, 14 Oct 1999 18:15:19 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.9.2/8.9.2) id SAA38517; Thu, 14 Oct 1999 18:15:18 -0700 (PDT) Date: Thu, 14 Oct 1999 18:15:18 -0700 (PDT) From: David Wolfskill Message-Id: <199910150115.SAA38517@pau-amma.whistle.com> To: dhw@whistle.com, root@totally.morphed.com Subject: Re: arplookup.... Cc: freebsd-net@FreeBSD.org, freebsd-questions@FreeBSD.org In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Date: Thu, 14 Oct 1999 17:46:12 -0600 (MDT) >From: "Jason L. Schwab" >How would i set the approiate netmask? Generally (in FreeBSD), in /etc/rc.conf or /etc/rc.conf.local. For example: ifconfig_de0="inet 172.16.8.11 netmask 255.255.255.0" In your case (as someone else pointed out), you're going to need to figure out what subnet(s) you really want to use. First, you said: >> >Date: Thu, 14 Oct 1999 11:33:47 -0600 (MDT) >> >From: "Jason L. Schwab" >> >I run a 3.3-STABLE box on a T3 network, and I own 64 ips out of a c class >> >those 64 ips are between XXX.XXX.XXX.134 tho XXX.XXX.XXX.198... Now, .134 - .198 is 65 addresses, not 64. And neither 134 nor 198 is on a reasonable subnet boundary. Here: dec hex bin 128 80 1000 0000 129 81 1000 0001 ... 134 86 1000 0110 135 87 1000 0111 136 88 1000 1000 ... 191 bf 1011 1111 192 c0 1100 0000 193 c1 1100 0001 ... 197 c5 1100 0101 198 c6 1100 0110 199 c7 1100 0111 200 c8 1100 1000 Ideally, you could arrange to swap IP addresses around, so you could get .128 - .191; that's a nice, clean netmask of 255.255.255.192, with 62 usable host addresses. Alternatively, if you really have (and are stuck with) .134 - .198, you could split it up as: .134 - .135 Wasted .136 - .143 *.136/29; mask of 255.255.255.248 (6 usable host addresses) .144 - .159 *.144/28; mask of 255.255.255.240 (14 usable host addresses) .160 - .191 *.160/27; mask of 255.255.255.224 (30 usable host addresses) .192 - .195 *.192/30; mask of 255.255.255.252 (2 usable host addresses) .196 - .197 Wasted .198 Wasted (Recall that for each subnet, the "all 0s" host address denotes the (sub)net, and the "all 1s" host address denotes the broadcast address.) The above mess (except for the wasted addresses) could possibly be useful, but it's a bit of a stretch. Cheers, david -- David Wolfskill dhw@whistle.com UNIX System Administrator voice: (650) 577-7158 pager: (888) 347-0197 FAX: (650) 372-5915 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message