I am automating the installation of a linux system. One of the things I am doing is setting up the interfaces (Giving them static ips and such). I would like to know if the interfaces are named when the ifcfg-* scripts under /etc/sysconfig/network-scripts run on if the their names are set somewhere else. For instance, I have the following script named ifcfg-Installation:
TYPE=Ethernet
DEVICE=eth0
IPADDR=192.168.1.1
PREFIX=24
ONBOOT=yes
If I change the DEVICE=eth0 to DEVICE=installation. Assuming this is the first network script that runs. Would linux simply assign the first ethernet interface it has to have name installation? Or will it try to find an interface with device name installation and assign those settings to it?
I am running CentoOS6.3 for this (Don't know if this is relevant)