CompTIA Linux+ (XK0-005) — Question 30
A systems administrator was tasked with assigning the temporary IP address/netmask 192.168.168.1/255.255.255.255 to the interface eth0 of a Linux server.
When adding the address, the following error appears:
# ip address add 192.168.168.1/33 dev eth0
Error: any valid prefix is expected rather than "192.168.168.1/33".
Based on the command and its output above, which of the following is the cause of the issue?
Answer options
- A. The CIDR value /33 should be /32 instead.
- B. There is no route to 192.168.168.1/33.
- C. The interface eth0 does not exist.
- D. The IP address 192.168.168.1 is already in use.
Correct answer: A
Explanation
The correct answer is A because a CIDR notation of /33 is invalid for IPv4 addresses; it should be /32 for a single host. Options B, C, and D are incorrect as they do not address the issue of the invalid CIDR value specified in the command.