Where does NetworkManager store NIC settings?
I was trying to uninstall the default drivers and install the new driver. When the default driver was installed during OS installation, there were some ifcfg scripts created in /etc/sysconfig/network-scripts. But after deleting the ifcfg-scripts (I was hoping it would be created automatically and besides in the general case there is no default driver installed by OS) and uninstalling and reinstalling the new driver, I don't see the network scripts created in the aforementioned directory. But NetworkManager is able to detect them all. Besides ifconfig is able to display all the nics. Then I was trying to locate any possible file stored in the file system to contain the configuration. But I was unable to locate any file. I was also browsing the Internet to find any clue but I didn't find any clue so far.
Now why I need this thing is because I need to assign some static address and create some bonding etc. Hence I need some persistent way of preserving all configurations; and I want to do this automatically using scripts. Then there are two possible issues. As ifconfig is obsolete are ifcfg scripts obsolete too? In this case I need to know what other alternatives are there (as I said I can't find the way NetworkManager is doing so); Secondly, is there any way to automatically generate the ifcfg-scripts. I can do this manually but having an exiting tool to do that would be cool. I believe yast2 can do this. Is there any equivalent in RHEL? I can't use system-config-network because I need a scripted way of doing such things.
Thanks for reading and thanks in advance for replying.