Operating System - Linux
1825551 Members
2638 Online
109681 Solutions
New Discussion юеВ

diff b/w ../networking/devices/ifcfg-eth0 & ../network-scripts/ifcfg-eth0

 
SOLVED
Go to solution
Maaz
Valued Contributor

diff b/w ../networking/devices/ifcfg-eth0 & ../network-scripts/ifcfg-eth0

Hello Dear Gurus

there are two files
1, /etc/sysconfig/network-scripts/ifcfg-eth0
and the other is
2, /etc/sysconfig/networking/devices/ifcfg-eth0

after installation of rhel 3.0, i found that both files have same contents, but when I changed the ip-address via netconfig, only the /etc/sysconfig/network-scripts/ifcfg-eth0 was updated, while /etc/sysconfig/networking/devices/ifcfg-eth0 remains as previous, i.e
/.../devices/ifcfg-eth0 didnt update(IPADDR=old_ip_addres) when i change the ip-add via netconfig utility.
why ?

Second what is the function/usage of /etc/sysconfig/networking/devices/ifcfg-eth0

Thanks n Regards
Maaz
4 REPLIES 4
Kodjo Agbenu
Honored Contributor
Solution

Re: diff b/w ../networking/devices/ifcfg-eth0 & ../network-scripts/ifcfg-eth0

Hello,

1) is actually used for standard network configuration

2) is never used for standard behaviour. However, it seems there for specific network behaviour. Example : specify a network profile to be used on command-line boot parameters, ...

Good lcuk.
Kodjo
Learn and explain...
Steve_160
Frequent Advisor

Re: diff b/w ../networking/devices/ifcfg-eth0 & ../network-scripts/ifcfg-eth0

FYI, my ".../devices" directory is empty. I'm running Fedora Core 3.
#@%!! Windows!
Maaz
Valued Contributor

Re: diff b/w ../networking/devices/ifcfg-eth0 & ../network-scripts/ifcfg-eth0

Dear Steve I also noticed that some of the rhl9 boxes have ../devices directory empty.
whats this ? I mean why some of the boxes have ../devices directory empty, and some boxes have a populated .../devices directory... two standards ? why ?
Bejoy C Alias
Respected Contributor

Re: diff b/w ../networking/devices/ifcfg-eth0 & ../network-scripts/ifcfg-eth0

When u use redhat-config-network it will update the files in network-scripts and all the other files in networking/devices and networking/profiles are hard links to the file in network-scripts . In ur case u may have created a temp file and moved that file to the redhat-config-network folder which may have broken the hard links. Try issuing ll -i in network-scripts and networking/devices and networking/profiles directiry to see the inodes after making changes through redhat-config-network . The directory networking/profiles is used to set different settings for different users ( different network profiles for different users ) . By default the common profile is used which is a hard link to the file in network-scripts directory. U can create new profiles from redhat-config-network .But while booting up the system will read network-scripts directory to bring up the network interfaces .
Be Always Joy ......