[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


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

Posted on 2016-07-28
Medium Priority
Last Modified: 2016-08-24
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


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
Question by:mac_g
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
LVL 23

Assisted Solution

savone earned 1000 total points
ID: 41732905
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.

Author Comment

ID: 41732988
@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.
LVL 23

Assisted Solution

savone earned 1000 total points
ID: 41733744
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.



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.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 41735198
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.
LVL 23

Expert Comment

ID: 41735261
I am not sure what distro your have, but look in /etc/resolv.conf

Author Comment

ID: 41735319
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.
LVL 23

Accepted Solution

savone earned 1000 total points
ID: 41735342
DNS settings do not have to be set in a ifcfg-xxx files.  They can be set globally in the /etc/resolv.conf file.

Author Comment

ID: 41735419
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.
LVL 35

Assisted Solution

by:Duncan Roe
Duncan Roe earned 1000 total points
ID: 41735682
If the old ones are re-appearing, it may be that dhcpcd is doing that. Use pgrep dhcpcd to see if it is running
LVL 23

Expert Comment

ID: 41735774

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.

Author Comment

ID: 41735803
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


Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question