Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ifcfg* files in OL7

EdStevensNov 9 2018 — edited Nov 12 2018

I'm just starting to take a look at network configurations in OL7, which appear to be a bit different than in previous versions.

My typical configuration is a linux vm running under VirtualBox.  I always configure the VM with 2 NICx, one NAT and one HOSTONLY.

In linux versions previous to 7, in /etc/sysconfig/network-scripts I'd have 'ifcfg_eth0' and 'ifcfg-eth1'.  Within those there would be an entry 'HWADDR=" which would specify the MAC address as defined for a NIC in the VBox manager for the given machine.

But in OL7, the ifcfg files are named differently, and more importantly, there seems to be no parameter to tie the config to a particular MAC adddress:

[root@vbol1-01 network-scripts]# clear

[root@vbol1-01 network-scripts]# ll ifcfg*

-rw-r--r--. 1 root root 281 Feb  3  2018 ifcfg-enp0s3

-rw-r--r--. 1 root root 330 Feb  3  2018 ifcfg-enp0s8

-rw-r--r--. 1 root root 254 May  3  2017 ifcfg-lo

[root@vbol1-01 network-scripts]# cat ifcfg-enp0s3

TYPE=Ethernet

PROXY_METHOD=none

BROWSER_ONLY=no

BOOTPROTO=dhcp

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=yes

IPV6_AUTOCONF=yes

IPV6_DEFROUTE=yes

IPV6_FAILURE_FATAL=no

IPV6_ADDR_GEN_MODE=stable-privacy

NAME=enp0s3

UUID=04075735-09ff-448c-972a-f250c1fd5bbd

DEVICE=enp0s3

ONBOOT=no

[root@vbol1-01 network-scripts]# cat ifcfg-enp0s8

TYPE=Ethernet

PROXY_METHOD=none

BROWSER_ONLY=no

BOOTPROTO=none

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=yes

IPV6_AUTOCONF=yes

IPV6_DEFROUTE=yes

IPV6_FAILURE_FATAL=no

IPV6_ADDR_GEN_MODE=stable-privacy

NAME=enp0s8

UUID=55147482-91c0-4f6b-92be-974c4caed089

DEVICE=enp0s8

ONBOOT=yes

IPADDR=192.168.56.104

PREFIX=24

IPV6_PRIVACY=no

[root@vbol1-01 network-scripts]#

While I'm curious as to why the name change of the ifcfg files, what is really puzzling me is what connects a specific ifcfg* file to a particular MAC address/device.

Comments
Post Details
Added on Nov 9 2018
6 comments
822 views