100-140 Question 235
Single answerA user reports that their Linux server cannot access the internet after a recent network configuration change. As a support technician, you decide to troubleshoot the issue using Iproute2 tools. Which command would you use to verify the server's current IP address configuration and active network interfaces?
- A
ip add
- B
ss -tuln
- C
ip route show
- D
ping 8.8.8.8
Show answer and explanation
Correct answer: A
Explanation
To troubleshoot a connectivity issue, it is crucial to first verify the server's IP address configuration and active network interfaces. The 'ip add' command (part of the Iproute2 suite) provides detailed information about the server's IP addresses and interfaces, making it the correct tool for this scenario.
- A. Correct.
The 'ip add' (or 'ip addr') command displays the server's current IP address configuration and active network interfaces, which is essential for troubleshooting connectivity issues.
- B. Incorrect.
The 'ss -tuln' command displays active network connections (listening sockets) but does not provide information about IP addresses or interface configurations.
- C. Incorrect.
The 'ip route show' command displays the routing table, which is useful for verifying routes but does not directly show IP address or interface details.
- D. Incorrect.
The 'ping 8.8.8.8' command is used to test connectivity to an external host but does not provide information about the server's IP address configuration or network interfaces.