100-140 Question 236
Select 2You are troubleshooting a network connectivity issue on a Linux server. You suspect that there might be an IP conflict or misconfiguration. Which of the following commands would you use to verify the server's current IP address and check for active network connections?
- A
ip addr
- B
ss -tuln
- C
ping 8.8.8.8
- D
ip route
- E
traceroute google.com
Show answer and explanation
Correct answers: A, B
Explanation
When troubleshooting network issues, the 'ip addr' command is used to verify the server's current IP address and network interface configurations, while the 'ss -tuln' command provides visibility into active network connections and listening ports. These commands together help diagnose issues such as IP conflicts or misconfigurations.
- A. Correct.
The 'ip addr' command displays the current IP addresses assigned to the server's network interfaces, which is essential for verifying IP configuration or conflicts.
- B. Correct.
The 'ss -tuln' command shows active listening sockets and network connections, which can help identify if the server is actively communicating or has open ports.
- C. Incorrect.
The 'ping' command tests connectivity to a specific host but does not provide details about the server's IP configuration or active connections.
- D. Incorrect.
The 'ip route' command displays the routing table but does not directly show the server's IP addresses or active connections.
- E. Incorrect.
The 'traceroute' command maps the path packets take to a specific host but is not used to view local IP configurations or active connections.