Courseiva
Troubleshooting →mediumMultiple Choice

XK0-006 Troubleshooting Practice Question

A Linux administrator needs to verify which network interfaces are up and their IP addresses on a server. Which command provides this information?

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 addr

The `ip addr` command displays all network interfaces along with their IP addresses, MAC addresses, and status (UP/DOWN).

Answer analysis

Option-by-option breakdown

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

  • ✗

    ss -tlnp

    Why it's wrong here

    ss -tlnp lists listening TCP sockets with owning processes, not interface operational state or assigned IP addresses; ip addr show provides that. It tempts because ss is a legitimate network diagnostic tool, and it would be correct for identifying which ports services are listening on.

  • ✗

    nmcli dev show

    Why it's wrong here

    While `nmcli dev show` does display network device information, its output is excessively verbose and detailed, including a comprehensive list of all device parameters and their current states, rather than a concise summary of active interfaces and their IP addresses. It is tempting because it *does* show network device status, and would be the correct choice if the administrator needed to diagnose intricate network configuration issues or inspect specific driver details.

  • ✗

    ifconfig -a

    Why it's wrong here

    ifconfig -a lists all interfaces including those administratively down, so it does not isolate interfaces that are up; ip addr show or ip link show reports operational state and addresses. It tempts because ifconfig is the classic interface-inspection tool, and it would suffice if the task were simply listing every interface's configuration.

  • ✓

    ip addr

    Why this is correct

    The ip addr command reads interface state and assigned addresses directly from the kernel, listing every interface with its UP/DOWN flag and IPv4/IPv6 addresses. It satisfies the requirement to verify which interfaces are up and their IPs.

Quick reference

Access Control Model Comparison

ModelAcronymWho Controls Access?Best For
Discretionary Access ControlDACResource ownerSmall teams, file shares
Mandatory Access ControlMACSystem / security labelsClassified govt / military
Role-Based Access ControlRBACAdministrator (via roles)Enterprise environments
Attribute-Based Access ControlABACPolicy engine (user + resource attributes)Fine-grained, dynamic policies
Rule-Based Access ControlRuBACSystem rules / ACLsFirewall rules, network ACLs

About these practice questions

One of 781 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.