Linux: Network service reads which file

Posted on 2006-04-05
Last Modified: 2011-09-20

    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.....
Question by:expertblr
    LVL 43

    Expert Comment

    strace -f command_to_run parameters

    check which files are opened.
    LVL 8

    Accepted Solution

    What Linux version are you running?  On Redhat the network settings are found under /etc/sysconfig/networking/devices/.
    LVL 87

    Expert Comment

    On CentOS (Redhat clone), the script that is started for networking is /etc/init.d/networking.
    LVL 8

    Expert Comment

    if I ever have to restart my network connections I always use '/etc/rc.d/init.d/network restart'

    Author Comment

    Thanks all.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    Lame BIND 9.3 10 47
    BIND DNS - Single Zone 2 views 5 47
    Cron jobs 12 64
    How to Edit Files in Linux 6 71
    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now