Netplan not spoofing MAC as expectedSetting up Windows network on XenPort foreword + openVPN + iptables?Configure static IPv6 on UbuntuStatic virtual IP in debian 6.0.4KVM/Libvirt bridged/routed networking not working on newer guest kernelssome nodes in a cluster has higher frame value in ifconfigVirtual interface gets static IP, actual interface doesn't?KVM Network configuration + VLAN truncktcpdump on bridge interface (virbr) does not receive any packets destined for one of its addressesStatic Public IP Address on Amazon EC2

Can I use 220 V outlets on a 15 ampere breaker and wire it up as 110 V?

What is the STRONGEST end-of-line knot to use if you want to use a steel-thimble at the end, so that you've got a steel-eyelet at the end of the line?

What do I need to do, tax-wise, for a sudden windfall?

What would the consequences be of a high number of solar systems being within close proximity to one another?

Forgot passport for Alaska cruise (Anchorage to Vancouver)

As easy as Three, Two, One... How fast can you go from Five to Four?

How to Handle Many Times Series Simultaneously?

Should I explain the reasons for gaslighting?

Finding diameter of a circle using two chords and angle between them

Should I be able to use the Gloom Stalker ranger's Dread Ambusher class feature when attacking before initiative has been rolled to add a d8 damage?

What is this object?

Nth term of Van Eck Sequence

Recording Spectral Lines at Home

Does a single fopen introduce TOCTOU vulnerability?

Why is my power MOSFET heating up when on?

Is tuition reimbursement a good idea if you have to stay with the job

Why did the World Bank set the global poverty line at $1.90?

What is the "books received" section in journals?

Quasar Redshifts

Savage Road Signs

How can powerful telekinesis avoid violating Newton's 3rd Law?

How do I type a hyphen in iOS 12?

What is Gilligan's full Name?

Am I allowed to determine tenets of my contract as a warlock?



Netplan not spoofing MAC as expected


Setting up Windows network on XenPort foreword + openVPN + iptables?Configure static IPv6 on UbuntuStatic virtual IP in debian 6.0.4KVM/Libvirt bridged/routed networking not working on newer guest kernelssome nodes in a cluster has higher frame value in ifconfigVirtual interface gets static IP, actual interface doesn't?KVM Network configuration + VLAN truncktcpdump on bridge interface (virbr) does not receive any packets destined for one of its addressesStatic Public IP Address on Amazon EC2






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I'm trying to set a different MAC address on one of my interfaces, but my attempts following the netplan documentation result in no change. This is on Ubuntu 18.04.



network:
ethernets:
enp10s0:
addresses: []
dhcp4: true
optional: true
routes:
- to: 0.0.0.0/0
via: 10.0.0.1
enp5s0:
addresses: []
dhcp4: true
macaddress: aa:bb:cc:ff:ff:ff
optional: true
routes:
- to: 239.0.0.0/8
via: 10.10.0.1
version: 2


After running netplan generate and netplan apply, and also rebooting, there is no change to the macaddress of enp5s0



enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.227 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::7285:c2ff:fe53:119c prefixlen 64 scopeid 0x20<link>
ether 70:85:c2:53:11:9c txqueuelen 1000 (Ethernet)
RX packets 3623 bytes 1557193 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3066 bytes 291335 (291.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp5s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 68:05:ca:61:a8:fc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 34 memory 0xfd4c0000-fd4e0000


What have I missed?










share|improve this question

















  • 1





    What is your renderer?

    – Michael Hampton
    Jul 9 '18 at 0:46











  • What NIC and driver, physical or virtual?

    – John Mahowald
    Jul 9 '18 at 12:49

















1















I'm trying to set a different MAC address on one of my interfaces, but my attempts following the netplan documentation result in no change. This is on Ubuntu 18.04.



network:
ethernets:
enp10s0:
addresses: []
dhcp4: true
optional: true
routes:
- to: 0.0.0.0/0
via: 10.0.0.1
enp5s0:
addresses: []
dhcp4: true
macaddress: aa:bb:cc:ff:ff:ff
optional: true
routes:
- to: 239.0.0.0/8
via: 10.10.0.1
version: 2


After running netplan generate and netplan apply, and also rebooting, there is no change to the macaddress of enp5s0



enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.227 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::7285:c2ff:fe53:119c prefixlen 64 scopeid 0x20<link>
ether 70:85:c2:53:11:9c txqueuelen 1000 (Ethernet)
RX packets 3623 bytes 1557193 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3066 bytes 291335 (291.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp5s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 68:05:ca:61:a8:fc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 34 memory 0xfd4c0000-fd4e0000


What have I missed?










share|improve this question

















  • 1





    What is your renderer?

    – Michael Hampton
    Jul 9 '18 at 0:46











  • What NIC and driver, physical or virtual?

    – John Mahowald
    Jul 9 '18 at 12:49













1












1








1


1






I'm trying to set a different MAC address on one of my interfaces, but my attempts following the netplan documentation result in no change. This is on Ubuntu 18.04.



network:
ethernets:
enp10s0:
addresses: []
dhcp4: true
optional: true
routes:
- to: 0.0.0.0/0
via: 10.0.0.1
enp5s0:
addresses: []
dhcp4: true
macaddress: aa:bb:cc:ff:ff:ff
optional: true
routes:
- to: 239.0.0.0/8
via: 10.10.0.1
version: 2


After running netplan generate and netplan apply, and also rebooting, there is no change to the macaddress of enp5s0



enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.227 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::7285:c2ff:fe53:119c prefixlen 64 scopeid 0x20<link>
ether 70:85:c2:53:11:9c txqueuelen 1000 (Ethernet)
RX packets 3623 bytes 1557193 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3066 bytes 291335 (291.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp5s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 68:05:ca:61:a8:fc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 34 memory 0xfd4c0000-fd4e0000


What have I missed?










share|improve this question














I'm trying to set a different MAC address on one of my interfaces, but my attempts following the netplan documentation result in no change. This is on Ubuntu 18.04.



network:
ethernets:
enp10s0:
addresses: []
dhcp4: true
optional: true
routes:
- to: 0.0.0.0/0
via: 10.0.0.1
enp5s0:
addresses: []
dhcp4: true
macaddress: aa:bb:cc:ff:ff:ff
optional: true
routes:
- to: 239.0.0.0/8
via: 10.10.0.1
version: 2


After running netplan generate and netplan apply, and also rebooting, there is no change to the macaddress of enp5s0



enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.227 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::7285:c2ff:fe53:119c prefixlen 64 scopeid 0x20<link>
ether 70:85:c2:53:11:9c txqueuelen 1000 (Ethernet)
RX packets 3623 bytes 1557193 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3066 bytes 291335 (291.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp5s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 68:05:ca:61:a8:fc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 34 memory 0xfd4c0000-fd4e0000


What have I missed?







ubuntu networking ubuntu-18.04






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 8 '18 at 18:43









John MoffittJohn Moffitt

1162




1162







  • 1





    What is your renderer?

    – Michael Hampton
    Jul 9 '18 at 0:46











  • What NIC and driver, physical or virtual?

    – John Mahowald
    Jul 9 '18 at 12:49












  • 1





    What is your renderer?

    – Michael Hampton
    Jul 9 '18 at 0:46











  • What NIC and driver, physical or virtual?

    – John Mahowald
    Jul 9 '18 at 12:49







1




1





What is your renderer?

– Michael Hampton
Jul 9 '18 at 0:46





What is your renderer?

– Michael Hampton
Jul 9 '18 at 0:46













What NIC and driver, physical or virtual?

– John Mahowald
Jul 9 '18 at 12:49





What NIC and driver, physical or virtual?

– John Mahowald
Jul 9 '18 at 12:49










3 Answers
3






active

oldest

votes


















1














I believe it only changes the MAC address that gets reported to the external connection. Running ifconfig locally will always give you the interface's real MAC address.






share|improve this answer






























    1














    All right, I had the same problem but I finally got fixed by adding a match keyword in my script, my MAC address was 4c:ed:fe:32:de:22 and I had to specify it before changing it or forcing it. (I also added a renderer which is networkd)



    network:
    renderer: networkd
    ethernets:
    eno1:
    addresses: []
    dhcp4: true
    optional: true
    enp1s0:
    match:
    macaddress: 4c:ed:fe:32:de:22
    macaddress: de:de:de:de:de:de
    dhcp4: no
    dhcp6: no
    addresses: [172.30.0.58/24, ]
    gateway4: 172.30.0.254
    nameservers:
    addresses: [208.67.222.222, 208.67.220.220]
    version: 2


    I sincerely hope this helps you buddy :)






    share|improve this answer






























      1














      I had the same problem that Netplan didn't override the MAC address on Ubuntu Server 18.04, although I used a match clause as described in the netplan reference before setting the new MAC address.



      The workaround was to create a separate systemd link configuration under /etc/systemd/network/10-override-mac.link to override the MAC address of the NIC and configure the rest via netplan.



      [Match]
      MacAddress=52:54:00:6b:3c:58

      [Link]
      MACAddress=52:54:00:6b:3c:59





      share|improve this answer

























        Your Answer








        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "2"
        ;
        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',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        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%2fserverfault.com%2fquestions%2f920020%2fnetplan-not-spoofing-mac-as-expected%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1














        I believe it only changes the MAC address that gets reported to the external connection. Running ifconfig locally will always give you the interface's real MAC address.






        share|improve this answer



























          1














          I believe it only changes the MAC address that gets reported to the external connection. Running ifconfig locally will always give you the interface's real MAC address.






          share|improve this answer

























            1












            1








            1







            I believe it only changes the MAC address that gets reported to the external connection. Running ifconfig locally will always give you the interface's real MAC address.






            share|improve this answer













            I believe it only changes the MAC address that gets reported to the external connection. Running ifconfig locally will always give you the interface's real MAC address.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 9 '18 at 8:02









            ColdColdColdCold

            1112




            1112























                1














                All right, I had the same problem but I finally got fixed by adding a match keyword in my script, my MAC address was 4c:ed:fe:32:de:22 and I had to specify it before changing it or forcing it. (I also added a renderer which is networkd)



                network:
                renderer: networkd
                ethernets:
                eno1:
                addresses: []
                dhcp4: true
                optional: true
                enp1s0:
                match:
                macaddress: 4c:ed:fe:32:de:22
                macaddress: de:de:de:de:de:de
                dhcp4: no
                dhcp6: no
                addresses: [172.30.0.58/24, ]
                gateway4: 172.30.0.254
                nameservers:
                addresses: [208.67.222.222, 208.67.220.220]
                version: 2


                I sincerely hope this helps you buddy :)






                share|improve this answer



























                  1














                  All right, I had the same problem but I finally got fixed by adding a match keyword in my script, my MAC address was 4c:ed:fe:32:de:22 and I had to specify it before changing it or forcing it. (I also added a renderer which is networkd)



                  network:
                  renderer: networkd
                  ethernets:
                  eno1:
                  addresses: []
                  dhcp4: true
                  optional: true
                  enp1s0:
                  match:
                  macaddress: 4c:ed:fe:32:de:22
                  macaddress: de:de:de:de:de:de
                  dhcp4: no
                  dhcp6: no
                  addresses: [172.30.0.58/24, ]
                  gateway4: 172.30.0.254
                  nameservers:
                  addresses: [208.67.222.222, 208.67.220.220]
                  version: 2


                  I sincerely hope this helps you buddy :)






                  share|improve this answer

























                    1












                    1








                    1







                    All right, I had the same problem but I finally got fixed by adding a match keyword in my script, my MAC address was 4c:ed:fe:32:de:22 and I had to specify it before changing it or forcing it. (I also added a renderer which is networkd)



                    network:
                    renderer: networkd
                    ethernets:
                    eno1:
                    addresses: []
                    dhcp4: true
                    optional: true
                    enp1s0:
                    match:
                    macaddress: 4c:ed:fe:32:de:22
                    macaddress: de:de:de:de:de:de
                    dhcp4: no
                    dhcp6: no
                    addresses: [172.30.0.58/24, ]
                    gateway4: 172.30.0.254
                    nameservers:
                    addresses: [208.67.222.222, 208.67.220.220]
                    version: 2


                    I sincerely hope this helps you buddy :)






                    share|improve this answer













                    All right, I had the same problem but I finally got fixed by adding a match keyword in my script, my MAC address was 4c:ed:fe:32:de:22 and I had to specify it before changing it or forcing it. (I also added a renderer which is networkd)



                    network:
                    renderer: networkd
                    ethernets:
                    eno1:
                    addresses: []
                    dhcp4: true
                    optional: true
                    enp1s0:
                    match:
                    macaddress: 4c:ed:fe:32:de:22
                    macaddress: de:de:de:de:de:de
                    dhcp4: no
                    dhcp6: no
                    addresses: [172.30.0.58/24, ]
                    gateway4: 172.30.0.254
                    nameservers:
                    addresses: [208.67.222.222, 208.67.220.220]
                    version: 2


                    I sincerely hope this helps you buddy :)







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 21 at 2:31









                    XedretXedret

                    1113




                    1113





















                        1














                        I had the same problem that Netplan didn't override the MAC address on Ubuntu Server 18.04, although I used a match clause as described in the netplan reference before setting the new MAC address.



                        The workaround was to create a separate systemd link configuration under /etc/systemd/network/10-override-mac.link to override the MAC address of the NIC and configure the rest via netplan.



                        [Match]
                        MacAddress=52:54:00:6b:3c:58

                        [Link]
                        MACAddress=52:54:00:6b:3c:59





                        share|improve this answer





























                          1














                          I had the same problem that Netplan didn't override the MAC address on Ubuntu Server 18.04, although I used a match clause as described in the netplan reference before setting the new MAC address.



                          The workaround was to create a separate systemd link configuration under /etc/systemd/network/10-override-mac.link to override the MAC address of the NIC and configure the rest via netplan.



                          [Match]
                          MacAddress=52:54:00:6b:3c:58

                          [Link]
                          MACAddress=52:54:00:6b:3c:59





                          share|improve this answer



























                            1












                            1








                            1







                            I had the same problem that Netplan didn't override the MAC address on Ubuntu Server 18.04, although I used a match clause as described in the netplan reference before setting the new MAC address.



                            The workaround was to create a separate systemd link configuration under /etc/systemd/network/10-override-mac.link to override the MAC address of the NIC and configure the rest via netplan.



                            [Match]
                            MacAddress=52:54:00:6b:3c:58

                            [Link]
                            MACAddress=52:54:00:6b:3c:59





                            share|improve this answer















                            I had the same problem that Netplan didn't override the MAC address on Ubuntu Server 18.04, although I used a match clause as described in the netplan reference before setting the new MAC address.



                            The workaround was to create a separate systemd link configuration under /etc/systemd/network/10-override-mac.link to override the MAC address of the NIC and configure the rest via netplan.



                            [Match]
                            MacAddress=52:54:00:6b:3c:58

                            [Link]
                            MACAddress=52:54:00:6b:3c:59






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited May 28 at 19:18

























                            answered May 28 at 7:12









                            iY1NQiY1NQ

                            112




                            112



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Server Fault!


                                • 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%2fserverfault.com%2fquestions%2f920020%2fnetplan-not-spoofing-mac-as-expected%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

                                Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                                Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                                What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company