You are on page 1of 12

Determine subnet information for a given IP address and subnetwork mask.

Task 2: Challenge.
Problem 1
(1) IP Address 172.30.1.33
(2) Subnet Mask 255.255.255.0
Number of IP Address and Subnet Mask after convert to binary
(1) IP
10101100.00011110.00000001.00100001
(2) Subnet
11111111.11111111.11111111.00000000
Determine the number of Subnet Bits
No. of Subnet Bits= 8(11111111.11111111.11111111.00000000)
No. of Subnets = 2n
(n = Subnet Bits [Count the number
= 28
of 1 right before the number of 0 in
= 256
Subnet Mask to get the number of
Subnet Bits])
Determine the number of Host Bits per Subnet
No. of Host Bits per Subnet= 8(11111111.11111111.11111111.00000000)
No. of Usable Host per Subnet = 2n
(n = Subnet Bits [Count the number
= 28-2
of 0 in Subnet Mask to get the
= 256-2
number of Subnet Bits])
= 254
Calculate the Subnet Address for IP Address
*Perform a bit-wise AND (Multiply) operation on the IP address and the subnet mask*
(1 AND 1 = 1 ; 0 AND 1 = 0)
10101100
00011110
00000001
00100001 (IP Address)
AND
AND
AND
AND
11111111
11111111
11111111
00000000 (Subnet Mask)
10101100
00011110
00000001
00000000 (Subnet Address)
172
30
1
0
Subnet Address = 172.30.255.0
Determine the IP Address of the first Host on this Subnet
10101100
00011110
00000001
00000000 (Subnet Address)
10101100
00011110
00000001
00000001 (Change the 1st Host from 1 to 0)
After Change = 172.30.1.1
Determine the IP Address of Last Host on this Subnet
*Perform an invert (swap 0 to 1, 1 to 0) on the 1st Host IP Address and the Last Host IP
Address *(invert the number in host bits counting range)
10101100
00011110
00000001
00000001 (1st Host IP Address)
Inverted
10101100
00011110
00000001
11111110 (Last Host IP Address)
172
30
1
254
After Invert = 172.30.1.254

Determine the Broadcast Address for this Subnet


10101100
00011110
00000001
10101100
00011110
00000001

00000000 (Last Host IP Address)


11111111 ([Broadcast Address] Change the
number from 0 to 1)

After Change = 172.30.1.255


Information Table
Host IP Address
Subnet Mask
Number Of Subnet Bits
Number Of Subnet
Number Of Host Bits Per Subnet
Number Of Usable Hosts Per Subnet
Subnet Address For This IP Address
IP Address Of First Host IP Address
IP Address Of Last Host IP Address
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
(1) IP Address 172.30.1.33
(2) Subnet Mask 255.255.255.252
Number of IP Address and Subnet Mask after convert to binary
(1) IP
10101100.00011110.00000001.001000 01
(2) Subnet
11111111.11111111.11111111.111111 00
Determine the number of Subnet Bits
No. of Subnet Bits= 14(11111111.11111111.11111111.111111 00)
No. of Subnets = 2n
(n = Subnet Bits [Count the number
= 214
of 1 right before the number of 0 in
= 16,384
Subnet Mask to get the number of
Subnet Bits])
Determine the number of Host Bits per Subnet
No. of Host Bits per Subnet= 2(11111111.11111111.11111111.111111 00)
No. of Usable Host per Subnet = 2n
(n = Subnet Bits [Count the number
= 22-2
of 0 in Subnet Mask to get the
= 4-2
number of Subnet Bits])
=2
Calculate the Subnet Address for IP Address
*Perform a bit-wise AND (Multiply) operation on the IP address and the subnet mask*
(1 AND 1 = 1 ; 0 AND 1 = 0)
10101100
00011110
00000001
001000 01 (IP Address)
AND
AND
AND
AND
11111111
11111111
11111111
111111 00 (Subnet Mask)
10101100
00011110
00000001
001000 00 (Subnet Address)
172
30
1
32
Subnet Address = 172.30.255.32
Determine the IP Address of the first Host on this Subnet
10101100
00011110
00000001
000000 00 (Subnet Address)
10101100
00011110
00000001
001000 01 (Change the 1st Host from 1 to 0)
After Change = 172.30.1.33
Determine the IP Address of Last Host on this Subnet
*Perform an invert (swap 0 to 1, 1 to 0) on the 1st Host IP Address and the Last Host IP
Address *(invert the number in host bits counting range)
10101100
00011110
00000001
000000 01 (1st Host IP Address)
Inverted
10101100
00011110
00000001
001000 10 (Last Host IP Address)
172
30
1
34
After Invert = 172.30.1.34

