Courseiva
Networking →mediumMultiple Choice

LFCS Networking Practice Question

A Linux server has a single network interface ens3. You need to assign the static address 10.10.10.5/24 with gateway 10.10.10.1 using NetworkManager. The connection profile is named 'static-ens3'. Which command correctly applies the IPv4 address, disables DHCP, and sets the gateway, all in one step?

⚠ Common exam trap

Candidates often confuse 'nmcli con mod' (modify existing profile) with 'nmcli con add' (create new profile) or 'nmcli con up' (activate profile), and forgetting that 'ipv4.method manual' is required to disable DHCP.

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

✓

nmcli con mod static-ens3 ipv4.addresses 10.10.10.5/24 ipv4.gateway 10.10.10.1 ipv4.method manual

The correct command uses 'nmcli con mod' to modify the existing connection profile named static-ens3. It sets the IPv4 address, gateway, and changes the method to manual, which disables DHCP. This is the standard way to apply a static configuration with NetworkManager. After modification, the connection must be reactivated for the changes to take effect.

Answer analysis

Option-by-option breakdown

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

  • ✓

    nmcli con mod static-ens3 ipv4.addresses 10.10.10.5/24 ipv4.gateway 10.10.10.1 ipv4.method manual

    Why this is correct

    This nmcli command modifies the existing connection profile named static-ens3, setting the IPv4 address, gateway, and switching the method to manual. It is the correct and idiomatic way to configure a static address with NetworkManager. After this command, you would need to bring the connection up (or reactivate it) for the changes to take effect.

  • ✗

    nmcli con mod static-ens3 ipv4.addresses 10.10.10.5/24 ipv4.gateway 10.10.10.1 ipv4.method auto

    Why it's wrong here

    Setting ipv4.method to auto enables DHCP, which contradicts the requirement to assign a static address and disable DHCP. Even though the address and gateway are specified, with method auto the interface will attempt DHCP and may override or ignore the static configuration depending on NetworkManager behavior. The method must be manual.

  • ✗

    nmcli con up static-ens3 ipv4.addresses 10.10.10.5/24 ipv4.gateway 10.10.10.1 ipv4.method manual

    Why it's wrong here

    The 'nmcli con up' command activates an existing connection profile but does not accept IPv4 configuration parameters. It only brings the connection up using its already-configured settings. This command would fail or ignore the extra arguments, and it would not modify the profile's IP configuration.

  • ✗

    nmcli con add type ethernet ifname ens3 ipv4.addresses 10.10.10.5/24 ipv4.gateway 10.10.10.1 ipv4.method manual

    Why it's wrong here

    The 'nmcli con add' command creates a new connection profile, but it requires a 'con-name' argument to specify the profile name. Without it, the command will fail or prompt for a name. Also, the scenario specifies an existing profile named static-ens3, so modifying it is more appropriate than adding a new one.

Visual reference

Client DHCP Server 1 Discover (broadcast) 2 Offer (IP: 192.168.1.10) 3 Request (I accept) 4 Acknowledge (lease confirmed) DORA — the four-step DHCP lease process

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every LFCS question from scratch — 406 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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Linux Foundation exam blueprint

This LFCS practice question is part of Courseiva's free Linux Foundation 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 LFCS exam.