expertblr
asked on
Linux: Network service reads which file
hi,
I want to know which configuration file is read by the 'Service Network restart' command. The S10network script in the /etc/rc5.d directory indicates that it reads ifcfg-eth0 file, but when I edit ifcfg-eth0 file and then restart the network service it is not reading the ifcfg-eth0 file and hence the required Ip address is not assigned to NIC.
Please advise on this.....
I want to know which configuration file is read by the 'Service Network restart' command. The S10network script in the /etc/rc5.d directory indicates that it reads ifcfg-eth0 file, but when I edit ifcfg-eth0 file and then restart the network service it is not reading the ifcfg-eth0 file and hence the required Ip address is not assigned to NIC.
Please advise on this.....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
On CentOS (Redhat clone), the script that is started for networking is /etc/init.d/networking.
if I ever have to restart my network connections I always use '/etc/rc.d/init.d/network restart'
ASKER
Thanks all.
check which files are opened.