Determine the Broadcast Address for this Subnet


10101100
00011110
00000001
10101100
00011110
00000001

111111 10 (Last Host IP Address)


001000 11 ([Broadcast Address] Change the
number from 0 to 1)

After Change = 172.30.1.35


Information Table
Host IP Address
Subnet Mask
Number Of Subnet Bits
Number Of Subnet
Number Of Host Bits Per Subnet
Number Of Usable Hosts Per Subnet
Subnet Address For This IP Address
IP Address Of First Host IP Address
IP Address Of Last Host IP Address
Broadcast Address For This Subnet

172.30.1.33
255.255.255.252
14
16,384
2
2
172.30.1.32
172.30.1.33
172.30.1.34
172.30.1.35

Problem 3
(1) IP Address 192.192.10.234
(2) Subnet Mask 255.255.255.0
Number of IP Address and Subnet Mask after convert to binary
(1) IP
11000000.11000000.00001010.11101010
(2) Subnet
11111111.11111111.11111111.00000000
Determine the number of Subnet Bits
No. of Subnet Bits= 8(11111111.11111111.11111111.00000000)
No. of Subnets = 2n
(n = Subnet Bits [Count the number
= 28
of 1 right before the number of 0 in
= 256
Subnet Mask to get the number of
Subnet Bits])
Determine the number of Host Bits per Subnet
No. of Host Bits per Subnet= 8(11111111.11111111.11111111.00000000)
No. of Usable Host per Subnet = 2n
(n = Subnet Bits [Count the number
= 28-2
of 0 in Subnet Mask to get the
= 256-2
number of Subnet Bits])
= 254
Calculate the Subnet Address for IP Address
*Perform a bit-wise AND (Multiply) operation on the IP address and the subnet mask*
(1 AND 1 = 1 ; 0 AND 1 = 0)
11000000
11000000
00001010
11101010 (IP Address)
AND
AND
AND
AND
11111111
11111111
11111111
00000000 (Subnet Mask)
11000000
11000000
00001010
00000000 (Subnet Address)
192
192
10
0
Subnet Address = 192.192.10.0
Determine the IP Address of the first Host on this Subnet
11000000
11000000
00001010
00000000 (Subnet Address)
11000000
11000000
00001010
00000001 (Change the 1st Host from 1 to 0)
After Change = 192.192.10.1
Determine the IP Address of Last Host on this Subnet
*Perform an invert (swap 0 to 1, 1 to 0) on the 1st Host IP Address and the Last Host IP
Address *(invert the number in host bits counting range)
11000000
11000000
00001010
00000001 (1st Host IP Address)
Inverted
11000000
11000000
00001010
11111110 (Last Host IP Address)
192
192
10
254
After Invert = 192.192.10.254

Determine the Broadcast Address for this Subnet


11000000
11000000
00001010
11000000
11000000
00001010

11111110 (Last Host IP Address)


11111111 ([Broadcast Address] Change the
number from 0 to 1)

After Change = 192.192.10.255


Information Table
Host IP Address
Subnet Mask
Number Of Subnet Bits
Number Of Subnet
Number Of Host Bits Per Subnet
Number Of Usable Hosts Per Subnet
Subnet Address For This IP Address
IP Address Of First Host IP Address
IP Address Of Last Host IP Address
Broadcast Address For This Subnet

