CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux administrator needs to change the network configuration for an existing connection profile named Office-LAN from DHCP to a static IP address. Which of the following commands will correctly modify the connection profile to use the IP address 192.168.10.50/24, gateway 192.168.10.1, and set the DNS server to 8.8.8.8?

  • nmcli con mod Office-LAN ipv4.method manual ipv4.addresses 192.168.10.50/24 ipv4.gateway 192.168.10.1 ipv4.dns 8.8.8.8

  • nmcli con mod Office-LAN method static ip4 192.168.10.50/24 gw4 192.168.10.1 dns 8.8.8.8

  • nmcli dev mod Office-LAN ipv4.method manual ipv4.addresses 192.168.10.50/24 ipv4.gateway 192.168.10.1 ipv4.dns 8.8.8.8

  • nmcli con add Office-LAN ipv4.method manual ipv4.addresses 192.168.10.50/24 ipv4.gateway 192.168.10.1 ipv4.dns 8.8.8.8

CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot