Skip to content

Intro to IP Address and CIDR

Posted on:September 23, 2022 at 03:22 PM

Host address all 0: NW address. Host address all 1: (directed) broadcast address.

A valid host IP address should not have all bits as 0s.

Loopback address: 127.x.x.x

Classes of IP address(RFC 791)

Class A

Class B

Class C

Class D

Class E

Private IP address space(RFC 1918)

Subnetting:

Why subnetting:

Subnet bits: borrowed from host address bits.

Questions to ask when subnetting:

Note:

Subnet increment: The value by which the next sub-network I’d increase. This value is the “binary weight” of last(lsb)subnet bit.

IP routing table:

Powers of 2: