LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-07-2010, 01:02 PM   #1
frozenQueue
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
sampappachan_nyc
Member
 
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.


Sam

Last edited by sampappachan_nyc; 10-07-2010 at 03:22 PM.
 
Old 10-08-2010, 06:26 AM   #3
doublejoon
Member
 
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

Code:
chattr +a /etc/sysconfig/network-scripts/ifcfg-ethX
or
Code:
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.
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:08 PM.

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