



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Subnetting Excercises in IP Adress change in Binary System.
Typology: Exercises
1 / 6
This page cannot be seen from the preview
Don't miss anything!
Solution:
dec bin 23 0001 0111 183 1011 0111 62 0011 1110 51 0011 0011
Solution: It begins with a 0, so it’s an A.
Solution: It’s an A, so if no subnetting has been done, the first byte is used for the network part of the address. The network is: 23.0.0.0/
Solution: 8 bits are used for the network part. This leaves 24 bits for the host part. With 24 bits, we can specify about 224 hosts.
Solution: 8 bits are used for the network part, but the first bit must be a 0. There are 27 possibilities.
Solution: 8 bits are used for the network part. The netmask is the IP address with 8 1s and 24 0s. This is 255.0.0.
(a) What is the address of each subnet (in CIDR notation)?
Solution: We have: 23 0 0 0 0001 0111 0000 0000 0000 0000 0000 000 To form the 8 subnets, we steal the first three bits of the host part (i.e., the first 3 bits of the 2nd byte), and give it to the network part. The 8 possibilities for these three bits are: 000 001 010 011 100 101 110 111 These first three bits are in the 128s, 64s, and 32s column of the 2nd byte, so they represent the values: 000 0 001 32 010 64 011 64+32= 100 128 101 128+32= 110 128+64= 111 128+64+32= The 8 subnets are therefore: 23.0.0.0/ 23.32.0.0/ 23.64.0.0/ 23.96.0.0/ 23.128.0.0/ 23.160.0.0/ 23.192.0.0/ 23.224.0.0/
Solution: 24 bits are used for the network part. This leaves 8 bits for the host part. With 8 bits, we can specify about 28 hosts.
Solution: 24 bits are used for the network part, but the first three bits must be 110. There are 221 possibilities.
Solution: 24 bits are used for the network part. The netmask is the IP address with 24 1s and 8 0s. This is 255.255.255.
(a) What is the address of each subnet (in CIDR notation)?
Solution: We have: 207 245 83 0 1100 1111 1111 0101 0101 0011 0000 0000 network part host part To form the 4 subnets, we steal the first two bits of the host part (i.e., the first 2 bits of the 2nd byte), and give it to the network part. The 4 possibilities for these two bits are: 00 01 10 11 These first two bits are in the 128s and 64s column of the 2nd byte, so they represent the values: 00 0 01 64 10 128 11 128+64= The 8 subnets are therefore: They’re all /11s because we’re now using 11 bits for the network part and not 8.
(b) What is the netmask of each subnet?
Solution: We’re using 26 bits for the network part. The netmask is the IP address that consists of 26 1s on the left hand side and 6 0s on the right hand side. This is: 255 255 255 192 1111 1111 1111 1111 1111 1111 1100 0000
To show that we don’t always start at the left-most bits of each byte. Consider the network 23.160.0.0/12.
Solution: 12 bits are used for the network part. This leaves 20 bits for the host part, so approximately 220 hosts.
Solution: It’s the IP address with 12 1s on the left hand side and 20 0s on the right hand side, so:
255 240 0 0 1111 1111 1111 0000 0000 0000 0000 0000
(a) What is the address of each subnet (in CIDR notation)?
Solution: To break it into 8 subnets, we need to steal 3 bits from the host part and give it to the network part. These bits are in the 13th, 14th, and 15th position, i.e., the 5th, 6th, and 7th bits of the 2nd byte. The 8 possibilities for the three bits are: 000 001 010 011 100 101 110 111 These three bits are in the 8s, 4s, and 2s column, so they represent: