A user needs to modify the IP address of a laptop.
Which of the following files can be used to configure the network interface named eth0?
Click on the arrows to vote for the correct answer
A. B. C. D. E.C.
https://opensource.com/life/16/6/how-configure-networking-linuxThe correct answer is C. /etc/sysconfig/network-scripts/ifcfg-eth0.
Explanation: To modify the IP address of a network interface on a Linux system, you need to modify the network configuration file for that interface. In this case, the interface is named eth0, so we need to look for the appropriate configuration file.
Option A (/etc/sysconfig/network/interfaces.cnf) and option E (/etc/interfaces/eth0.conf) are not valid file paths for network configuration files on most Linux distributions.
Option B (/system/config/interfaces) and option D (/system/networking/ifconfig) do not exist on Linux systems, so they are not valid answers.
The correct file path for network interface configuration on most Linux distributions is /etc/sysconfig/network-scripts/ifcfg-eth0. This file contains configuration parameters for the eth0 interface, including the IP address, netmask, gateway, and DNS servers.
Therefore, the correct answer is C. /etc/sysconfig/network-scripts/ifcfg-eth0.