*BSD News Article 96018


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!news-feed.newscorp.com!uunet!in3.uu.net!192.239.17.140!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!howland.erols.net!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: User PPP
Date: 23 May 1997 09:35:14 GMT
Organization: Awfulhak Ltd.
Lines: 37
Message-ID: <5m3oci$ic4@ui-gate.utell.co.uk>
References: <Pine.BSI.3.95.970519184616.5906A-100000@gold.interlog.com>
    <86g1vgfj10.fsf@bitbox.follo.net> <EAL93r.BH@sphynx.fdn.fr>
    <86yb97tiis.fsf@bitbox.follo.net>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41473

In article <86yb97tiis.fsf@bitbox.follo.net>,
	Eivind Eklund <perhaps@yes.no> writes:
> In article <EAL93r.BH@sphynx.fdn.fr> causse@sphynx.fdn.fr (Philippe Causse) writes:
> 
>> Reading the default /etc/hosts, I see:
>> 	192.168.0.0 to 192.168.255.255 = Class C
>> and the statement above says: "According to RFC1918, you can use the following
>> addresses for private nets... blah blah."
>> 
>> Clearly, there are 3 kinds of classes: A, B and C.
>> The "A" class uses 8 bits for net, 24 bits for host
>>      B             16              16
>>      C             24              8
> 
> There are three standard classes, yes.  And there are a lot of nets
> not matching this, which are made by subdividing a class C net, or
> joining several class C nets.
>  
>> This scheme perfectly fits the constants defined in <netinet/in.h>, so
>> I honestly doubt that a netmask could be 22 bits !
> 
> I've worked with netmasks from 22 to 29 bits - 8 addresses, 64
> addresses, 256 addresses, 1024 addresses.  They exists, and just about
> everything support it.  A lot of things don't support non-continuous
> netmasks, though - FreeBSD included.

Except for DNS reverse lookups.  I did find a document on how this
can be achieved (some kind soul pointed me at it a while ago), but
AFAIK, the named that ships with FreeBSD doesn't support the syntax.

> Eivind.
> 

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !