Description:

  • Divide a network into a smaller subnetwork

Classful subnet:

  • For IPv4 only
  • ClassLeading bitsSize of network number bit fieldSize of rest bit fieldNumber of networksNumber of addresses per networkStart addressEnd address
    A0824128 (2^7)16777216 (2^24)0.0.0.0126.255.255.255
    B10161616384 (2^14)65536 (2^16)128.0.0.0191.255.255.255
    C1102482097152 (2^21)256 (2^8)192.0.0.0223.255.255.255
    D1110282^42^28224.0.0.0239.255.255.255
  • Some chunks of it are reserved for RFC 1918

Classless subnet

Subnet mask:

  • Tells which part of the IP identifies the host
    • ex: 222.222.0.0/24 means the every devices in the network has first 24 same to the host