A system administrator needs to configure a static IPv4 address of 192.168.1.100/24 on interface eth0 using NetworkManager. Which command accomplishes this?
This correctly modifies the connection to use a static IP address and sets the method to manual.
Why this answer
Option C is correct because `nmcli con mod` modifies an existing connection profile, and setting `ipv4.addresses` along with `ipv4.method manual` is the proper way to assign a static IPv4 address in NetworkManager. The `/24` prefix length is correctly specified as part of the address value, and the manual method disables DHCP for IPv4.
Exam trap
The trap here is that candidates often confuse `nmcli dev set` (device-level) with `nmcli con mod` (connection-level), or they use the singular `ipv4.address` instead of the plural `ipv4.addresses`, which is the correct property name in NetworkManager.
How to eliminate wrong answers
Option A is wrong because `nmcli dev set` is used to set device-level properties (like link state or MTU), not IP address configuration; it does not accept `ipv4.address` as a parameter. Option B is wrong because `nmcli con up` brings a connection profile up (activates it) and does not accept `ipv4.address` as an argument; it cannot modify configuration. Option D is wrong because `nmcli con add` creates a new connection profile, but the correct parameter for the IP address is `ipv4.addresses` (plural), not `ipv4.address` (singular), and it also requires `ipv4.method manual` to set a static address; without that, the profile would default to DHCP.