Network+: ch 8 Written Labs and Review Questions Flashcards
Practice Example #1C: 255.255.255.128 (/25)
192.168.10.0 = Network address
255.255.255.128 = Subnet mask
Answer the big 5 from network + and the four from subnetting .com
Because 128 is 10000000 in binary, there is only 1 bit for subnetting, and there are 7 bits or hosts. We’re going to subnet the Class C network address 192.168.10.0.
- 168.10.0 = Network address
- 255.255.128 = Subnet mask
Now, let’s answer the big five: How many subnets? Because 128 is 1 bit on (10000000), the answer is 2^1 = 2. Only looking at the fourth octet in class C, but last 2 in Class b, last 3 a???
How many hosts per subnet? We have 7 host bits off (10000000), so the equation is 2^7 – 2 = 126 hosts.
What are the valid subnets? 256 – 128 = 128. Remember, we’ll start at zero and count in our block size, so our subnets are 0, 128.
What’s the broadcast address for each subnet? The number right before the value of the next subnet is all host bits turned on and equals the broadcast address. For the 0 subnet, the next subnet is 128, so the broadcast of the 0 subnet is 127.
What are the valid hosts? These are the numbers between the subnet and broadcast address. The easiest way to find the hosts is to write out the subnet address and the broadcast address. This way, the valid hosts are obvious. The following table shows the 0 and 128 subnets, the valid host ranges of each, and the broadcast address of both subnets:
Subnet 0 128
First host 1 129
Last host 126 254
Broadcast 127 255
Should We Really Use This Mask That Provides Only Two Hosts?
Imagine you are the network administrator for Acme Corporation in San Francisco, with dozens of WAN links connecting to your corporate office. Right now your network is a classful network, which means that the same subnet mask is on each host and router
interface. You’ve read about classless routing where you can have different size masks, but you don’t know what to use on your point-to-point WAN links. Is 255.255.255.252 (/30) a helpful mask in this situation?
Yes, this is a very helpful mask in wide area networks.
If you use the 255.255.255.0 mask, then each network will have 254 hosts, but you only use 2 addresses with a WAN link! That is a waste of 252 hosts per subnet. If you use the 255.255.255.252 mask, then each subnet has only 2 hosts, and you don’t waste precious
addresses.
Write the subnet, broadcast address, and valid host range 192.168.100.25/30
192.168.100.25/30. A /30 is 255.255.255.252. The valid subnet is 192.168.100.24, broadcast is 192.168.100.27, and valid hosts are 192.168.100.25 and 26.
Write the subnet, broadcast address, and valid host range 192.168.100.37/28
192.168.100.37/28. A /28 is 255.255.255.240. The fourth octet is a block size of 16. Just count by 16s until you pass 37. 0, 16, 32, 48. The host is in the 32 subnet, with a broadcast address of 47. Valid hosts are 33–46.
Write the subnet, broadcast address, and valid host range 192.168.100.66/27
192.168.100.66/27. A /27 is 255.255.255.224. The fourth octet is a block size of 32. Count by 32s until you pass the host address of 66. 0, 32, 64. The host is in the 32 subnet, broadcast address of 63. The valid host range is 33–62.
Write the subnet, broadcast address, and valid host range 192.168.100.17/29
192.168.100.17/29. A /29 is 255.255.255.248. The fourth octet is a block size of 8. 0, 8, 16, 24. The host is in the 16 subnet, broadcast of 23. Valid hosts are 17–22.
Write the subnet, broadcast address, and valid host range 192.168.100.99/26
192.168.100.99/26. A /26 is 255.255.255.192. The fourth octet has a block size of 64. 0, 64, 128. The host is in the 64 subnet, broadcast of 127. Valid hosts are 65–126.
Write the subnet, broadcast address, and valid host range 192.168.100.99/25
192.168.100.99/25. A /25 is 255.255.255.128. The fourth octet is a block size of 128. 0, 128. The host is in the 0 subnet, broadcast of 127. Valid hosts are 1–126.
You have a Class B network and need 29 subnets. What is your mask?
A default Class B is 255.255.0.0. A Class B 255.255.255.0 mask is 256 subnets, each with 254 hosts. We need fewer subnets. If we use 255.255.240.0, this provides 16 subnets. Let’s add one more subnet bit. 255.255.248.0. This is 5 bits of subnetting, which provides 32 subnets. This is our best answer, a /21.
What is the broadcast address of 192.168.192.10/29?
A /29 is 255.255.255.248. This is a block size of 8 in the fourth octet. 0, 8, 16. The host is in the 8 subnet, and broadcast is 15.
How many hosts are available with a Class C /29 mask?
A /29 is 255.255.255.248, which is 5 subnet bits and 3 host bits. This is only 6 hosts per subnet.
What is the subnet for host ID 172.16.3.65/23?
A /23 is 255.255.254.0. The third octet is a block size of 2. 0, 2, 4. The subnet is in the 16.2.0 subnet; the broadcast address is 16.3.255.
What is the maximum number of IP addresses that can be assigned to hosts on a local subnet that uses the 255.255.255.224 subnet mask? A. 14 B. 15 C. 16 D. 30 E. 31 F. 62
D. A /27 (255.255.255.224) is 3 bits on and 5 bits off. This provides 8 subnets, each with
30 hosts. Does it matter if this mask is used with a Class A, B, or C network address? Not
at all. The number of host bits would never change.
You have a class A host of 10.0.0.110/25. It needs to communicate to a host with an
IP address of 10.0.0.210/25. Which of the following devices do you need to use in order
for these hosts to communicate?
A. A layer 2 switch
B. Router
C. DNS server
D. Hub
B. Don’t freak because this is a class A. What is your subnet mask? 255.255.255.128. Regardless of the class of address, this is a block size of 128 in the fourth octet. The subnets are 0 and 128. The 0 subnet host range is 1-126, with a broadcast address of 127. The 128 subnet host range is 129-254, with a broadcast address of 255. You need a router for these two hosts to communicate because they are in differenet subnets.
What is the subnetwork address for a host with the IP address 200.10.5.68/28? A. 200.10.5.56 B. 200.10.5.32 C. 200.10.5.64 D. 200.10.5.0
C. This is a pretty simple question. A /28 is 255.255.255.240, which means that our block
size is 16 in the fourth octet. 0, 16, 32, 48, 64, 80, and so on. The host is in the 64 subnet.