Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 10-07-2010, 01:02 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 25

Rep: Reputation: 0
RedHat: overwritten /etc/sysconfig/network-scripts/ifcfg-eth* files

Hey, I'm no RedHat expert, but I've got this RedHat box at work which uses ifcfg-eth* files to attach interface names to MAC address, and set the static IP address of each interface. But somehow, each time the system is rebooted, these ifcfg-eth* files are being altered to change the MAC addresses to bogus values.

We think it might be custom software on the machine overwriting these files but are not sure. Is there any standard software on a RedHat system that could be overwriting these files?
Old 10-07-2010, 03:18 PM   #2
Registered: Jan 2009
Location: New York
Distribution: Red Hat, CentOS,Fedora, Ubuntu, SUSE, linux mint
Posts: 60

Rep: Reputation: 0
Hi FrozenQueue,

Make sure your interface file has correct file permissions:

rw-r--r--. 3 root root 107 May 24 2005 /etc/sysconfig/network-scripts/ifcfg-eth0

chmod 644 and chown root:root the file.

Also check your network configuration using 'system-config-network' tool.


Last edited by sampappachan_nyc; 10-07-2010 at 03:22 PM.
Old 10-08-2010, 06:26 AM   #3
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
Or once you get the file configured exactly the way you want it

chattr +a /etc/sysconfig/network-scripts/ifcfg-ethX
chattr +i /etc/sysconfig/network-scripts/ifcfg-ethX
+i= Make file read only
+a= Can't open file for writing
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why are there multiple ifcfg-eth(x) files slsscoot Linux - Networking 1 01-30-2008 12:55 PM
what is "/etc/sysconfig/network-scripts/ifcfg-eth0" its counterpart in slackware b0nd Slackware 2 10-06-2005 12:50 AM
How to change /etc/sysconfig/network-scripts/ifcfg-eth0 ariana Linux - Networking 1 05-01-2005 01:37 PM
can anyone post their /etc/sysconfig/network-scripts/ifcfg-wlan0? Dooberdoink Linux - Wireless Networking 1 03-27-2005 09:49 AM
/etc/sysconfig/network-scripts/ifcfg-ra0 Not working anymore NssOne Linux - Wireless Networking 1 02-13-2004 09:13 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration