Subnetting (A2Z)
Subnetting (A2Z)
Logical division of IP
Network within network
I. According to host
II. According to network
1. Given IP: 197.10.10.0, find the Subnet ID for each
department with their respective Broadcast ID.
Depart A: 5 host
Depart B: 10 host
Depart C: 20 host
Depart D: 30 host
Depart E: 40 host
Solution:
We have,
2n -2 ≥ maximum no. of host
2n -2 ≥ 40
At n=1,
21 -2≥ 40
0≥40, not satisfied
At n=2,
22-2≥ 40
2≥ 40, not satisfied
:
:
:
At n=6,
26-2≥ 40
64-2≥ 40
62≥ 40, satisfied
Hence n=6
Step4: Borrowing host bit to Network bit according
n=6 (from right to left <-------)
197.10.10.00000000
197.10.10.11000000
(Note: representation as
Network bit: 1
host bit : 0 )
Now converting into decimal, we have
197.10.10.192
(It is the LAST IP of given IP)
Subnet ID 1: 197.10.10.0/26
Broadcast ID: 197.10.10.63/26
Subnet ID 2: 197.10.10.64/26
Broadcast ID: 197.10.10.127/26
Subnet ID 3: 197.10.10.128/26
Broadcast ID: 197.10.10.191/26
Subnet ID 4: 197.10.10.192/26
Broadcast ID: 197.10.10.255/26
Solution:
We have,
At n=6,
26-2≥60
64-2 ≥ 60
62 ≥ 60, satisfied the
condition Hence, n=6
(Note: representation as
Network bit: 1
host bit : 0 )
255.255.255.192
Step 6: CIDR =?
(Class Inter Domain Routing)
CIDR = 32-n
CIDR = 32-6
Hence, CIDR = 26
Subnet ID 1: 12.0.0.0/26
Broadcast ID: 12.0.0.63/26
Subnet ID 2: 12.0.0.64/26
Broadcast ID: 12.0.0.127/26
Subnet ID 3: 12.0.0.128/26
Broadcast ID: 12.0.0.191/26
Subnet ID 4: 12.0.0.192/26
Broadcast ID: 12.0.0.255/26
Subnet ID 5: 12.0.1.0/26
Broadcast ID: 12.0.1.63/26
:
:
:
Subnet ID 8: 12.0.1.192/26
Broadcast ID: 12.0.1.255/26
Subnet ID 9: 12.0.2.0/26
Broadcast ID: 12.0.2.63/26
3. Given IP: 157.110.88.0, find the Subnet ID for each bgd
ccccccccccdepartment with their respective Broadcast ID.
Depart A: 5 host
Depart B: 10 host
Depart C: 20 host
Depart D: 60 host
Depart E: 40 host
Solution:
157.110.01011000.00000000
We have,
157.110.01011000.00000000
After borrowing, we have,
157.110.11111111.11000000
(The all remaining part of the host is replaced by 1 followed by
0 as n=6)
Subnet ID 1: 157.110.88.0/26
Broadcast ID: 157.110.88.64/26
Subnet ID 2: 157.110.88.64/26
Broadcast ID: 157.110.88.127/26
Subnet ID 3: 157.110.88.128/26
Broadcast ID: 157.110.88.191/26
Subnet ID 4: 157.110.88.192/26
Broadcast ID: 157.110.88.255/26
Subnet ID 4: 157.110.89.0/26
Broadcast ID: 157.110.89.63/26
4. Given IP: 12.0.0.0, find the Subnet ID for each
department with their respective Broadcast ID.
Depart A: 16 host
Depart B: 32 host
Depart C: 64 host
Depart D: 1024 host
Depart E: 512 host
Solution:
We have,
2n -2 ≥ maximum no. of host
At n= 11,
211 - 2 ≥ 1024
2048 -2 ≥ 1024
2046 ≥ 1024, satisfied
Hence n=11
Subnet ID 1: 12.0.0.0/21
Broadcast ID 1: 12.0.7.255/21
Subnet ID 2: 12.0.8.0/21
Broadcast ID 2: 12.0.15.255/21
Subnet ID 3: 12.0.16.0/21
Broadcast ID 3: 12.0.23.255/21
Subnet ID 4: 12.0.24.0/21
Broadcast ID 3: 12.0.31.255/21
:
:
:
Subnet ID : 12.0.248.0/21
Broadcast ID: 12.0.255.255/21
Subnet ID : 12.1.0.0/21
Broadcast ID : 12.7.255.255/21
2. According to Network
5. Consider the IP address 157.110.88.0, we need 30
subnet in such a way that each subnet may host upto 64
host.
157.110.00000000.00000000
Therefore, n= 5
157.110.00000000.00000000
157.110.11111000.00000000
Converting into decimal
157.110.248.0 (Last IP)
Subnet ID 2: 157.110.8.0/21
Broadcast ID 2: 157.110.15.255/21
Subnet ID 3: 157.110.16.0/21
Broadcast ID 3: 157.110.23.255/21 and so on.
CCNA Q: The given IP 192.168.15.240/28, find out
that it is which part of the subnet?
Solution:
The given IP is of class C and default subnet of class C is 24
But, subnet: 24+4=28
Now,
192.168.15.11110000
(The changes occurs in first octet by 16 from left to right i.e.
each subnet has difference of 16)
Subnte ID 1192.168.15.0/28
192.168.15.16/28
192.168.15.32/28
192.168.15.48/28
192.168.15.64/28
192.168.15.80/28
192.168.15.96/28
192.168.15.112/28
Subnet ID 9 -----> 192.168.15.128/28
192.168.15.144/28
192.168.15.160/28
192.168.15.176/28
192.168.15.192/28
192.168.15.208/28
192.168.15.224/28
Subnet ID 16 -----> 192.168.15.240/28
Solution:
Step 1: The given IP 197.10.10.0 is of class C and it has:
N:N:N:H
197.10.10.00000000
Step 3: n =?
2n – 2 >= max no. of host
25- 2>= 30
30>=30, satisfied.
Hence, n = 5
Step 5: CIDR =?
CIDR = 32- 5
CIDR = 27
Step 6:
Subnet ID 1: 197.10.10.0/27
Broadcast ID: 197.10.10.31/27
Subnet mask: 255.255.255.224
2^n - 2 >= 20
n =5
Borrowing host bit to n/w bit according n=5
197.10.10.00000000
197.10.10.11100000
Converting to decimal
197.10.10.224
(The changes occur in first octet from right to left by 32)
Step5: CIDR=?
CIDR= 32-n
CIDR= 32-5=27
Subnet ID 2 : 197.10.10.32/27
Broadcast ID : 197.10.10.63/27
subnet mask : 255.255.225.224
Subnet ID 3: 197.10.10.64
2^n - 2 >= 10
n=4
Borrowing host bit to n/w bit according n=4
197.10.10.00000000
197.10.10.11110000
Converting to decimal
197.10.10.240
(The changes occur in first octet from right to left by
16)
Subnet ID 4: 197.10.10.80
2^n - 2 >= 4
n=3
197.10.10.00000000
197.10.10.11111000
Converting to decimal
197.10.10.248
(The changes occur in first octet from right to left by
8)
CIDR= 32-3 => 29
Subnet ID 4: 197.10.10.80/29
Broadcast ID: 197.10.10.87/29
Subnet mask: 255.255.255.248
B: 10 host
C: 34 host
D: 44 host
E : 2 host
How to find the Network ID in Classless Routing?
157.110.88.0/26 netwrok ID
157.110.88.1/26
157.110.88.2/26
157.110.88.3
157.110.88.4
157.110.88.5
157.110.88.6
157.110.88.7
157.110.88.30/26
:
:
157.110.88.31/26 Broadcast ID