192.192.10.234
255.255.255.0
0
1
8
254
192.192.10.0
192.192.10.1
192.192.10.254
192.192.10.255

Problem 4
(1) IP Address 172.17.99.71
(2) Subnet Mask 255.255.0.0
Number of IP Address and Subnet Mask after convert to binary
(1) IP
10101100.00010001.01100011.01000111
(2) Subnet
11111111.11111111.00000000.00000000
Determine the number of Subnet Bits
No. of Subnet Bits= 0(11111111.11111111.00000000.00000000)
No. of Subnets = 2n
(n = Subnet Bits [Count the number
= 20
of 1 right before the number of 0 in
=1
Subnet Mask to get the number of
Subnet Bits])
Determine the number of Host Bits per Subnet
No. of Host Bits per Subnet= 16(11111111.11111111.00000000.00000000)
No. of Usable Host per Subnet = 2n
(n = Subnet Bits [Count the number
= 216-2
of 0 in Subnet Mask to get the
= 65,536-2
number of Subnet Bits])
= 65,564
Calculate the Subnet Address for IP Address
*Perform a bit-wise AND (Multiply) operation on the IP address and the subnet mask*
(1 AND 1 = 1 ; 0 AND 1 = 0)
10101100
00010001
01100011
01000111 (IP Address)
AND
AND
AND
AND
11111111
11111111
11111111
00000000 (Subnet Mask)
10101100
00010001
00000000
00000000 (Subnet Address)
172
17
0
0
Subnet Address = 172.17.0.0
Determine the IP Address of the first Host on this Subnet
10101100
00010001
00000000
00000000 (Subnet Address)
10101100
00010001
00000000
00000001 (Change the 1st Host from 1 to 0)
After Change = 172.17.0.1
Determine the IP Address of Last Host on this Subnet
*Perform an invert (swap 0 to 1, 1 to 0) on the 1st Host IP Address and the Last Host IP
Address *(invert the number in host bits counting range)
10101100
00010001
00000000
00000001 (1st Host IP Address)
Inverted
Inverted
10101100
00010001
11111111
11111110 (Last Host IP Address)
172
17
255
254
After Invert = 172.17.255.254

Determine the Broadcast Address for this Subnet


10101100
00010001
11111111
10101100
00010001
11111111

11111110 (Last Host IP Address)


11111111 ([Broadcast Address] Change the
number from 0 to 1)

After Change = 172.17.255.255


Information Table
Host IP Address
Subnet Mask
Number Of Subnet Bits
Number Of Subnet
Number Of Host Bits Per Subnet
Number Of Usable Hosts Per Subnet
Subnet Address For This IP Address
IP Address Of First Host IP Address
IP Address Of Last Host IP Address
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
(1) IP Address 192.168.3.219
(2) Subnet Mask 255.255.255.0
Number of IP Address and Subnet Mask after convert to binary
(1) IP
11000000.10101000.00000011.11011011
(2) Subnet
11111111.11111111.11111111.00000000
Determine the number of Subnet Bits
No. of Subnet Bits= 8(11111111.11111111.11111111.00000000)
No. of Subnets = 2n
(n = Subnet Bits [Count the number
= 28
of 1 right before the number of 0 in
= 256
Subnet Mask to get the number of
Subnet Bits])
Determine the number of Host Bits per Subnet
No. of Host Bits per Subnet= 8(11111111.11111111.11111111.00000000)
No. of Usable Host per Subnet = 2n
(n = Subnet Bits [Count the number
= 28-2
of 0 in Subnet Mask to get the
= 256-2
number of Subnet Bits])
= 254
Calculate the Subnet Address for IP Address
*Perform a bit-wise AND (Multiply) operation on the IP address and the subnet mask*
(1 AND 1 = 1 ; 0 AND 1 = 0)
11000000
10101000
00000011
11011011 (IP Address)
AND
AND
AND
AND
11111111
11111111
11111111
00000000 (Subnet Mask)
11000000
10101000
00000011
00000000 (Subnet Address)
192
168
3
0
Subnet Address = 192.168.3.0
Determine the IP Address of the first Host on this Subnet
11000000
10101000
00000011
00000000 (Subnet Address)
11000000
10101000
00000011
00000001 (Change the 1st Host from 1 to 0)
After Change = 192.168.3.1
Determine the IP Address of Last Host on this Subnet
*Perform an invert (swap 0 to 1, 1 to 0) on the 1st Host IP Address and the Last Host IP
Address *(invert the number in host bits counting range)
11000000
10101000
00000011
00000001 (1st Host IP Address)
Inverted
11000000
10101000
00000011
11111110 (Last Host IP Address)
172
30
1
254
After Invert = 192.168.3.254

