What file do you need to edit to configure network interfaces in a Debian-based system?

Prepare for the LPI 101-500 Certification Exam. Utilize flashcards, navigate multiple choice questions, and benefit from hints and explanations. Begin your Linux certification journey today!

To configure network interfaces in a Debian-based system, the appropriate file to edit is /etc/network/interfaces. This file is specifically designed for managing network configurations, allowing system administrators to define various aspects such as the network interface types, IP addresses, and whether the interfaces should be automatically configured during system boot.

The /etc/services file is related to the mapping of service names to port numbers and has no role in network interface configuration. The /etc/netplan/config.yaml file is used primarily in Ubuntu server editions starting with version 18.04, which employs Netplan for network management, rather than the traditional method used in Debian-based systems. Finally, the /etc/sysconfig/network-scripts/ifcfg-* file is used in Red Hat-based systems like CentOS and Fedora for network configuration and is not applicable to Debian.

Therefore, for Debian-based systems, editing /etc/network/interfaces is the correct approach for configuring network interfaces.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy