ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 128 - XK0-005 discussion

Report
Export

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?

A.
The CIDR value /33 should be /32 instead.
Answers
A.
The CIDR value /33 should be /32 instead.
B.
There is no route to 192.168.168.1/33.
Answers
B.
There is no route to 192.168.168.1/33.
C.
The interface eth0 does not exist.
Answers
C.
The interface eth0 does not exist.
D.
The IP address 192.168.168.1 is already in use.
Answers
D.
The IP address 192.168.168.1 is already in use.
Suggested answer: A

Explanation:

The cause of the issue is that the CIDR value /33 is invalid for an IPv4 address. The CIDR value represents the number of bits in the network prefix of an IP address, and it can range from 0 to 32 for IPv4 addresses. A CIDR value of /33 would imply a network prefix of more than 32 bits, which is impossible for an IPv4 address. To assign a temporary IP address/netmask of 192.168.168.1/255.255.255.255 to eth0, the CIDR value should be /32 instead, which means a network prefix of 32 bits and a host prefix of 0 bits. There is no route to 192.168.168.1/33 is not the cause of the issue, as the ip address add command does not check the routing table. The interface eth0 does not exist is not the cause of the issue, as the ip address add command would display a different error message if the interface does not exist. The IP address 192.168.168.1 is already in use is not the cause of the issue, as the ip address add command would display a different error message if the IP address is already in use. Reference: [CompTIA Linux+ (XK0-005) Certification Study Guide], Chapter 13: Networking Fundamentals, page 435.

asked 02/10/2024
Martin Lundgren
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first