How can I change the MAC of outgoing ARP requests?

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











up vote
4
down vote

favorite












Is it possible to change the source MAC of all the outgoing ARP requests to a specific MAC instead of using the interface MAC in linux?



Is there a way to do this from the ARP tables?










share|improve this question



























    up vote
    4
    down vote

    favorite












    Is it possible to change the source MAC of all the outgoing ARP requests to a specific MAC instead of using the interface MAC in linux?



    Is there a way to do this from the ARP tables?










    share|improve this question

























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      Is it possible to change the source MAC of all the outgoing ARP requests to a specific MAC instead of using the interface MAC in linux?



      Is there a way to do this from the ARP tables?










      share|improve this question















      Is it possible to change the source MAC of all the outgoing ARP requests to a specific MAC instead of using the interface MAC in linux?



      Is there a way to do this from the ARP tables?







      linux arp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 25 '17 at 7:22









      dr01

      15.4k114769




      15.4k114769










      asked Sep 25 '17 at 5:54









      Aks

      211




      211




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          6
          down vote













          Yes, this can be achieved by adding rules by arptables.



          Use this rule:



          arptables -A OUT --source-hw xx:xx:xx:xx:xx:xx -j mangle --mangle-hw-s yy:yy:yy:yy:yy:yy


          You may also add more filtering options if you need example interface, subnet etc.



          For more information, refer to the man page.






          share|improve this answer






















            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%2f394243%2fhow-can-i-change-the-mac-of-outgoing-arp-requests%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
            6
            down vote













            Yes, this can be achieved by adding rules by arptables.



            Use this rule:



            arptables -A OUT --source-hw xx:xx:xx:xx:xx:xx -j mangle --mangle-hw-s yy:yy:yy:yy:yy:yy


            You may also add more filtering options if you need example interface, subnet etc.



            For more information, refer to the man page.






            share|improve this answer


























              up vote
              6
              down vote













              Yes, this can be achieved by adding rules by arptables.



              Use this rule:



              arptables -A OUT --source-hw xx:xx:xx:xx:xx:xx -j mangle --mangle-hw-s yy:yy:yy:yy:yy:yy


              You may also add more filtering options if you need example interface, subnet etc.



              For more information, refer to the man page.






              share|improve this answer
























                up vote
                6
                down vote










                up vote
                6
                down vote









                Yes, this can be achieved by adding rules by arptables.



                Use this rule:



                arptables -A OUT --source-hw xx:xx:xx:xx:xx:xx -j mangle --mangle-hw-s yy:yy:yy:yy:yy:yy


                You may also add more filtering options if you need example interface, subnet etc.



                For more information, refer to the man page.






                share|improve this answer














                Yes, this can be achieved by adding rules by arptables.



                Use this rule:



                arptables -A OUT --source-hw xx:xx:xx:xx:xx:xx -j mangle --mangle-hw-s yy:yy:yy:yy:yy:yy


                You may also add more filtering options if you need example interface, subnet etc.



                For more information, refer to the man page.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 25 '17 at 7:23









                dr01

                15.4k114769




                15.4k114769










                answered Sep 25 '17 at 6:28









                enZyme

                31114




                31114



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394243%2fhow-can-i-change-the-mac-of-outgoing-arp-requests%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?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?