Troubleshooting

A technician needs to view the IP addresses assigned to a Linux server's interfaces. Which command should the technician use?

Show the answer

Correct answerA. ip addr show

AWhy this is right: Displays the IP addresses assigned to the server's network interfaces.

BWhy not this: Queries DNS for localhost rather than inspecting interface configuration.

CWhy not this: Displays the routing table rather than assigned interface addresses.

DWhy not this: Displays routing entries rather than the interface address inventory.

ip addr show displays interface addresses, including IPv4 and IPv6 assignments. ip route show displays routing information rather than the interface address inventory.