Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo' when I use ifdown or ifup











up vote
1
down vote

favorite












When using ifdown or ifup for the lookback interface in CentOS 7:



[root@localhost etc]# ifup lo


I have got the error below:




Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'




However if I use the ifconfig command, it shows the command(ifdown or ifup) works with success.





As I tested, the use of the ifconfig lo up/down does not show any signs of errors.



What is happening?





EDIT



I checked the ifcfg-lo file, it shows the info below:



[root@localhost etc]# ls -la /etc/sysconfig/network-scripts/ifcfg-lo
-rw-r--r--. 1 root root 254 Jun 26 20:07 /etc/sysconfig/network-scripts/ifcfg-lo









share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • ifconfig does not use network-scripts ; please edit the question and add to it the output of ls -la /etc/sysconfig/network-scripts/ifcfg-lo
    – Rui F Ribeiro
    Jun 26 '17 at 12:41












  • Does chmod a+rx /etc/sysconfig/network-scripts/ifcfg-lo correct the situation? (probably not, I suspect it must be something with selinux...)
    – Rui F Ribeiro
    Jun 26 '17 at 13:01










  • @RuiFRibeiro it still reports the error. and in the front, I tells it even reports the mentioned error but the command works.
    – three-blocks
    Jun 26 '17 at 13:06










  • Or the command appears to work. I am sure, I do not use selinux, someone else will hopefully help you.
    – Rui F Ribeiro
    Jun 26 '17 at 13:08















up vote
1
down vote

favorite












When using ifdown or ifup for the lookback interface in CentOS 7:



[root@localhost etc]# ifup lo


I have got the error below:




Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'




However if I use the ifconfig command, it shows the command(ifdown or ifup) works with success.





As I tested, the use of the ifconfig lo up/down does not show any signs of errors.



What is happening?





EDIT



I checked the ifcfg-lo file, it shows the info below:



[root@localhost etc]# ls -la /etc/sysconfig/network-scripts/ifcfg-lo
-rw-r--r--. 1 root root 254 Jun 26 20:07 /etc/sysconfig/network-scripts/ifcfg-lo









share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • ifconfig does not use network-scripts ; please edit the question and add to it the output of ls -la /etc/sysconfig/network-scripts/ifcfg-lo
    – Rui F Ribeiro
    Jun 26 '17 at 12:41












  • Does chmod a+rx /etc/sysconfig/network-scripts/ifcfg-lo correct the situation? (probably not, I suspect it must be something with selinux...)
    – Rui F Ribeiro
    Jun 26 '17 at 13:01










  • @RuiFRibeiro it still reports the error. and in the front, I tells it even reports the mentioned error but the command works.
    – three-blocks
    Jun 26 '17 at 13:06










  • Or the command appears to work. I am sure, I do not use selinux, someone else will hopefully help you.
    – Rui F Ribeiro
    Jun 26 '17 at 13:08













up vote
1
down vote

favorite









up vote
1
down vote

favorite











When using ifdown or ifup for the lookback interface in CentOS 7:



[root@localhost etc]# ifup lo


I have got the error below:




Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'




However if I use the ifconfig command, it shows the command(ifdown or ifup) works with success.





As I tested, the use of the ifconfig lo up/down does not show any signs of errors.



What is happening?





EDIT



I checked the ifcfg-lo file, it shows the info below:



[root@localhost etc]# ls -la /etc/sysconfig/network-scripts/ifcfg-lo
-rw-r--r--. 1 root root 254 Jun 26 20:07 /etc/sysconfig/network-scripts/ifcfg-lo









share|improve this question















When using ifdown or ifup for the lookback interface in CentOS 7:



[root@localhost etc]# ifup lo


I have got the error below:




Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'

Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'




However if I use the ifconfig command, it shows the command(ifdown or ifup) works with success.





As I tested, the use of the ifconfig lo up/down does not show any signs of errors.



What is happening?





EDIT



I checked the ifcfg-lo file, it shows the info below:



[root@localhost etc]# ls -la /etc/sysconfig/network-scripts/ifcfg-lo
-rw-r--r--. 1 root root 254 Jun 26 20:07 /etc/sysconfig/network-scripts/ifcfg-lo






centos ifconfig






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 26 '17 at 12:58









Rui F Ribeiro

38.6k1479128




38.6k1479128










asked Jun 26 '17 at 12:13









three-blocks

223717




223717





bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • ifconfig does not use network-scripts ; please edit the question and add to it the output of ls -la /etc/sysconfig/network-scripts/ifcfg-lo
    – Rui F Ribeiro
    Jun 26 '17 at 12:41












  • Does chmod a+rx /etc/sysconfig/network-scripts/ifcfg-lo correct the situation? (probably not, I suspect it must be something with selinux...)
    – Rui F Ribeiro
    Jun 26 '17 at 13:01










  • @RuiFRibeiro it still reports the error. and in the front, I tells it even reports the mentioned error but the command works.
    – three-blocks
    Jun 26 '17 at 13:06










  • Or the command appears to work. I am sure, I do not use selinux, someone else will hopefully help you.
    – Rui F Ribeiro
    Jun 26 '17 at 13:08


















  • ifconfig does not use network-scripts ; please edit the question and add to it the output of ls -la /etc/sysconfig/network-scripts/ifcfg-lo
    – Rui F Ribeiro
    Jun 26 '17 at 12:41












  • Does chmod a+rx /etc/sysconfig/network-scripts/ifcfg-lo correct the situation? (probably not, I suspect it must be something with selinux...)
    – Rui F Ribeiro
    Jun 26 '17 at 13:01










  • @RuiFRibeiro it still reports the error. and in the front, I tells it even reports the mentioned error but the command works.
    – three-blocks
    Jun 26 '17 at 13:06










  • Or the command appears to work. I am sure, I do not use selinux, someone else will hopefully help you.
    – Rui F Ribeiro
    Jun 26 '17 at 13:08
















ifconfig does not use network-scripts ; please edit the question and add to it the output of ls -la /etc/sysconfig/network-scripts/ifcfg-lo
– Rui F Ribeiro
Jun 26 '17 at 12:41






ifconfig does not use network-scripts ; please edit the question and add to it the output of ls -la /etc/sysconfig/network-scripts/ifcfg-lo
– Rui F Ribeiro
Jun 26 '17 at 12:41














Does chmod a+rx /etc/sysconfig/network-scripts/ifcfg-lo correct the situation? (probably not, I suspect it must be something with selinux...)
– Rui F Ribeiro
Jun 26 '17 at 13:01




Does chmod a+rx /etc/sysconfig/network-scripts/ifcfg-lo correct the situation? (probably not, I suspect it must be something with selinux...)
– Rui F Ribeiro
Jun 26 '17 at 13:01












@RuiFRibeiro it still reports the error. and in the front, I tells it even reports the mentioned error but the command works.
– three-blocks
Jun 26 '17 at 13:06




@RuiFRibeiro it still reports the error. and in the front, I tells it even reports the mentioned error but the command works.
– three-blocks
Jun 26 '17 at 13:06












Or the command appears to work. I am sure, I do not use selinux, someone else will hopefully help you.
– Rui F Ribeiro
Jun 26 '17 at 13:08




Or the command appears to work. I am sure, I do not use selinux, someone else will hopefully help you.
– Rui F Ribeiro
Jun 26 '17 at 13:08










2 Answers
2






active

oldest

votes

















up vote
0
down vote













First of all stop Using ifconfig command anymore with Centos 7 version and later versions because it doesnt give you full information about your network card parameters (For example if you assigened 2 IP addresses to your Card)
instead use ipa command or ip addr show command.
Second This problem is currently being tracked as a bug by Red Hat.
To Fix this problem: Add NM_CONTROLLED=no to /etc/sysconfig/network-scripts/ifcfg-lo.
Root Cause: ifcfg-rh plugin in NetworkManager does not support loopback interface type and logs a message about it in system log.






share|improve this answer




























    up vote
    0
    down vote













    If you want to fully resolve this issues, update to higher version.
    And in current version you can fix it by adding "NM_CONTROLLED=no" to /etc/sysconfig/network-scripts/ifcfg-lo configuration file, then restart the network following this link https://access.redhat.com/solutions/1549693






    share|improve this answer

















    • 1




      Please add some details from the external webpage in your answer, using the page as a reference rather than the primary resource.
      – Munir
      Jan 5 at 3:58











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f373441%2fcould-not-load-file-etc-sysconfig-network-scripts-ifcfg-lo-when-i-use-ifdown%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    First of all stop Using ifconfig command anymore with Centos 7 version and later versions because it doesnt give you full information about your network card parameters (For example if you assigened 2 IP addresses to your Card)
    instead use ipa command or ip addr show command.
    Second This problem is currently being tracked as a bug by Red Hat.
    To Fix this problem: Add NM_CONTROLLED=no to /etc/sysconfig/network-scripts/ifcfg-lo.
    Root Cause: ifcfg-rh plugin in NetworkManager does not support loopback interface type and logs a message about it in system log.






    share|improve this answer

























      up vote
      0
      down vote













      First of all stop Using ifconfig command anymore with Centos 7 version and later versions because it doesnt give you full information about your network card parameters (For example if you assigened 2 IP addresses to your Card)
      instead use ipa command or ip addr show command.
      Second This problem is currently being tracked as a bug by Red Hat.
      To Fix this problem: Add NM_CONTROLLED=no to /etc/sysconfig/network-scripts/ifcfg-lo.
      Root Cause: ifcfg-rh plugin in NetworkManager does not support loopback interface type and logs a message about it in system log.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        First of all stop Using ifconfig command anymore with Centos 7 version and later versions because it doesnt give you full information about your network card parameters (For example if you assigened 2 IP addresses to your Card)
        instead use ipa command or ip addr show command.
        Second This problem is currently being tracked as a bug by Red Hat.
        To Fix this problem: Add NM_CONTROLLED=no to /etc/sysconfig/network-scripts/ifcfg-lo.
        Root Cause: ifcfg-rh plugin in NetworkManager does not support loopback interface type and logs a message about it in system log.






        share|improve this answer












        First of all stop Using ifconfig command anymore with Centos 7 version and later versions because it doesnt give you full information about your network card parameters (For example if you assigened 2 IP addresses to your Card)
        instead use ipa command or ip addr show command.
        Second This problem is currently being tracked as a bug by Red Hat.
        To Fix this problem: Add NM_CONTROLLED=no to /etc/sysconfig/network-scripts/ifcfg-lo.
        Root Cause: ifcfg-rh plugin in NetworkManager does not support loopback interface type and logs a message about it in system log.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 29 '17 at 0:25









        Blacky Bird

        1012




        1012
























            up vote
            0
            down vote













            If you want to fully resolve this issues, update to higher version.
            And in current version you can fix it by adding "NM_CONTROLLED=no" to /etc/sysconfig/network-scripts/ifcfg-lo configuration file, then restart the network following this link https://access.redhat.com/solutions/1549693






            share|improve this answer

















            • 1




              Please add some details from the external webpage in your answer, using the page as a reference rather than the primary resource.
              – Munir
              Jan 5 at 3:58















            up vote
            0
            down vote













            If you want to fully resolve this issues, update to higher version.
            And in current version you can fix it by adding "NM_CONTROLLED=no" to /etc/sysconfig/network-scripts/ifcfg-lo configuration file, then restart the network following this link https://access.redhat.com/solutions/1549693






            share|improve this answer

















            • 1




              Please add some details from the external webpage in your answer, using the page as a reference rather than the primary resource.
              – Munir
              Jan 5 at 3:58













            up vote
            0
            down vote










            up vote
            0
            down vote









            If you want to fully resolve this issues, update to higher version.
            And in current version you can fix it by adding "NM_CONTROLLED=no" to /etc/sysconfig/network-scripts/ifcfg-lo configuration file, then restart the network following this link https://access.redhat.com/solutions/1549693






            share|improve this answer












            If you want to fully resolve this issues, update to higher version.
            And in current version you can fix it by adding "NM_CONTROLLED=no" to /etc/sysconfig/network-scripts/ifcfg-lo configuration file, then restart the network following this link https://access.redhat.com/solutions/1549693







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 5 at 3:54









            Nguyen Bac

            11




            11








            • 1




              Please add some details from the external webpage in your answer, using the page as a reference rather than the primary resource.
              – Munir
              Jan 5 at 3:58














            • 1




              Please add some details from the external webpage in your answer, using the page as a reference rather than the primary resource.
              – Munir
              Jan 5 at 3:58








            1




            1




            Please add some details from the external webpage in your answer, using the page as a reference rather than the primary resource.
            – Munir
            Jan 5 at 3:58




            Please add some details from the external webpage in your answer, using the page as a reference rather than the primary resource.
            – Munir
            Jan 5 at 3:58


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f373441%2fcould-not-load-file-etc-sysconfig-network-scripts-ifcfg-lo-when-i-use-ifdown%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt