• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

Linux : understanding ifcfg-*** files from directory #/etc/sysconfig/network-scripts

In my office one of the de-commissioned DB server hand over to me for the purpose of using other software like Apache.
when I see the details about network  in directory # /etc/sysconfig/network-scripts, I could see list below list

 # /etc/sysconfig/network-scripts
 ifcfg-bond0
 ifcfg-bond
 ifcfg-bond:
 ifcfg-bond2
 ifcfg-bond3
 ifcfg-bond4
 ifcfg-eth286_2.4
 ifcfg-eth646_.4
 ifcfg-ib0
 ifcfg-ib0.8004
 
 ifcfg-ib
 ifcfg-ib.8004

ifcfg-lo

=============
As typical Apche server admin, I know only files - ifcfg-lo & ifcfg-etho,
where usefully I edit for DNS server settings.

I have checked all files, could not find DNS- server details entries in neither of the files.

please let me know
- The importance of above files
- where to find DNS details in such scenario
0
mac_g
Asked:
mac_g
  • 5
  • 5
4 Solutions
 
savoneCommented:
There are many different kind of ifcfg files.  Some of the ones you have listed are network bonds, you can good that to find out more about them.

My recommendation would be to reinstall Linux on the server.  Since you do not know what the previous configuration was, it will be an uphill battle to reconfigure it for your purpose.
0
 
mac_gAdmin - Oracle Fusion Middleware suiteAuthor Commented:
@savOne, i am not looking advice to re-install.

But to understand when/why/how .. these kind of configurations are required for server.
what is it significance.
0
 
savoneCommented:
Interface bonding is a very large topic for someone to teach you by typing here.  There is thousands and thousands of pages of documentation on the internet.  I told you what they were, and here are some links to help you learn more.

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-networkscripts-interfaces-chan.html

http://www.enterprisenetworkingplanet.com/linux_unix/article.php/3850636/Understanding-NIC-Bonding-with-Linux.htm

That should get you started. As I said, it is way too much to type here, especially if you do not know anything about bonded interfaces.  It would take me days to type it all out.  I hope that helps.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
mac_gAdmin - Oracle Fusion Middleware suiteAuthor Commented:
thanks for your above links for basic understanding.

I could not find DNS IP details any of the above files.

typical it should be available in /../network-scripts/ ifcfg-eth0.


please advice where to find such details for the environment like this.
0
 
savoneCommented:
I am not sure what distro your have, but look in /etc/resolv.conf
0
 
mac_gAdmin - Oracle Fusion Middleware suiteAuthor Commented:
OS : Oracle Linux 6.5

resolve.conf anyway will have. this CONF file reflect the values which we have provided in -/../network-scripts/ ifcfg-eth0.

In my case I could not find the DNS server details any of the files in above dir.
0
 
savoneCommented:
DNS settings do not have to be set in a ifcfg-xxx files.  They can be set globally in the /etc/resolv.conf file.
0
 
mac_gAdmin - Oracle Fusion Middleware suiteAuthor Commented:
@SAvOne
for  your info..
if you edit resolv.conf with new DNS value, then, whenever the system rebooted the OLD DNS value will re-appear. for that the permanent changes to be done on ifcfg-xxx files.
0
 
Duncan RoeSoftware DeveloperCommented:
If the old ones are re-appearing, it may be that dhcpcd is doing that. Use pgrep dhcpcd to see if it is running
0
 
savoneCommented:
@Mac_g

You said there are no DNS settings in the ifcfg files, now you saying the settings in the ifcfg files are overwriting /etc/resolv.conf.

Are you using DHCP?  Are you running network manager?  We need accurate information about your system to help you troubleshoot.
0
 
mac_gAdmin - Oracle Fusion Middleware suiteAuthor Commented:
the explanation above I gave you <<if you edit resolv.conf with new DNS value, then, whenever the system rebooted the OLD DNS value will re-appear. for that the permanent changes to be done on ifcfg-xxx files>>>, this is general information the way Linux OS runs in any typical environment, this is just to share info for your understanding.

what I am looking is now, other than resolv.conf file, DNS values should be available in **eth0 file. in my case I could not find that. Where could I find ?

as u requested above info, 1) we are not using DHCP &  2) we are using Network mgr

--
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now