Scenario #1: IP Allocation in A MAN: Bahria University (Karachi Campus)
Scenario #1: IP Allocation in A MAN: Bahria University (Karachi Campus)
Scenario #1: IP Allocation in A MAN: Bahria University (Karachi Campus)
BSE 5B
Question 1 [CLO 3]
A) Subnet Masks:
255.255.254.0
Explanation:
We need to have 255 workstations on each LAN. A 255.255.255.0 netmask will allow us
only 254 valid hosts on a LAN, reserving one IP address for the network address and one
for the broadcast address. Therefore, we should “borrow” one bit from the previous
octet.164.10.0.0 is a class “B” subnet because the first two bits of 164 are written in
binary as “10”. The default number of subnet bits on a class “B” network is 16. With this
mask we are using a total of 23 masked subnet bits (“1” s), with 9 bits unmasked (“0” s).
we have 7 additional masked subnet bits (23-16=7).2^7-2 = 126. We have a total of 9
unmasked subnet bits. 2^9-2=510. We have a total 512 host Ip address available for each
subnet. To double check your math, add the default subnet bits with the additional subnet
bits and the unmasked subnet bits together to get 32 (16+7+9=32).
B) Network Addresses:
164.10.2.0
164.10.4.0
164.10.6.0
164.10.8.0
164.10.10.0
164.10.12.0
164.10.14.0
164.10.16.0
Explanation:
We are able to do this on cisco router with the addition of “ip subnet-zero” command, but
it is still not a standard usage. Therefore, the first standard subnet is 164.10.2.0. Since
each subnet contains a total of 514 addresses (2^9=512), the subnet must increment in
sets of 512. If the first subnet is 164.10.2.0, the next must be 168.10.4.0. Let’s work it out
Broadcast address are so simple to figure out it will amaze you. Simply take the address
of the next subnet and subtract 1. This equates to all “1” s in the area of the subnet mask
that contain the unmasked bits:
164.10.3.255 = 10100100.00001010.00000011.11111111
255.255.254.0 = 11111111. 11111111. 11111110.00000000
In the 3rd octet of the subnet mask, notice where the masked bits change to unmasked bits.
If all the bits of the Ip address that are over unmasked bits are “1” s, this is a broadcast
address. A network address would have all the “0” s over the unmasked bits.