Courseiva
Troubleshooting →easyMultiple Choice

XK0-006 Troubleshooting Practice Question

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

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

ip route

ip route shows the routing table. The older route command is deprecated.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    ip neigh

    Why it's wrong here

    ip neigh displays the neighbour (ARP) cache mapping IP addresses to link-layer addresses, not routes. It is tempting because neighbour entries and routing both concern next-hop reachability, but the routing table itself is shown by ip route; neigh answers which MAC owns a given IP on the local segment.

  • ✗

    ip addr

    Why it's wrong here

    ip addr lists interface IP address assignments and their state, not the routing table. It is tempting because interface addresses feed into route selection and the output looks network-focused, but routes are displayed by ip route; addr answers which addresses are configured on each interface.

  • ✗

    ip link

    Why it's wrong here

    ip link shows layer-2 interface state such as flags, MTU and MAC addresses, not routing entries. It is tempting because link status affects whether routes are usable, but the routing table is displayed by ip route; link answers whether interfaces are up and their hardware addressing.

  • ✓

    ip route

    Why this is correct

    The ip route command queries the kernel's routing table via the iproute2 suite, listing destination networks, gateways and interfaces. It satisfies the requirement to display current routes, unlike legacy netstat -r or route, which are deprecated on modern Linux distributions.

About these practice questions

This XK0-006 question is part of Courseiva's 781-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.