LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   RedHat: overwritten /etc/sysconfig/network-scripts/ifcfg-eth* files (https://www.linuxquestions.org/questions/red-hat-31/redhat-overwritten-etc-sysconfig-network-scripts-ifcfg-eth%2A-files-836787/)

frozenQueue 10-07-2010 01:02 PM

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?

sampappachan_nyc 10-07-2010 03:18 PM

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

doublejoon 10-08-2010 06:26 AM

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


All times are GMT -5. The time now is 12:27 AM.