Configuration file missing for a network adapter on CentOS 7 [closed]

I’ve been doing some basic networking on virtual machines (VBox) running CentOS 7. One of them has 2 network adapters installed – one operating in NAT mode and the other one connected to an internal network. I wanted to set up static IPs for the machines and make those permanent by editing the configuration files to avoid entering all the commands again upon each startup.

Here’s the output of ip a:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1 000
    link/ether 08:00:27:6d:c7:8b brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3
       valid_lft 77260sec preferred_lft 77260sec
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1 000
    link/ether 08:00:27:9c:f6:11 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/24 scope global enp0s8
       valid_lft forever preferred_lft forever

The interface in question is enp0s8, the one attached to an internal network. The path to the config files I managed to google was /etc/sysconfig/network-scripts/ifcfg-enp0s8, however the file for that exact interface was missing. This confused me, since the other two were present. Does it have something to do with the connection to an internal network?

Any help appreciated.

Leave a Comment