Originally Posted by albert0147
I guess one can not swap out the ifcfg-eth0 file with another...say ifcfg-eth02 or any other name. I guess the permanent change is not that important for the ip address because it can be change quickly as noted.
There's a little bit more info in your reply.
Is this what you want: Have multiple ifcfg-eth0 files, each with their own unique properties inside?
If that is the case: The scripts that control bringing up the network devices look for a specific name pattern, if you use a different name it will not be used. Example ifcfg-eth0 will be used, _ifcfg-eth0 will not be used.
In the /etc/sysconfig/network-scripts/ directory you can create files like this:
The only thing you now need to to is to copy (not move) the correct file to the name that will be used:
cp _ifcfg-eth0.cfg2 ifcfg-eth0
Restart the network and cfg2 will be used.