8. IP Subnetting, Troubleshooting IP, and Introduction to NAT Flashcards

1
Q
  1. 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
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. 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
A

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 different subnets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. 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
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. The network address of 172.16.0.0/19 provides how many subnets and hosts?
    a. 7 subnets, 30 hosts each
    b. 7 subnets, 2046 hosts each
    c. 7 subnets, 8190 hosts each
    d. 8 subnets, 30 hosts each
    e. 8 subnets, 2046 hosts each
    f. 8 subnets, 8190 subnets each
A

f. A CIDR address of /19 is 255.255.224.0. This is a class B address, so that is only 3 subnet bits, but it provides 13 host bits, or 8 subnets, each with 8,190 hosts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. You receive a call from a user who is complaining that they cannot get on the internet. You have them verify their IP address, mask and default gateway. The IP address is 10.0.37.144, with a subnet mask of 255.255.254.0. The default gateway is 10.0.38.1. What is the problem?
    a. Incorrect DNS server address
    b. Invalid subnet mask
    c. Incorrect gateway IP
    d. IP address and mask not compatible
A

c. The host ID of 10.0.37.144 with a 255.255.254.0 mask is in the 10.0.36.0 subnet (yes, you need to be able to subnet in this exam!). Do not stress that this is a class A; what we care about is that the third octet has a block size of 2, so the next subnet is 10.0.38.0, which makes the broadcast address 10.0.37.255. The default gateway address of 10.0.38.1 is not in the same subnet as the host. Even though this is a class A address, you still should easily be able to subnet as the host. Even though this is a class A address, you still should easily be able to subnet this because you look more at the subnet mask and find your interesting octet, which is the third octet in this question. 256 - 254 = 2. Your block size is 2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. If a host on a network has the address 172.16.45.14/30, what is the subnetwork this host belongs to?
    a. 172.16.45.0
    b. 172.16. 45.4
    c. 172.16.45.8
    d. 172.16.45.12
    e. 172.16.45.16
A

d. A /30, regardless of the class address, has a 252 in the fourth octet, This means we have a block size of 4, and our subnets are 0, 4, 8, 12, 16, and so on. Address 14 is obviously in the 12 subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. On a network, which mask should you use on point-to-point WAN links in order to reduce the waste of IP addresses?
    a. /27
    b. /28
    c. /29
    d. /30
    e. /31
A

d. A point-to-point link only uses two hosts. A /30, or 255.255.255.252, mask provides two hosts per subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. On which of the following devices are you most likely to be able to implement NAT?
    a. Hub
    b. Ethernet switch
    c. Router
    d. Bridge
A

c. Devices with layer 3 awareness, such as routers and firewalls, are the only ones that can manipulate the IP header in support of NAT.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. You have an interface on a router with the IP address of 192.168.192.10/29. Including the router interface, how many hosts can have IP addresses on the LAN attached to the router interface?
    a. 6
    b. 8
    c. 30
    d. 62
    e. 126
A

a. A /29 (255.255.255.248), regardless of the class of address, has only 3 host bits. Six hosts is the maximum number of hosts on this LAN, including the router interface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. When configuring the IP settings on a computer on one subnet to ensure that it can communicate with a computer on another subnet, which of the following is desirable?
    a. Configure the computer with the same default gateway as the other computer.
    b. Configure the computer with the same subnet mask as the other computer.
    c. Configure the computer with a default gateway that matches the IP address of the interface of the router that is attached to the same subnet as the computer.
    d. Configure the computer with a subnet mask that matches the IP address of the interface or the router that is attached to the same subnet as the computer.
A

c. A computer should be configured with an IP address that is unique throughout the reachable internetwork. It should be configured with a subnet mask that matches those of all other devices on its local subnet, but not necessarily one that matches the mask used on any other subnet. It should also be configured with a default gateway that matches its local router’s interface IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. You have an interface on a router with an IP address 0f 192.168.192.10/29. What is the broadcast address the hosts will use on this LAN?
    a. 192.168.192.15
    b. 192.168.192.31
    c. 192.168.192.63
    d. 192.168.192.127
    e. 192.168.192.255
A

a. A /29 (255.255.255.248) has a block size of 8 in the fourth octet. This means the subnets are 0, 8, 16, 24 and so on. 10 is in the 8 subnet. The next subnet is 16, so 15 is the broadcast address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. What is the highest usable address on the 172.16.1.0/24 network?
    a. 172.16.1.255
    b. 172.16.1.254
    c. 172.16.1.253
    d. 172.16.1.23
A

b. A 24-bit mask, or prefix length, indicates that the entire fourth octet is used for host identification. In a special case such as this, it is simpler to visualise the all zeros value (172.16.1.0) and the all ones value (172.16.1.255). The highest usable address, the last one before the all-ones value, is 172.16.1.254.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. A network administrator is connecting two hosts directly through their ethernet interfaces. Ping attempts between the two hosts are unsuccessful. What can be done to prove the connectivity between the hosts? (choose two)

