From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Manual network interface configuration

Manual network interface configuration - Linux Tutorial

From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)

Start my 1-month free trial

Manual network interface configuration

Network interface configuration files control the interfaces for individual network devices. As the system boots, these files are read and the network interfaces are configured or possibly ignored, depending on the configuration. These files are stored in /etc/sysconfig/network-scripts and named ifcg-name where name is the name of the network interface. For instance, the configuration file for the enp0s3 network interface would be /etc/sysconfig/network-scripts/ifcfg-enp0s3. The network interface is also named inside of the file as well. Generally it's a good idea to have them match. These scripts are for all network interface configuration including dynamic and manual configs. A dynamic config may have only few lines in it specifying the name of the device and the boot protocol of DHCP. This example specifies that it should be enabled at boot and uses DHCP for configuration. To create a static interface configuration,…

Contents