Determine the Broadcast Address for this Subnet


11000000
10101000
00000011
11000000
10101000
00000011

00000000 (Last Host IP Address)


11111111 ([Broadcast Address] Change the
number from 0 to 1)

After Change = 192.168.3.255


Information Table
Host IP Address
Subnet Mask
Number Of Subnet Bits
Number Of Subnet
Number Of Host Bits Per Subnet
Number Of Usable Hosts Per Subnet
Subnet Address For This IP Address
IP Address Of First Host IP Address
IP Address Of Last Host IP Address
Broadcast Address For This Subnet

192.168.3.219
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
(1) IP Address 192.168.3.219
(2) Subnet Mask 255.255.255.252
Number of IP Address and Subnet Mask after convert to binary
(1) IP
11000000.10101000.00000011.110110 11
(2) Subnet
11111111.11111111.11111111.111111 00
Determine the number of Subnet Bits
No. of Subnet Bits= 14(11111111.11111111.11111111.111111 00)
No. of Subnets = 2n
(n = Subnet Bits [Count the number
= 214
of 1 right before the number of 0 in
= 16,384
Subnet Mask to get the number of
Subnet Bits])
Determine the number of Host Bits per Subnet
No. of Host Bits per Subnet= 2(11111111.11111111.11111111.111111 00)
No. of Usable Host per Subnet = 2n
(n = Subnet Bits [Count the number
= 22-2
of 0 in Subnet Mask to get the
= 4-2
number of Subnet Bits])
=2
Calculate the Subnet Address for IP Address
*Perform a bit-wise AND (Multiply) operation on the IP address and the subnet mask*
(1 AND 1 = 1 ; 0 AND 1 = 0)
11000000
10101000
00000011
110110 11 (IP Address)
AND
AND
AND
AND
11111111
11111111
11111111
111111 00 (Subnet Mask)
11000000
10101000
00000011
110110 00 (Subnet Address)
192
168
3
216
Subnet Address = 192.168.3.216
Determine the IP Address of the first Host on this Subnet
11000000
10101000
00000011
110110 00 (Subnet Address)
11000000
10101000
00000011
110110 01 (Change the 1st Host from 1 to 0)
After Change = 192.168.3.217
Determine the IP Address of Last Host on this Subnet
*Perform an invert (swap 0 to 1, 1 to 0) on the 1st Host IP Address and the Last Host IP
Address *(invert the number in host bits counting range)
11000000
10101000
00000011
110110 01 (1st Host IP Address)
Inverted
11000000
10101000
00000011
110110 10 (Last Host IP Address)
172
30
1
34
After Invert = 192.168.3.218

Determine the Broadcast Address for this Subnet


11000000
10101000
00000011
11000000
10101000
00000011

110110 10 (Last Host IP Address)


110110 11 ([Broadcast Address] Change the
number from 0 to 1)

After Change = 192.168.3.219


Information Table
Host IP Address
Subnet Mask
Number Of Subnet Bits
Number Of Subnet
Number Of Host Bits Per Subnet
Number Of Usable Hosts Per Subnet
Subnet Address For This IP Address
IP Address Of First Host IP Address
IP Address Of Last Host IP Address
Broadcast Address For This Subnet

192.168.3.219
255.255.255.252
14
16,384
2
2
192.168.3.216
192.168.3.217
192.168.3.218
192.168.3.219

You might also like