LPI 102-500 Practice Test 54
Question 530
A team maintaining a Linux host reports: A migration from an old ifup/down setup creates new .network files, but active management remains with another service and those files are ignored. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.
- Identify the active network configuration manager and express persistent settings in its supported profiles or .network files without competing managers.
- Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation.
- Inspect `systemctl` service state, NetworkManager device management, /etc/systemd/network and active connection profiles alongside `ip` state.
- Choose TCP when reliable ordered byte streams are needed, UDP for connectionless datagrams with application-level reliability as required, and ICMP for appropriate network control and diagnostics.
- Assume any file under /etc/systemd/network will control an interface regardless of which network manager actually owns the device.
Explanation
Correct Answers
A:Recommended administrative action: Identify the active network configuration manager and express persistent settings in its supported profiles or .network files without competing managers. network files, but active management remains with another service and those files are ignored. Linux principle: Different Linux networking managers apply persistent interface settings through their own configurations; conflicting ownership can cause changes to be ignored or overwritten.
C:Most direct verification evidence: Inspect `systemctl` service state, NetworkManager device management, /etc/systemd/network and active connection profiles alongside `ip` state. network files, but active management remains with another service and those files are ignored. Linux principle: Different Linux networking managers apply persistent interface settings through their own configurations; conflicting ownership can cause changes to be ignored or overwritten.
Incorrect Answers
B:That option would inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation, but it addresses a different concern. Different Linux networking managers apply persistent interface settings through their own configurations; conflicting ownership can cause changes to be ignored or overwritten.
D:This alternative addresses TCP versus UDP versus ICMP diagnostics, not the specific issue of NetworkManager and systemd-networkd configuration ownership: Choose TCP when reliable ordered byte streams are needed, UDP for connectionless datagrams with application-level reliability as required, and ICMP for appropriate network control and diagnostics. network files, but active management remains with another service and those files are ignored.
E:This shortcut is unsafe for the present Linux issue: Assume any file under /etc/systemd/network will control an interface regardless of which network manager actually owns the device. network files, but active management remains with another service and those files are ignored. Different Linux networking managers apply persistent interface settings through their own configurations; conflicting ownership can cause changes to be ignored or overwritten.
Question 531
While verifying a Linux change request, an engineer finds: A server cannot communicate because its Ethernet link is administratively down, but staff repeatedly changes DNS records without examining link state. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.
- Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager.
- Choose TCP when reliable ordered byte streams are needed, UDP for connectionless datagrams with application-level reliability as required, and ICMP for appropriate network control and diagnostics.
- Calculate network and host ranges from the prefix length and configure correct address, subnet prefix and route or gateway for remote destinations.
- Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required.
Explanation
Correct Answer
D:Recommended administrative action: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required.
Incorrect Answers
A:This shortcut is unsafe for the present Linux issue: Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager. The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
B:This alternative addresses TCP versus UDP versus ICMP diagnostics, not the specific issue of Ip command address and link troubleshooting: Choose TCP when reliable ordered byte streams are needed, UDP for connectionless datagrams with application-level reliability as required, and ICMP for appropriate network control and diagnostics. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
C:This alternative addresses IPv4 CIDR network masks and subnet reachability, not the specific issue of Ip command address and link troubleshooting: Calculate network and host ranges from the prefix length and configure correct address, subnet prefix and route or gateway for remote destinations. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
Question 532
A Linux administrator investigates the following system incident: A server cannot communicate because its Ethernet link is administratively down, but staff repeatedly changes DNS records without examining link state. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.
- Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration.
- RFC1918 private IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16; not every 172.x or 192.x address is private.
- Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager.
- The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
Explanation
Correct Answer
D:Relevant Linux operating principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
Incorrect Answers
A:This alternative addresses Local hosts resolution versus DNS settings, not the specific issue of Ip command address and link troubleshooting: Name Service Switch controls whether hosts files and DNS are queried and in what order, while resolv.conf primarily identifies recursive resolver configuration. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
B:This alternative addresses RFC1918 private addressing and internet routing, not the specific issue of Ip command address and link troubleshooting: RFC1918 private IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16; not every 172.x or 192.x address is private. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
C:This shortcut is unsafe for the present Linux issue: Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager. The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
Question 533
On a production Linux workstation or server, a technician observes: A server cannot communicate because its Ethernet link is administratively down, but staff repeatedly changes DNS records without examining link state. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.
- Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation.
- Check `ip -4 addr`, compute bitwise network address and broadcast boundary, and inspect `ip route get` for representative peers.
- Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager.
- Inspect `hostnamectl status`, /etc/hostname, /etc/hosts and `getent hosts` output before and after reboot.
Explanation
Correct Answer
A:Most direct verification evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation.
Incorrect Answers
B:That option would check `ip -4 addr`, compute bitwise network address and broadcast boundary, and inspect `ip route get` for representative peers, but it addresses a different concern. The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
C:This shortcut is unsafe for the present Linux issue: Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager. It cannot establish a safe correction. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
D:This alternative addresses Hostnamectl and durable host identification, not the specific issue of Ip command address and link troubleshooting: Inspect `hostnamectl status`, /etc/hostname, /etc/hosts and `getent hosts` output before and after reboot.
Question 534
During an LPIC-1 practice lab, the operator encounters this condition: A server cannot communicate because its Ethernet link is administratively down, but staff repeatedly changes DNS records without examining link state. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.
- The device associates to the approved wireless network, authenticates successfully and receives the expected network configuration.
- Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager.
- The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
- Remote traffic takes the intended next hop while on-link paths remain correct and route behavior persists as configured.
Explanation
Correct Answer
C:Observable acceptance criterion: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
Incorrect Answers
A:This alternative addresses NetworkManager Wi-Fi authentication and saved profiles, not the specific issue of Ip command address and link troubleshooting: The device associates to the approved wireless network, authenticates successfully and receives the expected network configuration. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
B:This shortcut is unsafe for the present Linux issue: Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager. It cannot establish a safe correction. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
D:This alternative addresses Linux routing tables and default gateway selection, not the specific issue of Ip command address and link troubleshooting: Remote traffic takes the intended next hop while on-link paths remain correct and route behavior persists as configured. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
Question 535
A helpdesk escalation describes this Linux behavior: A server cannot communicate because its Ethernet link is administratively down, but staff repeatedly changes DNS records without examining link state. Which misleading assumption MOST directly contributes to this failure and should be rejected? Select ONE best answer.
- Claim every 172.x.x.x address is private and that any RFC1918 host can route directly across the public internet with no translation.
- Assume all DNS queries always use TCP and that knowing port 53 alone identifies the transport without checking protocol.
- Assume the command `hostname newname` persistently changes every host identification file and DNS record automatically.
- Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager.
Explanation
Correct Answer
D:Reject this specific misconception: Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager. It incorrectly assumes behavior that conflicts with the observed Linux conditions.
Incorrect Answers
A:This alternative addresses RFC1918 private addressing and internet routing, not the specific issue of Ip command address and link troubleshooting: Claim every 172.x.x.x address is private and that any RFC1918 host can route directly across the public internet with no translation. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
B:That option would assume all DNS queries always use TCP and that knowing port 53 alone identifies the transport without checking protocol, but it addresses a different concern. The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
C:This alternative addresses Hostnamectl and durable host identification, not the specific issue of Ip command address and link troubleshooting: Assume the command `hostname newname` persistently changes every host identification file and DNS record automatically.
Question 536
An operations handoff identifies this problem: An administrator removes an address with `ip addr` and expects it to remain removed after a network-manager restart. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.
- Choose TCP when reliable ordered byte streams are needed, UDP for connectionless datagrams with application-level reliability as required, and ICMP for appropriate network control and diagnostics.
- Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required.
- Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager.
- Configure and interpret IPv6 addresses and prefix lengths correctly and supply a scope interface for link-local communication when needed.
Explanation
Correct Answer
B:Recommended administrative action: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required.
Incorrect Answers
A:This alternative addresses TCP versus UDP versus ICMP diagnostics, not the specific issue of Ip command address and link troubleshooting: Choose TCP when reliable ordered byte streams are needed, UDP for connectionless datagrams with application-level reliability as required, and ICMP for appropriate network control and diagnostics. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
C:This shortcut is unsafe for the present Linux issue: Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager. The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
D:That option would configure and interpret IPv6 addresses and prefix lengths correctly and supply a scope interface for link-local communication when needed, but it addresses a different concern. The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
Question 537
A team maintaining a Linux host reports: An administrator removes an address with `ip addr` and expects it to remain removed after a network-manager restart. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.
- Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager.
- The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
- `ip` changes running kernel networking state, while NetworkManager connection profiles define persistent settings managed across restarts.
- Port numbers identify transport endpoints within TCP or UDP; the same numeric port can be used differently across protocols and policy must match actual service bindings.
Explanation
Correct Answer
B:Relevant Linux operating principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
Incorrect Answers
A:This shortcut is unsafe for the present Linux issue: Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager. It cannot establish a safe correction. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
C:This alternative addresses NetworkManager persistent wired connection profiles, not the specific issue of Ip command address and link troubleshooting: `ip` changes running kernel networking state, while NetworkManager connection profiles define persistent settings managed across restarts. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
D:This alternative addresses Well-known TCP UDP port mapping, not the specific issue of Ip command address and link troubleshooting: Port numbers identify transport endpoints within TCP or UDP; the same numeric port can be used differently across protocols and policy must match actual service bindings. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
Question 538
While verifying a Linux change request, an engineer finds: An administrator removes an address with `ip addr` and expects it to remain removed after a network-manager restart. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.
- Inspect available SSIDs, connection authentication settings, device state, connection activation logs and effective routes.
- Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation.
- Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager.
- Inspect `hostnamectl status`, /etc/hostname, /etc/hosts and `getent hosts` output before and after reboot.
Explanation
Correct Answer
B:Most direct verification evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation.
Incorrect Answers
A:This alternative addresses NetworkManager Wi-Fi authentication and saved profiles, not the specific issue of Ip command address and link troubleshooting: Inspect available SSIDs, connection authentication settings, device state, connection activation logs and effective routes.
C:This shortcut is unsafe for the present Linux issue: Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager. It cannot establish a safe correction. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
D:This alternative addresses Hostnamectl and durable host identification, not the specific issue of Ip command address and link troubleshooting: Inspect `hostnamectl status`, /etc/hostname, /etc/hosts and `getent hosts` output before and after reboot.
Question 539
A Linux administrator investigates the following system incident: An administrator removes an address with `ip addr` and expects it to remain removed after a network-manager restart. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.
- The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
- Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager.
- Hosts are classified as private or globally addressed correctly and required outbound communication uses approved routing or NAT.
- On-link hosts are identified correctly and off-link traffic follows the planned gateway without spurious local ARP attempts.
Explanation
Correct Answer
A:Observable acceptance criterion: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
Incorrect Answers
B:This shortcut is unsafe for the present Linux issue: Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager. The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
C:This alternative addresses RFC1918 private addressing and internet routing, not the specific issue of Ip command address and link troubleshooting: Hosts are classified as private or globally addressed correctly and required outbound communication uses approved routing or NAT. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
D:This alternative addresses IPv4 CIDR network masks and subnet reachability, not the specific issue of Ip command address and link troubleshooting: On-link hosts are identified correctly and off-link traffic follows the planned gateway without spurious local ARP attempts. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service. Appropriate response: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Root-cause evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Independent acceptance: The intended link is administratively up with the expected address and persistent configuration remains stable after service restart.
Question 540
On a production Linux workstation or server, a technician observes: An administrator removes an address with `ip addr` and expects it to remain removed after a network-manager restart. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.
- Identify RFC1918 blocks precisely and plan appropriate routing or address translation for connectivity to public destinations.
- Inspect `hostnamectl status`, /etc/hostname, /etc/hosts and `getent hosts` output before and after reboot.
- Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation.
- Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager.
- Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required.
Explanation
Correct Answers
C:Most direct verification evidence: Inspect `ip -br link`, `ip address show`, carrier state and manager logs before and after a controlled interface activation. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
E:Recommended administrative action: Use `ip link` and `ip addr` to examine and adjust temporary interface state and repair the persistent manager configuration where required. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
Incorrect Answers
A:That option would identify RFC1918 blocks precisely and plan appropriate routing or address translation for connectivity to public destinations, but it addresses a different concern. The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
B:This alternative addresses Hostnamectl and durable host identification, not the specific issue of Ip command address and link troubleshooting: Inspect `hostnamectl status`, /etc/hostname, /etc/hosts and `getent hosts` output before and after reboot. Linux principle: The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.
D:This shortcut is unsafe for the present Linux issue: Attempt DNS repairs for an interface that is administratively DOWN and assume temporary `ip` state cannot be overwritten by NetworkManager. The iproute2 command changes and reports kernel interface state, while durable settings are managed by the host's networking service.