Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

subnetting

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 42

Subnetting

ip:10.50.88.99/22
. What are the total hosts?
Total hosts mean that they are the number of hosts available for each
subnet.
If you need to calculate for the number of hosts, you have to use the
formula 2H
= total hosts, with H declaring the number of host bits.
Let’s say the IP Address is 192.168.1.0/26. Compute by subtracting the
bits
consumed by the network address from the total bits in the IP Address.
In this
case, that would be 32-26, which means that you have 6 as the total
number of
hosts.
• How many subnets does the given subnet
mask provide?
• For this, one you have to use the 2N formula,
where N stands for the borrowed
• bits from the host bits.
• Again, if the IP Address is 192.168.1.0, you
could say that N is 3 and that it
• belongs to Class C with the default subnet
mask of 255.255.255.0 or 1/24 in
• CIDR.
• 10101100.00010000.01100100.00000000
network address (172.16.100.0)
• 10101100.00010000.01100100.00001111
broadcast address (172.16.100.15)
• This is for the first network. We divide the network
by using higher Subnet Mask. So, let’s look at the
other networks:

• 10101100.00010000.01100100.00010000
• 10101100.00010000.01100100.00100000
• 10101100.00010000.01100100.00110000
• 10101100.00010000.01100100.01000000
• ….
• 10101100.00010000.01100100.11110000
• Omar Mar'i, [20/6/2024 16:26]
• IP: 192.168.2.64/ 26
• Subnet Mask: 255.255.255.192
• 11111111.11111111.11111111.11000000
• 32 - 26 = 6
• Hosts = (2^⁶) - 2 = 62
• Networks= 2^2 = 4
• -------------------
• 1st Subnet:
• -------------------
• Net ID= 192.168.2.64
• First IP = 192.168.2.65
• Last IP = 192.168.2.126
• Broadcast = 192.168.2.127
• .
• .
• .

• Omar Mar'i, [20/6/2024 16:39]


• IP: 192.168.60.55 /20
• Subnet Mask: 255.255.240.0
• 11111111.11111111.11110000.00000000
• 32 - 20 = 12
• hosts= ( 2^¹² ) - 2 = 4094
• networks= 2^⁴ = 16
• -------------------
• 1st Subnet:
• -------------------
• Net ID = 192.168.48.0
• First IP = 192.168.48.1
• Last IP = 191.168.63.254
• Broadcast = 192.168.63.255
• -------------------
• 2nd Subnet:
• -------------------
• Net ID= 192.168.16.0
• First IP = 192.168.16.1
• Last IP = 192.168.31.254
• Broadcast =192.168.31.255
• -----------------------------------------
• .
• .
• .
• .
• -------------------
• 16th Subnet:
• -------------------
• Net ID= 192.168.240.0
• First IP = 192.168.240.1
• Last IP = 192.168.255.254
• Broadcast =192.168.255.255
• -----------------------------------------
• 16 ‫ وهكذا ل‬subnet ‫وال ؟‬
No of hosts h means no of devices in each
subnet. So no of h = 32-SM.. 2^h-2
2: nw id+br id.
•No of subnets S=2^n
n: no of borrow bits.
•When transfer from decimal to binary :
• If sm=/22 then
• 11111111.11111111.11111100.00000000
• = 255.255.11111100.0
• To get 1st subnet id = ANDing result.
• To get 1st br id= when host part=00000
in main SM. i.e when converting to binary.
• To get 2nd subet id , hosts and broadcast ip:
2nd subnet id= 1st BR id+1 but 2nd BR id=
No of hosts h+1 i.e 0-31= 32
And so on for all subnets .
Address: 192.168.60.1 11000000.10101000.0011 1100.00000001
Netmask: 255.255.240.0 = 20 11111111.11111111.1111
0000.00000000
Wildcard: 0.0.15.255 00000000.00000000.0000 1111.11111111
=> Network: 192.168.48.0/20 11000000.10101000.0011
0000.00000000 (Class C)
Broadcast: 192.168.63.255 11000000.10101000.0011 1111.11111111
HostMin: 192.168.48.1 11000000.10101000.0011 0000.00000001
HostMax: 192.168.63.254 11000000.10101000.0011 1111.11111110
Hosts/Net: 4094 (Private Internet)
SUBNETTING QUIZ 1
Which subnet does host 12.120.1.185/25 belong to?
What is the subnetwork number of a host with an IP address of 100.155.1.0/21?
u would like to give IP address to 30 hosts from your IP prefix which subnet mask do you use most effectiv
What is the binary equivalent of 188?
What is the decimal equivalent of 01001010?
How many subnets and how many hosts in each subnet are there for the network address 80.160.0.0

You might also like