RE: CIDR Explanation

From: David Gillett (gillettdavid_at_fhda.edu)
Date: 09/21/04

  • Next message: Travis Schack: "Re: CIDR Explanation"
    To: "'ka55ad'" <ka55ad@gmail.com>, <security-basics@securityfocus.com>
    Date: Tue, 21 Sep 2004 08:13:11 -0700
    
    

      When you specify a subnet mask to an IP address, you're telling
    <whoever> which of the 32 bits are network address, and which are
    host address. For instance, in the "Class C" mask 255.255.255.0,
    the first 24 bits of address will be used as net/subnet address,
    and the remaining 8 bits as host address.
      Since in 99.9999% of cases, the network/subnet bits are contiguous,
    starting from the beginning of the address, CIDR notation writes
    "the first 24 bits are net/subnet address bits" as "/24".

      In dotted notation, it's a bit easier to write and work with
    masks that fall on octet boundaries. In CIDR, it's no harder to
    write "/23" (255.255.254.0) or "/25" (255.255.255.128) than it is
    "/24".

    David Gillett

    > -----Original Message-----
    > From: ka55ad [mailto:ka55ad@gmail.com]
    > Sent: Monday, September 20, 2004 6:39 AM
    > To: security-basics@securityfocus.com
    > Subject: CIDR Explanation
    >
    >
    > Hi List,
    >
    > I am hoping that somebody might be able to help me out or point
    > me in the right direction. For the life of me I can't seem to get a
    > good grasp on CIDR notation. I see a lot of CIDR addresses every day,
    > but I have trouble figuring out the IP addresses on the fly. I am not
    > a complete newbie - I am quite familiar with the OSI model, TCP
    > handshakes, etc but this one area stumps me.
    >
    > I am particularly interested in it because I am going to be
    > setting up a snort box soon as well as an IP chains firewall to
    > segregate parts of the network. I would much rather use CIDR since it
    > can be much quicker at times, but I don't want to use it right now due
    > to my lack of knowledge which can cause security issues. Can anybody
    > offer advice/help? Thanks.
    >
    > --------------------------------------------------------------
    > -------------
    > Computer Forensics Training at the InfoSec Institute. All of
    > our class sizes
    > are guaranteed to be 12 students or less to facilitate one-on-one
    > interaction with one of our expert instructors. Gain the
    > in-demand skills of
    > a certified computer examiner, learn to recover trace data
    > left behind by
    > fraud, theft, and cybercrime perpetrators. Discover the
    > source of computer
    > crime and abuse so that it never happens again.
    >
    > http://www.infosecinstitute.com/courses/computer_forensics_tra
    ining.html
    ----------------------------------------------------------------------------

    ---------------------------------------------------------------------------
    Computer Forensics Training at the InfoSec Institute. All of our class sizes
    are guaranteed to be 12 students or less to facilitate one-on-one
    interaction with one of our expert instructors. Gain the in-demand skills of
    a certified computer examiner, learn to recover trace data left behind by
    fraud, theft, and cybercrime perpetrators. Discover the source of computer
    crime and abuse so that it never happens again.

    http://www.infosecinstitute.com/courses/computer_forensics_training.html
    ----------------------------------------------------------------------------


  • Next message: Travis Schack: "Re: CIDR Explanation"

    Relevant Pages

    • Re: TCP/IP question,PLEASE!
      ... mask is and how to apply it to IP address. ... a subnet is. ... For hosts to be in the same subnet, they must have the same network address. ... A host address's components: ...
      (microsoft.public.windowsxp.general)
    • Re: [SLE] SAMBA Problem
      ... _correct_ mask within a network no problem. ... For networks not using CIDR or VLSM, just use the correct mask, and you can ... the subnet mask is used to ...
      (SuSE)
    • RE: CIDR Explanation
      ... The network is 10.2.3.0 and this host is 55 on that network ... In the above example the mask is 255.255.255.0 each number represents on ... If you sub net the above example into two networks (allowing subnet ... which give a /25 CIDR network. ...
      (Security-Basics)
    • Re: Determining what should be blocked in and out?
      ... the network, and the rest address the host on that network. ... C-network mask. ... /16 equals 255.255.0.0, or a class B-network mask, in the ...
      (comp.security.firewalls)
    • Re: Access limitations(?), and moving to a simple LAN
      ... If the mask is 255.255.255.0, ... > these sorts of host addresses on certain other OSes. ... [It was used to combine class C addresses into one larger network, ... Thus each network only needs one valid address - for the router. ...
      (comp.sys.acorn.networking)