Courseiva
Essential System Services and NetworkingmediumMultiple SelectObjective-mapped

LPIC-1 Essential System Services and Networking Practice Question

Which THREE steps are required to configure a network interface with a static IP address using the ip command (assuming interface eth0)? (Choose three.)

⚠ Common exam trap

Candidates often confuse the `ip` command with legacy tools like `ifconfig` (option A) or include DNS configuration (option E) as part of the `ip` command workflow, when in fact DNS is handled by separate system services and not by the `ip` command.

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 add default via 192.168.1.1

The `ip route add default via 192.168.1.1` command sets the default gateway for the system, which is essential for routing traffic to networks beyond the local subnet. Without a default route, the static IP configuration would only allow communication within the local network (192.168.1.0/24), making this step mandatory for full network connectivity.

Answer analysis

Option-by-option breakdown

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

  • ifconfig eth0 192.168.1.10 netmask 255.255.255.0

    Why it's wrong here

    ifconfig is deprecated; also not part of ip command.

  • ip route add default via 192.168.1.1

    Why this is correct

    Adds default gateway.

  • ip addr add 192.168.1.10/24 dev eth0

    Why this is correct

    Adds IP address.

  • ip link set eth0 up

    Why this is correct

    Brings interface up.

  • echo 'nameserver 8.8.8.8' > /etc/resolv.conf

    Why it's wrong here

    Configures DNS, not part of ip command for static IP.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

About these practice questions

Courseiva writes every LPIC-1 question from scratch — 527 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 LPIC-1 practice question is part of Courseiva's free LPI 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 LPIC-1 exam.