192.168.1.20 ————192.168.1.201
(straight-through cable)
255.255.255.240 — 255.255.255.240

a. A crossover cable should be used instead of the straight-through cable.
b. A rollover cable should be used in place of the straight-through cable.
c. The subnet mask should be set to 255.255.255.192
d. The default gateway needs to be set on each host.
e. The subnet masks should be set to 255.255.255.0.

A

a, e. First, if you have two hosts directly connected, as shown in the graphic, then you need a crossover cable. A straight-through cable won’t work for the exam objectives. Second, the hosts have masks, that put them in different subnets. The easy solution is just to set both masks to 255.255.255.0 (/24)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. If an ethernet port on a router was assigned an IP address of 172.16.112.1/25, what would be the subnet of this host?
    a. 172.16.112.0
    b. 172.16.0.0
    c. 172.16.96.0
    d. 172.16.255.0
    e. 172.16.128.0
A

a. A /25 mask is 255.255.255.128. Used with a class B network, the third and fourth octets are used for subnetting with a total of 9 subnet bits: 8 bits in the third octet and 1 bit in the fourth. Because there is only one bit in the fourth octet, the bit is either off or on - which is the value 0 or 128. The host in question is in the 0 subnet, which has a broadcast address of 127 because 128 is the next subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  1. If a router interface (E0) is using the 8th subnet, what would its IP address be? The network ID is 192.168.10.0/28, and you need to use the last available IP address in the range. The 0 subnet should not be considered valid for this question.
    a. 192.168.10.142
    b. 192.168.10.66
    c. 192.168.10.254
    d. 192.168.10.143
    e. 192.168.10.126
A

a. A /28 is a 255.255.255.240 mask. Let’s count to the 9th subnet. They are 16,32, … 128, 144. The broadcast address of the eighth subnet is 143, so the host range is 129 - 142. 142 is the last valid host.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. If a router interface (E0) is using the first subnet, what would its IP address be? The network ID is 192.168.10.0/28, and you need to use the last available IP address in the range. The 0 subnet should not be considered valid for this question.
    a. 192.168.10.24
    b. 192.168.10.62
    c. 192.168.10.30
    d. 192.168.10.127
A

c. A /28 is a 255.255.255.240 mask. The first valid subnet is 16, and the next subnet is 32, so our broadcast address is 31. This makes our host range 17 - 30. 30 is the last valid host.

17
Q
  1. If you are forced to replace a router that has failed to the point that you are unable to access its current configuration to aid in setting up interface addresses on the new router, which of the following can you reference for assistance?
    a. The default gateway settings on computers from each subnet that the old router interconnected.
    b. The router’s configuration that was periodically cached in the DHCP server.
    c. The router’s configuration that was periodically cached in the DNS server.
    d. The new router will auto-configure itself with the correct settings.
A

a. The best method here is to check the configuration of devices that were using the old router as a gateway to the rest of the internetwork. Routers do not periodically cache their configuration to servers of any sort. You might have copied the old routers configuration to a TFTP server or the like, but failing that, you will have to rebuild the configuration from scratch, which might well be much more that interface addresses. Therefore keeping a copy of the router’s current configuration somewhere other than on the router itself is a wise choice. Routers don’t auto-configure themselves; we wouldn’t want them to.

18
Q
  1. You have a network address and subnet of 172.16.17.0/22. Which of the following is a valid host address?
    a. 172.16.17.1 255.255.255.252
    b. 172.16.0.1 255.255.240.0
    c. 172.16.20.1 255.255.254.0
    d. 172.16.16.1 255.255.255.240
    e. 172.16.18.255 255.255.252.0
    f. 172.16.0.1 255.255.255.0
A

e. A class B network ID with a /22 mask is 255.255.252.0, with a block size of four in the third octet. The network address in the question is in subnet 172.16.16.0 with a broadcast address of 172.16.19.255. Only option E has the correct subnet mask listed and 172.16.18.255 is a valid host

19
Q
  1. Your router has the following IP address on Ethernet0: 172.16.2.1/23. Which of the following can be valid host IDs on the LAN interface attached to the router? (Choose two)
    a. 172.16.0.5
    b. 172.16.1.100
    c. 172.16.1.198
    d. 172.16.2.255
    e. 172.16.3.0
    f. 172.16.3.255
A

d, e. The router’s IP address on the E0 interface is 172.16.2.1/23, which is a 255.255.254.0. This makes the third octet a block size of 2. The router’s interface is in the 2.0 subnet, and broadcast address is 3.255 because the next subnet is 4.0. The valid host range is 2.1 to 3.254. The router is using the first valid host address in the range.

20
Q
  1. You have one IP address provided from your ISP with a /30 mask. However, you have 300 users that need to access the internet. What technology will you use to implement a solution?
    a. PAT
    b. VPN
    c. DNS
    d. LANs
A

a. Network address translation can allow up to 65,000 hosts to get on to the Internet with one IP address by using port address translation (PAT).