ifdown bond0:0 takes down bond0 with it?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I set up an interface alias on my bond0 interface with this file



/etc/sysconfig/network-scripts/ifcfg-bond0:0


containing this



DEVICE=bond0:0
IPADDR=10.2.3.60
BOOTPROTO=static
ONBOOT=yes
NETMASK=255.255.255.0


and when I



$ ifup bond0:0 


it comes up fine and I can ping it. However when I



$ ifdown bond0:0


it takes down both bond0 and bond0:0



This seems like a bug, but maybe I'm doing something wrong. How do I bring down bond0:0 without taking down bond0 with it?










share|improve this question



























    up vote
    2
    down vote

    favorite












    I set up an interface alias on my bond0 interface with this file



    /etc/sysconfig/network-scripts/ifcfg-bond0:0


    containing this



    DEVICE=bond0:0
    IPADDR=10.2.3.60
    BOOTPROTO=static
    ONBOOT=yes
    NETMASK=255.255.255.0


    and when I



    $ ifup bond0:0 


    it comes up fine and I can ping it. However when I



    $ ifdown bond0:0


    it takes down both bond0 and bond0:0



    This seems like a bug, but maybe I'm doing something wrong. How do I bring down bond0:0 without taking down bond0 with it?










    share|improve this question

























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I set up an interface alias on my bond0 interface with this file



      /etc/sysconfig/network-scripts/ifcfg-bond0:0


      containing this



      DEVICE=bond0:0
      IPADDR=10.2.3.60
      BOOTPROTO=static
      ONBOOT=yes
      NETMASK=255.255.255.0


      and when I



      $ ifup bond0:0 


      it comes up fine and I can ping it. However when I



      $ ifdown bond0:0


      it takes down both bond0 and bond0:0



      This seems like a bug, but maybe I'm doing something wrong. How do I bring down bond0:0 without taking down bond0 with it?










      share|improve this question















      I set up an interface alias on my bond0 interface with this file



      /etc/sysconfig/network-scripts/ifcfg-bond0:0


      containing this



      DEVICE=bond0:0
      IPADDR=10.2.3.60
      BOOTPROTO=static
      ONBOOT=yes
      NETMASK=255.255.255.0


      and when I



      $ ifup bond0:0 


      it comes up fine and I can ping it. However when I



      $ ifdown bond0:0


      it takes down both bond0 and bond0:0



      This seems like a bug, but maybe I'm doing something wrong. How do I bring down bond0:0 without taking down bond0 with it?







      networking rhel bonding






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 5 mins ago









      slm♦

      240k66499668




      240k66499668










      asked Mar 7 '17 at 14:38









      Jon A

      112




      112




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          The method you're using of assigning an alias IP address bond0:0 is considered deprecated at this point with Linux kernels.



          IP-Aliasing:
          ============

          IP-aliases are an obsolete way to manage multiple IP-addresses/masks
          per interface. Newer tools such as iproute2 support multiple
          address/prefixes per interface, but aliases are still supported
          for backwards compatibility.

          An alias is formed by adding a colon and a string when running ifconfig.
          This string is usually numeric, but this is not a must.


          The correct syntax for deleting/downing an alias is to use ifconfig like so:



          $ ifconfig bond0:0 down


          I suspect you'd be able to do the same with iproute2's ip command as well:



          $ ip link set bond0:0 down




          share




















            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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f349744%2fifdown-bond00-takes-down-bond0-with-it%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            The method you're using of assigning an alias IP address bond0:0 is considered deprecated at this point with Linux kernels.



            IP-Aliasing:
            ============

            IP-aliases are an obsolete way to manage multiple IP-addresses/masks
            per interface. Newer tools such as iproute2 support multiple
            address/prefixes per interface, but aliases are still supported
            for backwards compatibility.

            An alias is formed by adding a colon and a string when running ifconfig.
            This string is usually numeric, but this is not a must.


            The correct syntax for deleting/downing an alias is to use ifconfig like so:



            $ ifconfig bond0:0 down


            I suspect you'd be able to do the same with iproute2's ip command as well:



            $ ip link set bond0:0 down




            share
























              up vote
              0
              down vote













              The method you're using of assigning an alias IP address bond0:0 is considered deprecated at this point with Linux kernels.



              IP-Aliasing:
              ============

              IP-aliases are an obsolete way to manage multiple IP-addresses/masks
              per interface. Newer tools such as iproute2 support multiple
              address/prefixes per interface, but aliases are still supported
              for backwards compatibility.

              An alias is formed by adding a colon and a string when running ifconfig.
              This string is usually numeric, but this is not a must.


              The correct syntax for deleting/downing an alias is to use ifconfig like so:



              $ ifconfig bond0:0 down


              I suspect you'd be able to do the same with iproute2's ip command as well:



              $ ip link set bond0:0 down




              share






















                up vote
                0
                down vote










                up vote
                0
                down vote









                The method you're using of assigning an alias IP address bond0:0 is considered deprecated at this point with Linux kernels.



                IP-Aliasing:
                ============

                IP-aliases are an obsolete way to manage multiple IP-addresses/masks
                per interface. Newer tools such as iproute2 support multiple
                address/prefixes per interface, but aliases are still supported
                for backwards compatibility.

                An alias is formed by adding a colon and a string when running ifconfig.
                This string is usually numeric, but this is not a must.


                The correct syntax for deleting/downing an alias is to use ifconfig like so:



                $ ifconfig bond0:0 down


                I suspect you'd be able to do the same with iproute2's ip command as well:



                $ ip link set bond0:0 down




                share












                The method you're using of assigning an alias IP address bond0:0 is considered deprecated at this point with Linux kernels.



                IP-Aliasing:
                ============

                IP-aliases are an obsolete way to manage multiple IP-addresses/masks
                per interface. Newer tools such as iproute2 support multiple
                address/prefixes per interface, but aliases are still supported
                for backwards compatibility.

                An alias is formed by adding a colon and a string when running ifconfig.
                This string is usually numeric, but this is not a must.


                The correct syntax for deleting/downing an alias is to use ifconfig like so:



                $ ifconfig bond0:0 down


                I suspect you'd be able to do the same with iproute2's ip command as well:



                $ ip link set bond0:0 down





                share











                share


                share










                answered 6 mins ago









                slm♦

                240k66499668




                240k66499668



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f349744%2fifdown-bond00-takes-down-bond0-with-it%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Christian Cage

                    How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?