0% found this document useful (0 votes)
13 views5 pages

CH4 Cidr

The document provides an overview of Classless Inter-Domain Routing (CIDR) including network sizes, net masks, and CIDR notation for various total host counts. It includes examples demonstrating how to calculate total and usable hosts based on given IP addresses and subnet masks. Additionally, it outlines the net masks for Class A, B, and C networks.

Uploaded by

Osama Rashad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views5 pages

CH4 Cidr

The document provides an overview of Classless Inter-Domain Routing (CIDR) including network sizes, net masks, and CIDR notation for various total host counts. It includes examples demonstrating how to calculate total and usable hosts based on given IP addresses and subnet masks. Additionally, it outlines the net masks for Class A, B, and C networks.

Uploaded by

Osama Rashad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Classless Inter Domain Routing (CIDR)

Network size __________________________Net Mask ‫__________قناع الشبكة‬


(Total Number Binary Decimal CIDR notation
of Hosts:) (Prefix size)
2 2= 4 ( 11111111.11111111.11111111.11111100) 255.255.255.252 /30
2 3= 8 ( 11111111.11111111.11111111.11111000) 255.255.255.248 /29
24= 16 ( 11111111.11111111.11111111.11110000) 255.255.255.240 /28
25= 32 ( 11111111.11111111.11111111.11100000) 255.255.255.224 /27
26= 64 ( 11111111.11111111.11111111.11000000) 255.255.255.192 /26
27= 128 ( 11111111.11111111.11111111.10000000) 255.255.255.128 /25
28 =256 ( 11111111.11111111.11111111.00000000) 255.255.255.0 /24
29= 512 ( 11111111.11111111.11111110.00000000) 255.255.254.0 /23
210= 1024 ( 11111111.11111111.11111100.00000000) 255.255.252.0 /22
211= 2048 ( 11111111.11111111.11111000.00000000) 255.255.248.0 /21
212= 4096 ( 11111111.11111111.11110000.00000000) 255.255.240.0 /20

..
..
..
1 1 1 1 1 1 1 1
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1

NetMask
Class A: 11111111.00000000.00000000.00000000 /8
255.0.0.0
Class B: 11111111.11111111.00000000.00000000 /16
255..255.0.0
Class C: 11111111.11111111.11111111.00000000 /24
255.255.255.0

Examples:
Ex1:
Net IP: 193.5.0.0 /27
255.255.255.224
11111111.11111111.11111111.11100000
Total hosts (IPs) = 232-27 = 25=32
usable hosts =32-2 = 30
Ex2:
One of the Net IPs: 193.5.0.27 /27
11111111.11111111.11111111.11100000
Total hosts (IPs) = 25 =32
First IP (Net IP):
IP in binary: 11000001.00000101.00000000. 00011011
Network IP: 11000001.00000101.00000000. 00000000
193.5.0.0

Broadcast IP: 11000001.00000101.00000000. 00011111


192.5.0.31

Usable Hosts = 32-2=30 (IPs between NetIP and broadcast IP)

193.5.0.1
193.5.0.2
193.5.0.3
….
….
193.5.0.30
Ex3:
IP: 192.168.1.120 /25
IP: 11000000.10101000.00000001.01111000
Netmask: 11111111.11111111.11111111.10000000
Total hosts (IPs) = 27 = 128
First IP (Net IP): 11000000.10101000.00000001.00000000
192.168.1.0
Broadcast IP: 11000000.10101000.00000001.01111111
192.168.1.127

Usable Hosts = Total hosts -2 = 126


192.168.1.1
192.168.1.2
192.168.1.3
..
..
..
192.168.1.126
IP Subnet Calculator
https://www.calculator.net/ip-subnet-
calculator.html

You might also like