10 free LPI LPIC-1 102-500 practice questions with the correct answer and a full explanation for each, taken from the CertStash pack of 120 questions. Work through them, then open each answer to check your reasoning.
Get all 120 questions (US$39) · Download these 10 as a PDF
Question 1
Which of the following is a valid IPv6 address?
Show answer and explanation
Correct answer: C. 2001:db8:3241::1
2001:db8:3241::1 is a valid IPv6 address using proper hexadecimal notation (0-9, a-f) and the :: compression for consecutive zero groups. Option A contains 'g' which is not a valid hexadecimal character. Option B uses :: twice which violates IPv6 compression rules. Option D uses % delimiters instead of colons. Option E uses dots and contains consecutive dots instead of proper IPv6 notation.
Why the other options are wrong
- A. Contains the character 'g' which is not valid in hexadecimal notation.
- B. Uses the :: compression twice, which is not permitted in IPv6 addresses.
- D. Uses percent signs (%) instead of colons as separators.
- E. Uses dots instead of colons and has malformed consecutive dots.
Question 2
Which if the following tools, used for DNS debugging, reports not only the response from the name sever but also details about the query?
Show answer and explanation

Question 3
Which of the following statements is valid in the file /etc/nsswitch.conf?
Show answer and explanation
Correct answer: E. hosts: files dns
The line 'hosts: files dns' is a valid nsswitch.conf statement that specifies the order in which name resolution sources are consulted for hostname lookups (first files, then DNS). Option A uses invalid syntax. Option B mixes IP addresses with DNS configuration incorrectly. Option C uses invalid namespace declaration. Option D attempts to include a directory which is not a valid nsswitch.conf feature.
Why the other options are wrong
- A. "multi on" is not valid syntax in nsswitch.conf.
- B. IP addresses cannot be specified this way in nsswitch.conf for DNS servers.
- C. The "namespaces:" statement with this syntax is not valid in nsswitch.conf.
- D. nsswitch.conf does not support directory inclusion via the include directive.
Question 4
Which of the following connection types, as seen in nmcli connection show, may exist in NetworkManager? (Choose three.)
Show answer and explanation
Correct answer: B, C, E
B. ethernet C. wifi E. bridge NetworkManager supports ethernet (wired connections), wifi (wireless connections), and bridge (virtual bridge connections) as connection types. These are all recognized connection types visible in nmcli connection show output. tcp is a transport protocol rather than a connection type in NetworkManager. ipv6 is an IP protocol version, not a connection type.
Why the other options are wrong
- A. TCP is a transport layer protocol, not a NetworkManager connection type.
- D. IPv6 is a protocol version, not a NetworkManager connection type in the sense of connection media.
Question 5
On a Linux workstation, the route command takes a long time before printing out the routing table.
Which of the following errors does that indicate?
Show answer and explanation
Correct answer: E. DNS resolution may not be working as route by default tries to resolve names of routers and destinations and may run into a timeout.
The route command displays a delay when DNS resolution is not working properly because it attempts to resolve hostnames of routers and destinations by default, causing timeouts when DNS queries fail. The other options describe non-existent mechanisms or incorrect troubleshooting approaches for this symptom.
Why the other options are wrong
- A. Automatic route re-validation is not a standard Linux feature that would cause this delay.
- B. ARFD (Automatic Router Failure Detection) is not a standard Linux kernel mechanism.
- C. Default router election is not an automatic workstation-level feature in this manner.
- D. The Linux Kernel Routing Daemon (LKRD) is not a real daemon; delay is not caused by missing routing daemons.
Question 6
What is true about the Hop Limit field in the IPv6 header?
Show answer and explanation
Correct answer: D. Each router forwarding the packet decreases the field's value.
The Hop Limit field in the IPv6 header is decremented by one at each router that forwards the packet, similar to the TTL field in IPv4. This prevents packets from circulating indefinitely in the network. The field is a regular part of the main IPv6 header, not an extension header, and is changed during transport.
Why the other options are wrong
- A. The Hop Limit field is actively modified (decremented) during packet transport.
- B. The Hop Limit is part of the main IPv6 header, not a hop-by-hop extension header.
- C. Each router decreases the field, not increases it.
- E. Multicast packets do not have special Hop Limit restrictions; the field can have various values.
Question 7
Which of the following nmcli subcommands exist? (Choose two.)
Show answer and explanation
Correct answer: B, E
B. nmcli device E. nmcli connection nmcli device and nmcli connection are valid subcommands in NetworkManager's command-line interface. device manages network devices while connection manages connection profiles. ethernet, wifi, and address are not primary nmcli subcommands at the top level.
Why the other options are wrong
- A. nmcli ethernet is not a valid subcommand; device is used to manage ethernet interfaces.
- C. nmcli wifi is not a valid subcommand; device is used to manage wifi connections.
- D. nmcli address is not a valid subcommand for managing IP addresses.
Question 8
Which of the following changes may occur as a consequence of using the command ip? (Choose three.)
Show answer and explanation
Correct answer: A, D, E
A. Network interfaces may become active or inactive. D. IP addresses may change. E. The routing table may change. The ip command can activate or deactivate network interfaces, modify IP addresses, and change the routing table. These are its primary use cases for dynamic network configuration. The ip command does not modify the resolver configuration (nameservers in resolv.conf) or change the system hostname; these require other tools.
Why the other options are wrong
- B. The ip command does not modify resolver configuration or add nameservers to /etc/resolv.conf.
- C. The ip command cannot change the system hostname; the hostname command or hostnamectl is used for that.
Question 9
How many IP addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/26?
Show answer and explanation
Correct answer: D. 62
A /26 subnet has 26 bits for the network and 32-26=6 bits for hosts. With 6 host bits, there are 2^6=64 total addresses. Subtracting 2 addresses (network and broadcast), 64-2=62 usable host addresses remain.
Why the other options are wrong
- A. 6 is the number of host bits, not usable addresses.
- B. 14 would result from a /28 subnet, not /26.
- C. 30 is the usable count for a /27 subnet.
- E. 126 is the usable count for a /25 subnet.
Question 10
Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose three.)
Show answer and explanation
Correct answer: A, D, E
A. 10.0.0.0/8 D. 172.16.0.0/12 E. 192.168.0.0/16 IANA reserves three ranges for private use: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 as defined in RFC 1918. These are used for internal networks that do not route on the public Internet.
Why the other options are wrong
- B. 127.0.0.0/8 is the loopback range, not a private address range for general use.
- C. 169.255.0.0/16 is not a valid IANA-reserved private range; 169.254.0.0/16 is lin-ocal.
That was 10 of 120.
The full LPI LPIC-1 102-500 pack has all 120 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. US$39, paid once, with free monthly updates and a pass-or-your-money-back guarantee.
