Beruflich Dokumente
Kultur Dokumente
Host IP Address
Subnet Mask
Number of Subnet Bits
Number of Subnets
Number of Usable Host Bits per
Subnet
Number of Usable Hosts per Subnet
Subnet Address for this IP Address
IP Address of First Host on this
Subnet
IP Address of Last Host on this
Subnet
Broadcast Address for this Subnet
172.30.1.33
255.255.255.0
Step 1: Translate Host IP Address and Subnet Mask into binary notation
First, list down these values of numbers
128
64
32
16
In order to remember these values start with the number 1, go from right to left, and
double that number seven times. For example, start with 1 on the right side. For your
next number, double the 1 (1 x 2 = 2). So, 2 is your next number (remembering to go
from right to left). For your third number, double the 2 (2 x 2 = 4); to continue the
sequence, double the 4 (4 x 2 = 8). Repeat this process until youve doubled your original
number, seven times. The key to this is that every single one of the values we put in that
row are going to have either number 1 or number 0 assigned to it. To convert the IP
address we will take that string of numbers and start from left to right this time. Each
value in an IP address is an octet. Subtract each octet with the numbers in the list until
there is no remainder left from the octet.
Take the Host IP address 172.30.1.33 and start with the 1st octet (172)
172 128 = 44
44 32 = 12
12 8 = 4
44=0
Assign the number 1 to the values used to subtract the octet and 0 for the ones not
used.
128
1
64
0
32
1
16
0
8
1
4
1
2
0
1
0
So now we know that a decimal number 172 is 10101100 converted to binary form. To
double check, we take the values assigned with 1 and add them together:
128+32+8+4=172
2nd octet (30)
30 16 = 14
14 8 = 6
64=2
22=0
128
64
32
16
8
4
0
0
0
1
1
1
Binary notation for the number 30 is 00011110. (16+8+2=32)
2
1
1
0
2
0
1
1
2
0
1
1
4
0
Subnet Mask
Repeat the same procedure used for the IP address to convert the Subnet Mask into
binary notation.
1st Octet (255)
255 128 = 127
127 64 = 63
63 32 = 31
31 16 = 15
15 8 = 7
74=3
32=1
11=0
128
64
32
16
8
4
2
1
1
1
1
1
1
1
1
1
Binary notation for the number 255 is 11111111. (128+64+32+16+8+4+2+1=255)
2nd Octet (255)
255 128 = 127
127 64 = 63
63 32 = 31
31 16 = 15
15 8 = 7
74=3
32=1
11=0
128
64
32
16
8
4
2
1
1
1
1
1
1
1
1
1
Binary notation for the number 255 is 11111111. (128+64+32+16+8+4+2+1=255)
128
64
32
16
8
4
2
1
1
1
1
1
1
1
1
1
Binary notation for the number 255 is 11111111 (128+64+32+16+8+4+2+1=255)
4th Octet (0)
128
64
32
16
8
4
2
1
0
0
0
0
0
0
0
0
Binary notation for the number 0 is 00000000 (Since there is no number to subtract from
0 so, automatically the answer is 00000000).
So the Subnet Mask 255.255.225.0 has its binary form equivalent of:
11111111.11111111.11111111.00000000
Subnet Address
Perform a bit-wise AND (Logical AND Gate) operation on the Host IP address and Subnet
Mask (1 AND 1 results in 1; 0 AND anything results in a 0).
IP Address
Subnet Mask
Subnet Address
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
128
1
0
0
0
64
0
0
0
0
32
1
0
0
0
2nd Octet
16 + 8 + 4 +2 = 30
3rd Octet
1
16
0
1
0
0
8
1
1
0
0
4
1
1
0
0
2
0
1
0
0
1
0
0
1
0
4th Octet
0
Therefore, the Subnet Address is 172.30.1.0.
Host IP
Address
Subnet Mask
Subnet
Address
10101100
00011110
00000001
00100001
11111111
10101100
11111111
00011110
11111111
00000001
00000000
00000000
Subnet
Counting
Draw the Major Divide (M.D) as a wavy line where the 1s in the major network mask (The
16 left-most bits) end and the Subnet Divide (S.D) as a straight line where the 1s in the
given Subnet Mask end. From here, we can get the number of subnet bits from the subnet
mask by simply counting the number of bits (0 and 1) in the last 16 bits in the Subnet
Mask.
Subnet Bits and Hosts Bits per Subnet
Using this formula, 2x where X = the number of 1s in the last 16 bits of the Subnet Mask,
we can get the total number of subnets. For The number of usable Hosts per subnet, use
2y - 2 where y = the number of 0s in the last 16 bits of the Subnet Mask.
Number of 1s in the last 16 bits of the Subnet Mask
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
6
0
7
0
8
0
2
0
3
0
4
0
5
0
Using the data from the number of 0s and 1s in last 16 bits of the Subnet Mask.
2x = 28 = 256 Subnets (Total)
2y 2 = 28 -2 = 256 2 = 254 Hosts (Total)
Host IP
Address
Subnet Mask
Subnet
Address
10101100
00011110
00000001
00100001
11111111
10101100
11111111
00011110
11111111
00000001
00000000
00000000
Subnet
Counting
First Host
10101100
172
10101100
172
10101100
Last Host
Broadcast
Address
00011110
30
00011110
30
00011110
range
00000001
1
11111110
254
11111111
00000001
1
00000001
1
00000001
172
30
1
255
*Note that the First, Last and Broadcast Address bits in the fourth octet are
used from the Subnet Addresss fourth octet.
For the first host, make all the bits in the host counting range 0 except for the last bit
on the right which will be made 1. This will give you the first host IP Address on the
subnet (172.30.1.1).
To find the last host IP Address, make all the bits in the host counting range 1 except for
the last bit which will be made 0. This will give you the last host IP Address on the
subnet (172.30.1.254).
Broadcast address can be deduced by making all the bits in the host counting range into
1. This will give you the result for the Broadcast Address for the subnet (172.30.1.255).
Converting the First Host, Last Host and Broadcast Address to decimal
form.
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
First Host 10101100.00011110.00000001.00000001
128
1
0
0
0
64
0
0
0
0
32
1
0
0
0
16
0
1
0
0
8
1
1
0
0
4
1
1
0
0
2
0
1
0
0
1
0
0
1
1
128 + 32 + 8 + 4 = 172
2nd Octet
16 + 8 + 4 +2 = 30
3rd Octet
1
4th Octet
1
Therefore, the First Host Address is 172.30.1.1.
Last Host 10101100.00011110.00000001.11111110
128
1
0
0
1
64
0
0
0
1
32
1
0
0
1
16
0
1
0
1
8
1
1
0
1
4
1
1
0
1
2
0
1
0
1
1
0
0
1
0
2
0
1
1
0
0
2nd Octet
16 + 8 + 4 +2 = 30
3rd Octet
1
4th Octet
128 + 64 + 32 + 16 + 8 + 4 + 2 = 254
Therefore, the Last Host Address is 172.30.1.254.
64
0
0
32
1
0
16
0
1
8
1
1
4
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Now that we have all the data, fill in the table given.
Host IP Address
Subnet Mask
Number of Subnet Bits
Number of Subnets
Number of Host Bits per Subnet
Number of Usable Hosts per Subnet
Subnet Address for this IP Address
IP Address of First Host on this
Subnet
IP Address of Last Host on this
Subnet
Broadcast Address for this Subnet
172.30.1.33
255.255.255.0
8
256
8
254
172.30.1.0.
172.30.1.1
172.30.1.254
172.30.1.255
PROBLEM 2
Host IP Address
Subnet Mask
Number of Subnet Bits
Number of Subnets
Number of Usable Host Bits per
172.30.1.33
255.255.255.252
1
1
Subnet
Number of Usable Hosts per Subnet
Subnet Address for this IP Address
IP Address of First Host on this
Subnet
IP Address of Last Host on this
Subnet
Broadcast Address for this Subnet
Step 1: Translate Host IP Address and Subnet Mask into binary notation
First, list down these values of numbers
128
64
32
16
In order to remember these values start with the number 1, go from right to left, and
double that number seven times. For example, start with 1 on the right side. For your
next number, double the 1 (1 x 2 = 2). So, 2 is your next number (remembering to go
from right to left). For your third number, double the 2 (2 x 2 = 4); to continue the
sequence, double the 4 (4 x 2 = 8). Repeat this process until youve doubled your original
number, seven times. The key to this is that every single one of the values we put in that
row are going to have either number 1 or number 0 assigned to it. To convert the IP
address we will take that string of numbers and start from left to right this time. Each
value in an IP address is an octet. Subtract each octet with the numbers in the list until
there is no remainder left from the octet.
Take the Host IP address 172.30.1.33 and start with the 1st octet (172)
172 128 = 44
44 32 = 12
12 8 = 4
44=0
Assign the number 1 to the values used to subtract the octet and 0 for the ones not
used.
128
64
32
16
8
4
2
1
1
0
1
0
1
1
0
0
So now we know that a decimal number 172 is 10101100 converted to binary form. To
double check, we take the values assigned with 1 and add them together:
128+32+8+4=172
2nd octet (30)
30 16 = 14
14 8 = 6
64=2
22=0
128
64
32
16
8
4
0
0
0
1
1
1
Binary notation for the number 30 is 00011110. (16+8+2=32)
2
1
1
0
2
0
1
1
2
0
1
1
4
0
Subnet Mask
Repeat the same procedure used for the IP address to convert the Subnet Mask into
binary notation.
1st Octet (255)
Subnet Address
Perform a bit-wise AND (Logical AND Gate) operation on the Host IP address and Subnet
Mask (1 AND 1 results in 1; 0 AND anything results in a 0).
IP Address
Subnet Mask
Subnet Address
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
128
1
0
0
0
64
0
0
0
0
32
1
0
0
1
16
0
1
0
0
8
1
1
0
0
4
1
1
0
0
2
0
1
0
0
1
0
0
1
0
Host IP
Address
Subnet Mask
Subnet
Address
10101100
00011110
00000001
00100001
11111111
10101100
11111111
00011110
11111111
00000001
11111100
00100000
Host
Counting
Range
Draw the Major Divide (M.D) as a wavy line where the 1s in the major network mask (The
16 left-most bits) end and the Subnet Divide (S.D) as a straight line where the 1s in the
given Subnet Mask end. From here, we can get the number of subnet bits from the subnet
mask by simply counting the number of bits (0 and 1) in the last 16 bits in the Subnet
Mask.
Subnet Bits and Hosts Bits per Subnet
Using this formula, 2x where X = the number of 1s in the last 16 bits of the Subnet Mask,
we can get the total number of subnets. For The number of usable Hosts per subnet, use
2y - 2 where y = the number of 0s in the last 16 bits of the Subnet Mask.
Number of 1s and 0s in the last 16 bits of the Subnet Mask
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
9
1
10
1
11
1
12
1
13
1
14
1
1
0
2
0
Using the data from the number of 0s and 1s in last 16 bits of the Subnet Mask.
2x = 214 = 16,384 Subnets (Total)
2y 2 = 22 -2 = 4 2 = 2 Hosts (Total)
Host IP
Address
Subnet Mask
Subnet
10101100
00011110
00000001
00100001
11111111
10101100
11111111
00011110
11111111
00000001
11111100
00100000
Address
Subnet Counting Range
Host
Counting
Range
First Host
10101100
172
10101100
172
10101100
Last Host
Broadcast
Address
00011110
30
00011110
30
00011110
00000001
1
00000001
1
00000001
00100001
33
00100010
34
00100011
172
30
1
35
*Note that the First, Last and Broadcast Address bits in the fourth octet are
used from the Subnet Addresss fourth octet.
For the first host, make all the bits in the host counting range 0 except for the last bit
on the right which will be made 1. This will give you the first host IP Address on the
subnet (172.30.1.1).
To find the last host IP Address, make all the bits in the host counting range 1 except for
the last bit which will be made 0. This will give you the last host IP Address on the
subnet (172.30.1.254).
Broadcast address can be deduced by making all the bits in the host counting range into
1. This will give you the result for the Broadcast Address for the subnet (172.30.1.255).
Converting the First Host, Last Host and Broadcast Address to decimal
form.
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
First Host 10101100.00011110.00000001.00100001
128
1
0
0
0
64
0
0
0
0
32
1
0
0
1
2nd Octet
16
0
1
0
0
8
1
1
0
0
4
1
1
0
0
2
0
1
0
0
1
0
0
1
1
16 + 8 + 4 +2 = 30
3rd Octet
1
4th Octet
32 + 1 = 33
Therefore, the First Host Address is 172.30.1.33.
Last Host 10101100.00011110.00000001.00100010
128
1
0
0
0
64
0
0
0
0
32
1
0
0
1
16
0
1
0
0
8
1
1
0
0
4
1
1
0
0
2
0
1
0
1
1
0
0
1
0
2
0
1
0
1
1
0
0
1
1
64
0
0
0
0
32
1
0
0
1
16
0
1
0
0
8
1
1
0
0
4
1
1
0
0
16 + 8 + 4 +2 = 30
3rd Octet
1
4th Octet
32 + 2 + 1 = 35
Therefore, the Broadcast Address is 172.30.1.35.
Now that we have all the data, fill in the table given.
Host IP Address
Subnet Mask
Number of Subnet Bits
Number of Subnets
Number of Host Bits per Subnet
Number of Usable Hosts per Subnet
Subnet Address for this IP Address
IP Address of First Host on this
Subnet
IP Address of Last Host on this
Subnet
Broadcast Address for this Subnet
172.30.1.33
255.255.255.0
14
16,384
2
2
172.30.1.32.
172.30.1.33
172.30.1.34
172.30.1.35
PROBLEM 3
Host IP Address
Subnet Mask
Number of Subnet Bits
Number of Subnets
Number of Usable Host Bits per
192.192.10.234
255.255.255.0
Subnet
Number of Usable Hosts per Subnet
Subnet Address for this IP Address
IP Address of First Host on this
Subnet
IP Address of Last Host on this
Subnet
Broadcast Address for this Subnet
Step 1: Translate Host IP Address and Subnet Mask into binary notation
First, list down these values of numbers
128
64
32
16
In order to remember these values start with the number 1, go from right to left, and
double that number seven times. For example, start with 1 on the right side. For your
next number, double the 1 (1 x 2 = 2). So, 2 is your next number (remembering to go
from right to left). For your third number, double the 2 (2 x 2 = 4); to continue the
sequence, double the 4 (4 x 2 = 8). Repeat this process until youve doubled your original
number, seven times. The key to this is that every single one of the values we put in that
row are going to have either number 1 or number 0 assigned to it. To convert the IP
address we will take that string of numbers and start from left to right this time. Each
value in an IP address is an octet. Subtract each octet with the numbers in the list until
there is no remainder left from the octet.
Take the Host IP address 172.30.1.33 and start with the 1st octet (172)
192 128 = 64
64 64 = 0
Assign the number 1 to the values used to subtract the octet and 0 for the ones not
used.
128
64
32
16
8
4
2
1
1
1
0
0
0
0
0
0
So now we know that a decimal number 192 is 11000000 converted to binary form. To
double check, we take the values assigned with 1 and add them together: 128 + 64 =
192
64 64 = 0
128
64
32
16
8
4
1
1
0
0
0
0
Binary notation for the number 192 is 11000000. (128+64=32)
2
0
1
0
2
1
1
0
1
0
Subnet Mask
Repeat the same procedure used for the IP address to convert the Subnet Mask into
binary notation.
1st Octet (255)
128
64
32
16
8
4
2
1
0
0
0
0
0
0
0
0
Binary notation for the number 0 is 00000000 (Since there is no number to subtract from
0 so, automatically the answer is 00000000).
So the Subnet Mask 255.255.255.0 has its binary form equivalent of:
11111111.11111111.11111111.00000000
Subnet Address
Perform a bit-wise AND (Logical AND Gate) operation on the Host IP address and Subnet
Mask (1 AND 1 results in 1; 0 AND anything results in a 0).
IP Address
Subnet Mask
Subnet Address
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
128
1
1
0
0
64
1
1
0
0
32
0
0
0
0
16
0
0
0
0
8
0
0
1
0
4
0
0
0
0
2
0
0
1
0
1
0
0
0
0
3rd Octet
8 + 2 = 10
4th Octet
0
Therefore, the Subnet Address is 192.192.10.0.
Host IP
Address
Subnet Mask
Subnet
Address
11000000
11000000
00001010
11101010
11111111
11000000
11111111
11000000
11111111
00001010
00000000
00000000
Subnet
Counting
Range
Draw the Major Divide (M.D) as a wavy line where the 1s in the major network mask (The
16 left-most bits) end and the Subnet Divide (S.D) as a straight line where the 1s in the
given Subnet Mask end. From here, we can get the number of subnet bits from the subnet
mask by simply counting the number of bits (0 and 1) in the last 16 bits in the Subnet
Mask.
Subnet Bits and Hosts Bits per Subnet
Using this formula, 2x where X = the number of 1s in the last 16 bits of the Subnet Mask,
we can get the total number of subnets. For The number of usable Hosts per subnet, use
2y - 2 where y = the number of 0s in the last 16 bits of the Subnet Mask.
Number of 1s and 0s in the last 16 bits of the Subnet Mask
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
1
0
2
0
3
0
4
0
5
0
6
0
7
0
8
0
Using the data from the number of 0s and 1s in last 16 bits of the Subnet Mask.
2x = 28 = 256 Subnets (Total)
2y 2 = 28 -2 = 256 2 = 254 Hosts (Total)
Host IP
Address
Subnet Mask
Subnet
Address
11000000
11000000
00001010
11101010
11111111
11000000
11111111
11000000
11111111
00001010
00000000
00000000
Subnet
Counting
Range
First Host
11000000
192
11000000
192
11000000
Last Host
Broadcast
Address
11000000
192
11000000
192
11000000
00001010
10
00001010
10
00001010
00000001
1
11111110
254
11111111
192
192
10
255
*Note that the First, Last and Broadcast Address bits in the fourth octet are
used from the Subnet Addresss fourth octet.
For the first host, make all the bits in the host counting range 0 except for the last bit
on the right which will be made 1. This will give you the first host IP Address on the
subnet (172.30.1.1).
To find the last host IP Address, make all the bits in the host counting range 1 except for
the last bit which will be made 0. This will give you the last host IP Address on the
subnet (172.30.1.254).
Broadcast address can be deduced by making all the bits in the host counting range into
1. This will give you the result for the Broadcast Address for the subnet (172.30.1.255).
Converting the First Host, Last Host and Broadcast Address to decimal
form.
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
First Host 11000000.11000000.00001010.00000001
128
1
1
0
0
64
1
1
0
0
2nd Octet
128 + 64 = 192
3rd Octet
32
0
0
0
0
16
0
0
0
0
8
0
0
1
0
4
0
0
0
0
2
0
0
1
0
1
0
0
0
1
8 + 2 = 10
4th Octet
1
Therefore, the First Host Address is 192.192.10.1.
Last Host 11000000.11000000.00001010.11111110
128
1
1
0
1
64
1
1
0
1
32
0
0
0
1
16
0
0
0
1
8
0
0
1
1
4
0
0
0
1
2
0
0
1
1
1
0
0
0
0
2
0
0
1
1
1
0
0
0
1
64
1
1
0
1
32
0
0
0
1
16
0
0
0
1
8
0
0
1
1
4
0
0
0
1
8 + 2 = 10
4th Octet
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 225
Therefore, the Broadcast Address is 192.192.10.255.
Now that we have all the data, fill in the table given.
Host IP Address
Subnet Mask
Number of Subnet Bits
Number of Subnets
Number of Host Bits per Subnet
Number of Usable Hosts per Subnet
Subnet Address for this IP Address
IP Address of First Host on this
Subnet
IP Address of Last Host on this
Subnet
Broadcast Address for this Subnet
192.192.10.234
255.255.255.0
8
256
8
254
192.192.10.0.
192.192.10.1
192.192.10.254
192.192.10.255
PROBLEM 4
Host IP Address
Subnet Mask
Number of Subnet Bits
Number of Subnets
Number of Usable Host Bits per
Subnet
Number of Usable Hosts per Subnet
Subnet Address for this IP Address
172.17.99.71
255.255.0.0
64
32
16
In order to remember these values start with the number 1, go from right to left, and
double that number seven times. For example, start with 1 on the right side. For your
next number, double the 1 (1 x 2 = 2). So, 2 is your next number (remembering to go
from right to left). For your third number, double the 2 (2 x 2 = 4); to continue the
sequence, double the 4 (4 x 2 = 8). Repeat this process until youve doubled your original
number, seven times. The key to this is that every single one of the values we put in that
row are going to have either number 1 or number 0 assigned to it. To convert the IP
address we will take that string of numbers and start from left to right this time. Each
value in an IP address is an octet. Subtract each octet with the numbers in the list until
there is no remainder left from the octet.
Take the Host IP address 172.30.1.33 and start with the 1st octet (172)
172 128 = 44
44 32 = 12
12 8 = 4
44=0
Assign the number 1 to the values used to subtract the octet and 0 for the ones not
used.
128
64
32
16
8
4
2
1
1
0
1
0
1
1
0
0
So now we know that a decimal number 172 is 10101100 converted to binary form. To
double check, we take the values assigned with 1 and add them together:
128+32+8+4=172
2nd octet (17)
17 16 = 1
11=0
128
64
32
16
0
0
0
1
0
0
Binary notation for the number 17 is 00010001. (16+1=17)
128
64
32
16
8
4
2
0
1
1
0
0
0
1
Binary notation for the number 99 is 01100011. (64+32+2+1=99)
1
1
2
1
1
1
Subnet Mask
Repeat the same procedure used for the IP address to convert the Subnet Mask into
binary notation.
1st Octet (255)
255 128 = 127
127 64 = 63
63 32 = 31
31 16 = 15
15 8 = 7
74=3
32=1
11=0
128
64
32
16
8
4
2
1
1
1
1
1
1
1
1
1
Binary notation for the number 255 is 11111111. (128+64+32+16+8+4+2+1=255)
2nd Octet (255)
255 128 = 127
127 64 = 63
63 32 = 31
31 16 = 15
15 8 = 7
74=3
32=1
11=0
128
64
32
16
8
4
2
1
1
1
1
1
1
1
1
1
Binary notation for the number 255 is 11111111. (128+64+32+16+8+4+2+1=255)
So the Subnet Mask 255.255.255.252 has its binary form equivalent of:
11111111.11111111.00000000.00000000
Subnet Address
Perform a bit-wise AND (Logical AND Gate) operation on the Host IP address and Subnet
Mask (1 AND 1 results in 1; 0 AND anything results in a 0).
IP Address
Subnet Mask
Subnet Address
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
128
1
0
0
0
64
0
0
0
0
32
1
0
0
0
16
0
1
0
0
8
1
0
0
0
4
1
0
0
0
2
0
0
0
0
1
0
1
0
0
3rd Octet
0
4th Octet
0
Therefore, the Subnet Address is 172.17.0.0.
Host IP
Address
Subnet Mask
Subnet
10101100
00010001
01100011
01000111
11111111
10101100
11111111
00010001
00000000
00000000
00000000
00000000
Address
Subnet
Host Counting Range
Counting Range
Draw the Major Divide (M.D) as a wavy line where the 1s in the major network mask (The
16 left-most bits) end and the Subnet Divide (S.D) as a straight line where the 1s in the
given Subnet Mask end. From here, we can get the number of subnet bits from the subnet
mask by simply counting the number of bits (0 and 1) in the last 16 bits in the Subnet
Mask.
Subnet Bits and Hosts Bits per Subnet
Using this formula, 2x where X = the number of 1s in the last 16 bits of the Subnet Mask,
we can get the total number of subnets. For The number of usable Hosts per subnet, use
2y - 2 where y = the number of 0s in the last 16 bits of the Subnet Mask.
Number of 1s and 0s in the last 16 bits of the Subnet Mask
1
0
2
0
3
0
4
0
5
0
6
0
7
0
8
0
9
0
10
0
11
0
12
0
13
0
14
0
15
0
16
0
Using the data from the number of 0s and 1s in last 16 bits of the Subnet Mask.
2x = 20 = 1 Subnet (Total)
2y 2 = 216 -2 = 65,536 2 = 65,534 Hosts (Total)
Host IP
Address
Subnet Mask
Subnet
Address
10101100
00010001
01100011
01000111
11111111
10101100
11111111
00010001
00000000
00000000
00000000
00000000
Subnet
10101100
172
10101100
00010001
17
00010001
00000000
0
11111111
00000001
33
11111110
172
10101100
Broadcast
Address
17
00010001
0
11111111
34
11111111
172
17
0
35
*Note that the First, Last and Broadcast Address bits in the fourth octet are
used from the Subnet Addresss fourth octet.
For the first host, make all the bits in the host counting range 0 except for the last bit
on the right which will be made 1. This will give you the first host IP Address on the
subnet (172.30.1.1).
To find the last host IP Address, make all the bits in the host counting range 1 except for
the last bit which will be made 0. This will give you the last host IP Address on the
subnet (172.30.1.254).
Broadcast address can be deduced by making all the bits in the host counting range into
1. This will give you the result for the Broadcast Address for the subnet (172.30.1.255).
Converting the First Host, Last Host and Broadcast Address to decimal
form.
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
First Host 10101100.00010001.00000000.00000001
128
1
0
0
0
64
0
0
0
0
32
1
0
0
0
16
0
1
0
0
8
1
0
0
0
2nd Octet
16 + 1 = 17
3rd Octet
0
4th Octet
1
Therefore, the First Host Address is 172.17.0.1.
4
1
0
0
0
2
0
0
0
0
1
0
1
0
1
64
0
0
1
1
32
1
0
1
1
16
0
1
1
1
8
1
0
1
1
4
1
0
1
1
2
0
0
1
1
1
0
1
1
0
2
0
0
1
1
1
0
1
1
1
64
0
0
1
1
32
1
0
1
1
16
0
1
1
1
8
1
0
1
1
4
1
0
1
1
Now that we have all the data, fill in the table given.
Host IP Address
Subnet Mask
Number of Subnet Bits
Number of Subnets
Number of Host Bits per Subnet
Number of Usable Hosts per Subnet
Subnet Address for this IP Address
IP Address of First Host on this
Subnet
IP Address of Last Host on this
Subnet
Broadcast Address for this Subnet
172.17.99.71
255.255.0.0
0
1
16
65,534
172.17.0.0.
172.17.0.1
172.17.255.254
172.17.255.255
PROBLEM 5
Host IP Address
Subnet Mask
Number of Subnet Bits
Number of Subnets
Number of Usable Host Bits per
Subnet
Number of Usable Hosts per Subnet
Subnet Address for this IP Address
IP Address of First Host on this
Subnet
IP Address of Last Host on this
Subnet
Broadcast Address for this Subnet
192.168.3.219
255.255.255.0
Step 1: Translate Host IP Address and Subnet Mask into binary notation
64
32
16
In order to remember these values start with the number 1, go from right to left, and
double that number seven times. For example, start with 1 on the right side. For your
next number, double the 1 (1 x 2 = 2). So, 2 is your next number (remembering to go
from right to left). For your third number, double the 2 (2 x 2 = 4); to continue the
sequence, double the 4 (4 x 2 = 8). Repeat this process until youve doubled your original
number, seven times. The key to this is that every single one of the values we put in that
row are going to have either number 1 or number 0 assigned to it. To convert the IP
address we will take that string of numbers and start from left to right this time. Each
value in an IP address is an octet. Subtract each octet with the numbers in the list until
there is no remainder left from the octet.
Take the Host IP address 172.30.1.33 and start with the 1st octet (172)
192 128 = 64
64 64 = 0
Assign the number 1 to the values used to subtract the octet and 0 for the ones not
used.
128
64
32
16
8
4
2
1
1
1
0
0
0
0
0
0
So now we know that a decimal number 192 is 11000000 converted to binary form. To
double check, we take the values assigned with 1 and add them together: 128 + 64 =
192
1
0
128
64
32
16
8
4
0
0
0
0
0
0
Binary notation for the number 3 is 00000011. (2+1=3)
2
1
1
1
Subnet Mask
Repeat the same procedure used for the IP address to convert the Subnet Mask into
binary notation.
1st Octet (255)
255 128 = 127
127 64 = 63
63 32 = 31
31 16 = 15
15 8 = 7
74=3
32=1
11=0
128
64
32
16
8
4
2
1
1
1
1
1
1
1
1
1
Binary notation for the number 255 is 11111111. (128+64+32+16+8+4+2+1=255)
2nd Octet (255)
255 128 = 127
127 64 = 63
63 32 = 31
31 16 = 15
15 8 = 7
74=3
32=1
11=0
128
64
32
16
8
4
2
1
1
1
1
1
1
1
1
1
Binary notation for the number 255 is 11111111. (128+64+32+16+8+4+2+1=255)
Subnet Address
Perform a bit-wise AND (Logical AND Gate) operation on the Host IP address and Subnet
Mask (1 AND 1 results in 1; 0 AND anything results in a 0).
IP Address
Subnet Mask
Subnet Address
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
128
1
1
0
0
64
1
0
0
0
32
0
1
0
0
16
0
0
0
0
8
0
1
0
0
4
0
0
0
0
2
0
0
1
0
1
0
0
1
0
3rd Octet
2+1=3
4th Octet
0
Therefore, the Subnet Address is 192.168.3.0.
Host IP
Address
Subnet Mask
Subnet
Address
11000000
10101000
00000011
11011011
11111111
11000000
11111111
10101000
11111111
00000011
00000000
00000000
Subnet
Counting
Range
Draw the Major Divide (M.D) as a wavy line where the 1s in the major network mask (The
16 left-most bits) end and the Subnet Divide (S.D) as a straight line where the 1s in the
given Subnet Mask end. From here, we can get the number of subnet bits from the subnet
mask by simply counting the number of bits (0 and 1) in the last 16 bits in the Subnet
Mask.
Subnet Bits and Hosts Bits per Subnet
Using this formula, 2x where X = the number of 1s in the last 16 bits of the Subnet Mask,
we can get the total number of subnets. For The number of usable Hosts per subnet, use
2y - 2 where y = the number of 0s in the last 16 bits of the Subnet Mask.
Number of 1s and 0s in the last 16 bits of the Subnet Mask
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
1
0
2
0
3
0
4
0
5
0
6
0
7
0
8
0
Using the data from the number of 0s and 1s in last 16 bits of the Subnet Mask.
2x = 28 = 256 Subnets (Total)
2y 2 = 28 -2 = 256 2 = 254 Hosts (Total)
Host IP
Address
Subnet Mask
Subnet
Address
11000000
10101000
00000011
11011011
11111111
11000000
11111111
10101000
11111111
00000011
00000000
00000000
Subnet
Counting
Range
First Host
Last Host
Broadcast
Address
11000000
192
11000000
192
11000000
10101000
168
10101000
168
10101000
00000011
3
00000011
3
00000011
00000001
1
11111110
254
11111111
192
168
3
255
*Note that the First, Last and Broadcast Address bits in the fourth octet are
used from the Subnet Addresss fourth octet.
For the first host, make all the bits in the host counting range 0 except for the last bit
on the right which will be made 1. This will give you the first host IP Address on the
subnet (172.30.1.1).
To find the last host IP Address, make all the bits in the host counting range 1 except for
the last bit which will be made 0. This will give you the last host IP Address on the
subnet (172.30.1.254).
Broadcast address can be deduced by making all the bits in the host counting range into
1. This will give you the result for the Broadcast Address for the subnet (172.30.1.255).
Converting the First Host, Last Host and Broadcast Address to decimal
form.
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
First Host 11000000.10101000.00000011.00000001
128
1
1
0
0
64
1
0
0
0
32
0
1
0
0
16
0
0
0
0
8
0
1
0
0
4
0
0
0
0
2
0
0
1
0
1
0
0
1
1
4
0
0
0
2
0
0
1
1
0
0
1
2nd Octet
128 + 32 + 8 = 168
3rd Octet
2+1=3
4th Octet
1
Therefore, the First Host Address is 192.168.3.1.
Last Host 11000000.10101000.00000011.11111110
128
1
1
0
64
1
0
0
32
0
1
0
16
0
0
0
8
0
1
0
2
0
0
1
1
1
0
0
1
1
64
1
0
0
1
32
0
1
0
1
16
0
0
0
1
8
0
1
0
1
4
0
0
0
1
Now that we have all the data, fill in the table given.
Host IP Address
Subnet Mask
192.192.10.234
255.255.255.0
8
256
8
254
192.168.3.0
192.168.3.1
192.168.3.254
192.168.3.255
PROBLEM 6
Host IP Address
Subnet Mask
Number of Subnet Bits
Number of Subnets
Number of Usable Host Bits per
Subnet
Number of Usable Hosts per Subnet
Subnet Address for this IP Address
IP Address of First Host on this
Subnet
IP Address of Last Host on this
Subnet
Broadcast Address for this Subnet
192.168.3.219
255.255.255.252
Step 1: Translate Host IP Address and Subnet Mask into binary notation
First, list down these values of numbers
128
64
32
16
In order to remember these values start with the number 1, go from right to left, and
double that number seven times. For example, start with 1 on the right side. For your
next number, double the 1 (1 x 2 = 2). So, 2 is your next number (remembering to go
from right to left). For your third number, double the 2 (2 x 2 = 4); to continue the
sequence, double the 4 (4 x 2 = 8). Repeat this process until youve doubled your original
number, seven times. The key to this is that every single one of the values we put in that
row are going to have either number 1 or number 0 assigned to it. To convert the IP
address we will take that string of numbers and start from left to right this time. Each
value in an IP address is an octet. Subtract each octet with the numbers in the list until
there is no remainder left from the octet.
Take the Host IP address 172.30.1.33 and start with the 1st octet (172)
192 128 = 64
64 64 = 0
Assign the number 1 to the values used to subtract the octet and 0 for the ones not
used.
128
64
32
16
8
4
2
1
1
1
0
0
0
0
0
0
So now we know that a decimal number 192 is 11000000 converted to binary form. To
double check, we take the values assigned with 1 and add them together: 128 + 64 =
192
1
0
2
1
1
1
Subnet Mask
Repeat the same procedure used for the IP address to convert the Subnet Mask into
binary notation.
1st Octet (255)
255 128 = 127
127 64 = 63
63 32 = 31
31 16 = 15
15 8 = 7
74=3
32=1
11=0
128
64
32
16
8
4
2
1
1
1
1
1
1
1
1
1
Binary notation for the number 255 is 11111111. (128+64+32+16+8+4+2+1=255)
Subnet Address
Perform a bit-wise AND (Logical AND Gate) operation on the Host IP address and Subnet
Mask (1 AND 1 results in 1; 0 AND anything results in a 0).
IP Address
Subnet Mask
Subnet Address
Use the method in converting the Host IP Address and Subnet Mask to convert the
Network Address into decimals (Reversed; adding the numbers instead of subtracting).
128
1
1
0
1
64
1
0
0
1
32
0
1
0
0
16
0
0
0
1
8
0
1
0
1
4
0
0
0
0
2
0
0
1
0
1
0
0
1
0
3rd Octet
2+1=3
4th Octet
128 + 64 + 16 + 8 = 216
Therefore, the Subnet Address is 192.168.3.216.
Host IP
Address
Subnet Mask
11000000
10101000
11111111
11111111
11011011