nerdexam
CompTIA

XK0-005 · Question #164

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?

The correct answer is C. /etc/sysconfig/network-scripts/ifcfg-eth0. Interface configuration files Every network interface has its own configuration file in the /etc/sysconfig/network-scripts directory. Each interface has a configuration file named ifcfg-<interface-name>X, where X is the number of the interface, starting with zero or 1 depending…

System Management

Question

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?

Options

  • A/etc/sysconfig/network/interfaces.cnf
  • B/system/config/interfaces
  • C/etc/sysconfig/network-scripts/ifcfg-eth0
  • D/system/networking/ifconfig
  • E/etc/interfaces/eth0.conf

How the community answered

(38 responses)
  • B
    5% (2)
  • C
    92% (35)
  • E
    3% (1)

Explanation

Interface configuration files Every network interface has its own configuration file in the /etc/sysconfig/network-scripts directory. Each interface has a configuration file named ifcfg-<interface-name>X, where X is the number of the interface, starting with zero or 1 depending upon the naming convention in use; for example /etc/sysconfig/network-scripts/ifcfg-eth0 for the first Ethernet interface. https://opensource.com/life/16/6/how-configure-networking-linux

Topics

#Network Configuration#Linux Filesystems#IP Addressing#Interface Management

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice