Binary Subnetting Solutions
Binary Subnetting Solutions
1. Binary Conversion
Convert the following decimal IP addresses to their binary forms (Show calculations)
1. 192.168.5.89
192:
a. 192 requires 128 + 64 (no other combinations are needed).
b. Binary: 11000000
168:
c. 168 requires 128 + 32 + 8 (128 + 32 + 8 = 168).
d. Binary: 10101000
1 1 0 0 0 0 0 0
5:
e. 5 requires 4 + 1.
f. Binary: 00000101
89:
g. 89 requires 64 + 16 + 8 + 1 (64 + 16 + 8 + 1 = 89). 128 + 64 = 192
h. Binary: 01011001
Result: 11000000.10101000.00000101.01011001
To convert decimal number 192 to binary,
from left to right, begin placing 0s and 1s
until you reach decimal number 192. You
will enter 1s for numbers that are part of
the calculation, and 0s for the numbers
2. 10.0.0.1 = 00001010.00000000.00000000.00000001 that are not part of the calculation.
3. 127.0.0.1 = 01111111.00000000.00000000.00000001
4. 223.254.127.0 = 11011111.11111110.01111111.00000000
Convert the following binary IP addresses to their decimal forms (Show calculations)
1. 11000000.10101000.00000001.00000001
Breaking down each octet:
11000000
Calculate as follows:
1×27 + 1×26 + 0×25 + 0×24 + 0×23 + 0×22 + 0×21 + 0×20
1×128 + 1×64 + 0 + 0 + 0 + 0 + 0 + 0
128 + 64 = 192
10101000
Calculate as follows:
1×27 + 0×26 + 1×25 + 0×24 + 1×23 + 0×22 + 0×21 + 0×20
1×128 + 0 + 1×32 + 0 + 1×8 + 0 + 0 + 0
128 + 32 + 8 = 168
00000001
Calculate as follows:
0×27 + 0×26 + 0×25 + 0×24 + 0×23 + 0×22 + 0×21 + 1×20
0 + 0 + 0 + 0 + 0 + 0 + 0 + 1×10
1
00000001 (same calculation as above)
1
Combining the octets into an IP address:
Thus, the binary IP address 11000000.10101000.00000001.00000001 converts to the decimal IP address 192.168.1.1.
2. 00001010.00000000.00000000.00000001 = 10.0.0.1
3. 10101100.00010000.11111110.00000011 = 172.16.254.3
4. 11011111.11111111.01111111.00000000 = 223.225.127.0
2. Subnetting
Steps to Complete:
1. Identify the given IP Address Space
2. Identify the Number of Required Subnets
3. Determine the Number of Bits to Borrow
4. Determine the Number of Hosts per Subnet
5. Calculate the New Subnet Mask and Prefix
6. Apply the Subnet Mask to the IP Space
Note: Use the examples in the practical document as a gauge of how much information is required for each row
1. Given the IP address space 209.54.23.0/24, complete the steps and fill out the table.
1 Given IP address Space 209.54.23.0/24
2 # of Required subnets 4 subnets
3 Number of Bits to Borrow To create 4 subnets from a /24 network, you need to borrow 2 bits
(since 22 = 4)
4 Determine number of Hosts Borrowing 2 bits for subnetting leaves 6 bits for host addresses (26 – 2
per Subnet = 62 hosts per subnet, subtracting 2 for the network and broadcast
addresses.)
5 Calculate new subnet mask Original mask: /24 (255.255.255.0)
and prefix New mask after borrowing 2 bits: /26 (255.255.255.192)
6 Apply subnet mask to IP Subnet 1: 209.54.23.0/26
space Subnet 2: 209.54.23.64/26
Subnet 3: 209.54.23.128/26
Subnet 4: 209.54.23.192/26
This setup with /26 subnetting allows for 4 separate subnets within the original 209.54.23.0/24 network,
each capable of supporting up to 62 usable host addresses.
Step 1: Identify the least significant bit (LSB) of the subnet mask.
Step 2: Determine the subnet to which the host belongs.
Step 3: Calculate the broadcast address for the subnet.
Step 4: Identify the usable range of host IP addresses.
192.168.15.123 /24
Subnet mask for /24 is 255.255.255.0, so the LSB is in the fourth octet.
The network address is 192.168.15.0 because the subnet mask /24 indicates that the first three
octets define the network.
The broadcast address is 192.168.15.255 since all host bits (fourth octet) are set to 1.
172.16.23.88 /28
Subnet mask for /28 is 255.255.255.240, so the LSB is in the fourth octet, specifically the last 4
bits (1111).
With a /28, the subnet is divided into blocks of 16 IPs. 172.16.23.88 belongs to the subnet
172.16.23.80 (172.16.23.80 to 172.16.23.95).
Subnet mask for /26 is 255.255.255.192, which means the last 6 bits of the fourth octet are used for
hosts.
With a /26, each subnet includes 64 IPs. 130.43.34.55 belongs to the subnet 130.43.34.0
(130.43.34.0 to 130.43.34.63).