CompTIA Linux+ (XK0-004) — Question 231

A technician's laptop is configured with wired and wireless interfaces. Both interfaces have obtained the appropriate IP address from the organization's DHCP server.
Which of the following commands is MOST appropriate to remove the IP address from the wireless interface temporarily so network traffic is routed through the wired interface?

Answer options

Correct answer: D

Explanation

The correct answer is D, as 'dhclient -r wlan0' releases the DHCP lease, thereby removing the IP address from the wireless interface. Option A is incorrect because it uses an invalid command structure. Option B is also incorrect, as it attempts to delete the default gateway rather than the IP address. Lastly, Option C simply displays routing information and does not modify any configurations.