Network+ IP Addressing and Subnetting Flashcards
6 cards from real COMPTIA practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 Network+ IP Addressing and Subnetting flashcards as text
A network technician is configuring a workstation and observes its IP address is 169.254.100.51. The user reports they cannot access the internet or the company's file server. What is the MOST likely cause of this issue?
Answer: The workstation failed to obtain an IP address from the DHCP server.
The IP address 169.254.100.51 is an Automatic Private IP Addressing (APIPA) address. Operating systems assign APIPA addresses when a device is configured for DHCP but cannot contact a DHCP server. This allows for communication on the local subnet but not for routed traffic to other networks or the internet.
A network administrator needs to create a subnet that can support up to 25 usable host addresses. Which of the following CIDR notations provides the required number of hosts while minimizing wasted IP addresses?
Answer: /27
To find the number of usable hosts, use the formula 2^h - 2, where 'h' is the number of host bits. A /27 prefix leaves 5 host bits (32 - 27 = 5). Calculating 2^5 - 2 gives 30 usable hosts. A /28 (14 hosts) is too small, and a /26 (62 hosts) wastes more addresses.
Which of the following IP addresses is a non-routable, private address according to RFC 1918?
Answer: 192.168.20.1
RFC 1918 defines specific ranges for private IP addressing. The range 192.168.0.0 to 192.168.255.255 is one of these private ranges. The 172.16.0.0/12 range is also private, but 172.32.x.x falls outside of it. The 11.x.x.x address is public, and 169.254.x.x is reserved for APIPA.
A network administrator is given the IP address 192.168.50.133 and the subnet mask 255.255.255.240. What is the subnet address for this host?
Answer: 192.168.50.128
The subnet mask 255.255.255.240 (/28) creates subnets in increments of 16 in the fourth octet (256-240=16). The subnets are .0, .16, .32, etc. The address 192.168.50.133 falls into the subnet that starts at 192.168.50.128 and ends with the broadcast address 192.168.50.143.
A subnet mask of 255.255.252.0 is equivalent to which CIDR prefix notation?
Answer: /22
CIDR notation represents the number of leading '1's in the subnet mask's binary representation. 255.255.252.0 in binary is 11111111.11111111.11111100.00000000. Counting the number of '1's gives a total of 8 + 8 + 6 = 22. Therefore, the CIDR notation is /22.
A company is using the network address 10.10.0.0/22. How many total IP addresses are available within this network range?
Answer: 1024
A /22 CIDR prefix means that 22 bits are used for the network portion, leaving 10 bits for the host portion (32 - 22 = 10). The total number of addresses in a subnet is calculated as 2^h, where 'h' is the number of host bits. Therefore, 2^10 equals 1024 total addresses.