LPIC 2 Network Configuration and Troubleshooting Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 14 | Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What is the primary purpose of the /etc/resolv.conf file?

Explanation

The `/etc/resolv.conf` file specifies DNS resolver settings, especially the nameserver addresses the system should query to translate domain names into IP addresses.

Submit
Please wait...
About This Quiz
LPIC 2 Network Configuration and Troubleshooting Quiz - Quiz

This quiz assesses your knowledge of advanced network configuration and troubleshooting on Linux systems. You'll be tested on TCP\/IP networking, routing, DNS, DHCP, firewall management, and network diagnostics\u2014core competencies for LPIC 2 certification. Master these topics to manage complex network environments and resolve connectivity issues effectively.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. What is the purpose of the default gateway in a network configuration?

Explanation

A default gateway forwards traffic from a device to destinations outside its local network. When no specific route exists for a destination, the device sends the packet to the gateway, typically a router, which determines where to forward it next.

Submit

3. Which command tests connectivity to a remote host by sending ICMP echo requests?

Explanation

`ping` tests network reachability by sending ICMP echo request packets to a remote host and waiting for echo replies. The responses can show whether the host is reachable and provide information such as round-trip time and packet loss.

Submit

4. What is the primary function of a gateway in network configuration?

Explanation

A gateway connects a local network to other networks by forwarding packets to their destinations. Devices typically send traffic destined outside their own subnet to the gateway, which routes it onward. Assigning IP addresses, resolving domain names, and filtering malware are separate network functions.

Submit

5. Which protocol is used for secure shell remote access on port 22?

Explanation

SSH (Secure Shell) provides encrypted remote login and command execution over a network. It commonly uses port 22, protecting credentials and data from interception. Telnet, FTP, and HTTP do not provide the same secure remote-shell access by default.

Submit

6. Which configuration file is used to set up network interfaces on Debian-based systems?

Explanation

Debian-based systems traditionally configure network interfaces in `/etc/network/interfaces` using the ifupdown tools. Some newer systems, especially Ubuntu releases, use Netplan, with configuration files under `/etc/netplan`. The applicable file depends on the distribution and networking stack installed.

Submit

7. What is the purpose of iptables in network configuration?

Explanation

iptables is a Linux firewall utility that controls how network packets are handled. It lets administrators create rules to allow, block, or filter traffic based on criteria such as source or destination addresses, ports, and protocols. It does not configure IP addresses, resolve DNS, or assign DHCP leases.

Submit

8. Which command shows active network connections and their states?

Explanation

Both `netstat` and `ss` display network socket information, including active connections, local and remote addresses, ports, and connection states such as `ESTABLISHED` or `LISTEN`. `ping` tests reachability, `traceroute` shows the route to a host, and `ifconfig` displays network interface details.

Submit

9. What is the purpose of ARP (Address Resolution Protocol)?

Explanation

ARP identifies the MAC address associated with a device’s IP address on a local network. This lets devices deliver Ethernet frames to the correct destination. It does not resolve domain names, establish TCP connections, or manage DHCP leases.

Submit

10. Which command adds a static route to the routing table on modern Linux systems?

Explanation

`ip route add` is the modern Linux `iproute2` command for adding a static route. For example, `ip route add 192.168.2.0/24 via 192.168.1.1` routes traffic for that network through the specified gateway.

Submit

11. What does netstat -tlnp display?

Explanation

`netstat -tlnp` lists TCP sockets that are listening. The `-t` flag selects TCP, `-l` shows listening sockets, `-n` displays addresses and ports numerically, and `-p` includes the process ID and program name associated with each socket, when permissions allow.

Submit

12. What does the subnet mask 255.255.255.0 represent in CIDR notation?

Explanation

The subnet mask 255.255.255.0 contains 24 consecutive 1 bits, followed by 8 zero bits. CIDR notation records the number of leading 1 bits, so this mask is written as /24.

Submit

13. Which tool is used to trace the path packets take to a destination host?

Explanation

Traceroute (called `tracert` on Windows) shows the sequence of routers, or hops, that packets pass through on their way to a destination host.

Submit

14. What is the default port number for DNS queries?

Explanation

DNS queries use port 53 by default. Most standard lookups use UDP on port 53 for speed, while TCP port 53 is used when responses are large or for operations such as zone transfers. Ports 80, 443, and 25 are associated with HTTP, HTTPS, and SMTP, respectively.

Submit

15. What does the ip command with the 'link' option allow you to do?

Explanation

The `ip link` option is used to inspect and manage network interfaces at the link layer. It lets you view interface details and change properties such as whether an interface is enabled, its MTU, or its hardware address. Routing tables, DNS settings, and DHCP status are handled by other commands or tools.

Submit

16. Which file contains static hostname-to-IP mappings on Linux?

Explanation

/etc/hosts stores locally defined hostname-to-IP address mappings that the system can consult before using DNS. By contrast, /etc/hostname typically identifies the machine’s own hostname, /etc/resolv.conf configures DNS resolver settings, and /etc/network/interfaces contains network interface configuration.

Submit

17. Which protocol is used by DHCP servers to assign IP addresses dynamically?

Explanation

DHCP uses UDP for communication between clients and servers. Servers listen on port 67, while clients use port 68 to request and receive IP address assignments and other network configuration details.

Submit

18. Which command displays network interface information including IP and MAC addresses?

Explanation

`ifconfig` and `ip addr show` display details about network interfaces, including their IP addresses and MAC addresses. `netstat`, `route`, and `arp -a` focus on network connections, routing tables, and ARP entries, respectively.

Submit

19. What is the default metric value used in route calculations?

Explanation

A route metric represents the cost or preference of a route and helps determine which path is selected when multiple routes are available. When no metric is explicitly specified, the default value used in these route calculations is 1. Lower metric values generally indicate more preferred routes.

Submit

20. Which command displays the current routing table on a Linux system?

Explanation

Each listed command can display the system’s routing table. `route -n` shows routes using numeric addresses, `netstat -r` displays routing information, and `ip route show` provides the modern iproute2 method. Availability may vary on newer Linux installations, where `ip route show` is generally preferred.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What is the primary purpose of the /etc/resolv.conf file?
What is the purpose of the default gateway in a network configuration?
Which command tests connectivity to a remote host by sending ICMP echo...
What is the primary function of a gateway in network configuration?
Which protocol is used for secure shell remote access on port 22?
Which configuration file is used to set up network interfaces on...
What is the purpose of iptables in network configuration?
Which command shows active network connections and their states?
What is the purpose of ARP (Address Resolution Protocol)?
Which command adds a static route to the routing table on modern Linux...
What does netstat -tlnp display?
What does the subnet mask 255.255.255.0 represent in CIDR notation?
Which tool is used to trace the path packets take to a destination...
What is the default port number for DNS queries?
What does the ip command with the 'link' option allow you to do?
Which file contains static hostname-to-IP mappings on Linux?
Which protocol is used by DHCP servers to assign IP addresses...
Which command displays network interface information including IP and...
What is the default metric value used in route calculations?
Which command displays the current routing table on a Linux system?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!