Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.maxwell.syr.edu!nntp.uio.no!news.global-one.no!not-for-mail From: Eivind Eklund <perhaps@yes.no> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: User PPP Date: 22 May 1997 21:26:51 +0200 Organization: GlobalOne Norway Lines: 26 Message-ID: <86yb97tiis.fsf@bitbox.follo.net> References: <Pine.BSI.3.95.970519184616.5906A-100000@gold.interlog.com> <86g1vgfj10.fsf@bitbox.follo.net> <EAL93r.BH@sphynx.fdn.fr> NNTP-Posting-Host: bitbox.follo.net In-reply-to: causse@sphynx.fdn.fr's message of Thu, 22 May 1997 15:16:39 GMT X-Newsreader: Gnus v5.1 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41482 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. Eivind.