Question 970
Existing RHEL 10 NetworkManager profile office09 is being maintained (address 192.0.2.19/24; resolver 198.51.100.21). The requirement is to set a static ipv4 address on an existing connection. A review considers `nmcli con mod office09 ipv4.dns 198.51.100.21` as an alternative. Its relevant behavior is: ipv4.dns sets a DNS server in the persistent NetworkManager profile. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
Explanation
Correct Answer
Manual IPv4 addressing and ipv4.addresses put the static address in the saved connection profile. This matches the stated requirement to set a static ipv4 address on an existing connection. By contrast, the plausible alternative `nmcli con up office09` has the effect: nmcli connection up activates the saved profile to apply its configuration; that operation would not achieve the requested result.
Incorrect Answers
ipv4.method auto instructs NetworkManager to obtain IPv4 configuration automatically. The stated task is to set a static ipv4 address on an existing connection. Instead, `nmcli con mod office09 ipv4.method manual ipv4.addresses 192.0.2.19/24` is the relevant alternative because manual IPv4 addressing and ipv4.addresses put the static address in the saved connection profile.
ipv4.dns sets a DNS server in the persistent NetworkManager profile. The stated task is to set a static ipv4 address on an existing connection. Instead, `nmcli con mod office09 ipv4.method manual ipv4.addresses 192.0.2.19/24` is the relevant alternative because manual IPv4 addressing and ipv4.addresses put the static address in the saved connection profile.
nmcli connection up activates the saved profile to apply its configuration. The stated task is to set a static ipv4 address on an existing connection. Instead, `nmcli con mod office09 ipv4.method manual ipv4.addresses 192.0.2.19/24` is the relevant alternative because manual IPv4 addressing and ipv4.addresses put the static address in the saved connection profile.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests