{"id":568222,"date":"2023-03-31T18:00:41","date_gmt":"2023-03-31T15:00:41","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-permanently-change-your-mac-address-on-linux\/"},"modified":"2023-03-31T18:00:41","modified_gmt":"2023-03-31T15:00:41","slug":"how-to-permanently-change-your-mac-address-on-linux","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-permanently-change-your-mac-address-on-linux\/","title":{"rendered":"#How to Permanently Change Your MAC Address on Linux"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a3ce82a19143\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a3ce82a19143\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-permanently-change-your-mac-address-on-linux\/#What_Is_a_MAC_Address\" >What Is a MAC Address?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-permanently-change-your-mac-address-on-linux\/#Finding_Your_MAC_Address\" >Finding Your MAC Address<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-permanently-change-your-mac-address-on-linux\/#Use_macchanger_to_Change_Your_Linux_MAC_Address\" >Use macchanger to Change Your Linux MAC Address<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-permanently-change-your-mac-address-on-linux\/#Installing_macchanger\" >Installing macchanger<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-permanently-change-your-mac-address-on-linux\/#Using_macchanger_to_Temporarily_Change_a_MAC_Address\" >Using macchanger to Temporarily Change a MAC Address<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-permanently-change-your-mac-address-on-linux\/#How_to_Permanently_Change_a_MAC_Address\" >How to Permanently Change a MAC Address<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-permanently-change-your-mac-address-on-linux\/#Permanently_Changing_a_MAC_Address_with_GNOME\" >Permanently Changing a MAC Address with GNOME<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-permanently-change-your-mac-address-on-linux\/#Be_Careful\" >Be Careful!<\/a><\/li><\/ul><\/nav><\/div>\n<div>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage size-full wp-image-872362\" data-pagespeed-no-defer=\"\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/02\/fatmawati-achmad-zaenuri-321627716.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Linux laptop showing a terminal window with a globe pattern inthe background and a binary watermark\" width=\"1920\" height=\"1080\"\/><figcaption class=\"wp-caption-text\"><span class=\"type:primaryImage imagecredit\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.shutterstock.com\/image-vector\/linux-interface-screen-notebook-world-map-321627716\">fatmawati achmad zaenuri\/Shutterstock<\/a><\/span><\/figcaption><\/figure>\n<p>You can set a permanent new MAC address in the terminal using the macchanger utility and a systemctl unit file. Or in GNOME, go to Settings &gt; Wi-Fi [or Network] &gt; Identity, and enter a custom MAC address.<\/p>\n<p>Every network interface has a unique MAC address, set by the manufacturer. It\u2019s how network connections identify connection endpoints. On Linux, you can permanently change a MAC address if you want.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"What_Is_a_MAC_Address\"><\/span>What Is a MAC Address?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/764868\/what-is-a-mac-address-and-how-does-it-work\/\">A MAC address is a unique code used to identify by networks to identify devices as connection endpoints. It answers the critical question of \u201cwho\u2019s who\u201d among network interfaces.<\/p>\n<p>Every piece of network equipment has at least one network interface built into it. A desktop computer or a server may have multiple network cards installed in them. Many laptops are supplied with a CAT5 network socket and a Wi-Fi card, giving you two network interfaces straight out of the box.<\/p>\n<p>Every network interface has a unique, baked-in identifier. Regardless of the network protocol that is used to communicate with that device, at the lowest level, the connection is identified by its\u00a0<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/MAC_address\">media access control<\/a>, or MAC, address. That\u2019s why they have to be unique. Making your network interface use a different MAC address is called\u00a0<em>spoofing<\/em>.<\/p>\n<p>A MAC address is made up of six hexadecimal numbers. They\u2019re written with a colon \u201c:\u201d or a hyphen \u201c-\u201d between each of the six numbers. Here\u2019s a MAC address from one of our test computers.<\/p>\n<pre>b0:c0:90:58:b0:72<\/pre>\n<p>Most often, the first three numbers are an\u00a0<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Organizationally_unique_identifier\">organizationally unique identifier<\/a>, representing the hardware manufacturer. You can decode the OUI using the\u00a0<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.wireshark.org\/tools\/oui-lookup.html#\">Wireshark Manufacturer Lookup page<\/a>. Note that this may be the manufacturer of your computer\u2019s motherboard, network card, or Wi-Fi card. Manufacturers buy in many of the components of their computers and assemble them into the finished item, so don\u2019t be surprised if it is different than the manufacturer of your computer.<\/p>\n<p>Because MAC addresses are built-in, you can\u2019t really change them. What you can do is configure your Linux system so that it\u00a0<em>pretends<\/em>\u00a0to have a different MAC address. As far as any other device on the network is concerned, the MAC address of your computer is the one it broadcasts, so the end result is the same.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Finding_Your_MAC_Address\"><\/span>Finding Your MAC Address<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To find out your current MAC Address, you can use <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/657911\/how-to-use-the-ip-command-on-linux\/\">the <code>ip<\/code> command\u00a0with the <code>link<\/code> object. This will list your network interfaces, whether they are in use or disconnected the network.<\/p>\n<pre>ip link<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881335\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/00.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Using the ip link command to discover the MAC addresses of a computer\" width=\"653\" height=\"270\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>This computer is a laptop with an active Wi-Fi connection, <code>wlan0<\/code> , and a wired Ethernet connection, <code>enp3s0<\/code> . The wired connection isn\u2019t plugged in, so it is inactive. The laptop also has the default loopback connection, <code>lo<\/code>, configured.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Use the ip Command on Linux<\/em><\/strong><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Use_macchanger_to_Change_Your_Linux_MAC_Address\"><\/span>Use macchanger to Change Your Linux MAC Address<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The <code>macchanger<\/code> utility allows you to change the MAC address of a network interface with flexible options. You can set a specific MAC address or use a random MAC address. You can also get a new MAC address that uses the same three OUI bytes as your hardware, so that the network interface manufacturer stays the same.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Installing_macchanger\"><\/span><a rel=\"nofollow noopener\" target=\"_blank\" name=\"autotoc_anchor_3\">Installing macchanger<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To install <code>macchanger<\/code> on Ubuntu, use this command:<\/p>\n<pre>sudo apt install macchanger<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881336\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/1-3.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Installing macchanger on Ubuntu\" width=\"724\" height=\"55\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To install <code>macchanger<\/code> on Fedora, you need to type:<\/p>\n<pre>sudo dnf install macchanger<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881337\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/2-2.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Installing macchanger on Fedora\" width=\"724\" height=\"55\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>On Manjaro, the command is:<\/p>\n<pre>sudo pacman -S macchanger<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881338\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/3-1.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Installing macchanger on Manjaro\" width=\"724\" height=\"55\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Depending on the version of <code>macchanger<\/code> that is in your distribution\u2019s repositories, you may see a screen asking you whether you want to have a new MAC address created every time a network connection is brought online. That is, when you connect an <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/807220\/best-ethernet-cable\/\">Ethernet cable or enable Wi-Fi.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881339\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/4-1.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The macchanger installation options screen\" width=\"720\" height=\"274\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Use the arrow keys to move the highlight to the option you wish to use, and press \u201cEnter.\u201d<\/p>\n<p>There is some convenience to this method, but we\u2019re going to select \u201cNo\u201d. We want to have some control over the MAC addresses we\u2019re using. Also, you may not want to change the MAC address on every network interface that your computer has. Perhaps you only want to change it on your Wi-Fi card, for example.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Using_macchanger_to_Temporarily_Change_a_MAC_Address\"><\/span>Using macchanger to Temporarily Change a MAC Address<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can\u2019t reset the MAC address on a network interface that is in use. We can change the MAC address of our Ethernet connection because it isn\u2019t connected, so it is inactive.<\/p>\n<p>The <code>-r<\/code> (random) option generates a completely random MAC address. We need to pass the name of the network interface we want to set the MAC address on.<\/p>\n<pre>sudo macchanger -r enp3s0<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881340\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/5-1.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Setting a random MAC address with macchanger\" width=\"653\" height=\"130\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The MAC address that was in use was the same as the underlying hardware MAC address, or permanent MAC address. The new MAC address is shown at the bottom.<\/p>\n<p>We can change the Wi-Fi card\u2019s MAC address too, if we bring down the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/804785\/best-wi-fi-adapter\/\">Wi-Fi adapter, change the MAC address, then enable the Wi-Fi adapter.<\/p>\n<pre>sudo networkctl down wlan0<\/pre>\n<pre>sudo macchanger -r wlan0<\/pre>\n<pre>sudo networkctl up wlan0<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881341\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/6.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Disabling and enabling a Wi-Fi connection to allow its MAC address to be changed using machanger\" width=\"653\" height=\"170\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you don\u2019t want a random MAC address, you can use the <code>-m<\/code> (MAC address option) and specify a MAC address in colon \u201c:\u201d format, in lowercase hexadecimal.<\/p>\n<pre>sudo macchanger -m ae:f9:9b:31:40:c0 enp3s0<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881342\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/7.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Setting a specific MAC address with macchanger\" width=\"653\" height=\"130\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Set a Static IP Address in Ubuntu<\/em><\/strong><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_to_Permanently_Change_a_MAC_Address\"><\/span>How to Permanently Change a MAC Address<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>That\u2019s all nice and simple, but it doesn\u2019t survive a reboot.<\/p>\n<p>We can achieve that however, by using a <code>systemd<\/code> unit file. We\u2019ll get <code>macchanger<\/code> to give our laptop new MAC addresses for its <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/804793\/what-is-ethernet\/\">Ethernet and Wi-Fi interfaces each time it boots.<\/p>\n<p>We\u2019re going to use the <code>-e<\/code> (ending) option so that the MAC address is changed but the three OUI bytes remain the same.<\/p>\n<p>That means our spoofed MAC address will appear to belong to hardware manufactured by the same companies that made our actual Ethernet and Wi-Fi hardware. This will avoid problems with any routers, firewalls, or switches that reject packets that don\u2019t come from hardware with a recognized manufacturer.<\/p>\n<p>We\u2019re going to create two services. There\u2019ll be one for the Ethernet connection, and one for the Wi-Fi connection. A single unit file will act as a template for each service.<\/p>\n<p>To create our unit file, we need to use <code>sudo<\/code>\u00a0and edit a file with the base name we want our services to have. The at sign \u201c@\u201d sign in the file name is replaced by the name of the network connection when the service is launched, as we\u2019ll see.<\/p>\n<p>We\u2019re calling our unit file \u201cmacspoof@.service\u201d because it spoofs MAC addresses.<\/p>\n<pre>sudo gedit \/etc\/systemd\/system\/macspoof@.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881343\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/8.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Launching an editor to create a systemd unit file\" width=\"653\" height=\"55\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Copy this text into your unit file, save your file, and close your editor.<\/p>\n<pre>[Unit]&#13;\nDescription=Spoofing MAC address on %I&#13;\nWants=network-pre.target&#13;\nBefore=network-pre.target&#13;\nBindsTo=sys-subsystem-net-devices-%i.device&#13;\nAfter=sys-subsystem-net-devices-%i.device&#13;\n&#13;\n[Service]&#13;\nExecStart=\/usr\/bin\/macchanger -e %I&#13;\nType=oneshot&#13;\n&#13;\n[Install]&#13;\nWantedBy=multi-user.target<\/pre>\n<p>We need to create a service for each of our connections. We do this by adding the name of the network interface behind the at sign \u201c@\u201d in the unit name. We\u2019ll do our Ethernet connection first:<\/p>\n<pre>sudo systemctl enable macspoof@enp3s0.service<\/pre>\n<p>And we\u2019ll do the same thing for our Wi-Fi connection.<\/p>\n<pre>sudo systemctl enable macspoof@wlan0.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881345\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/9.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Enabling the two services to change MAC addresses at boot time\" width=\"653\" height=\"170\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>After rebooting our laptop, we can use <code>macchanger<\/code> to see what our current MAC addresses are. Note we don\u2019t need to use <code>sudo<\/code> because we\u2019re only using <code>macchanger<\/code> to report on the MAC address settings, and not to change them.<\/p>\n<pre>macchanger enp3s0<\/pre>\n<pre>macchanger wlan0<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881346\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/10.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Using macchanger to show the current MAC addresses for the Ethernet and Wi-Fi connections\" width=\"653\" height=\"170\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>This shows us the currently active, spoofed, MAC addresses on our two network interfaces, and their original MAC addresses.<\/p>\n<p>Because we used the <code>-e<\/code> (ending) option in our unit file, the first three bytes of the spoofed addresses are the same as the first three bytes of the original MAC addresses.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Permanently_Changing_a_MAC_Address_with_GNOME\"><\/span>Permanently Changing a MAC Address with GNOME<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Most desktop environments allow you to set a new MAC address. In <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/808226\/what-is-gnome-in-linux\/\">GNOME you can do this by opening \u201cSettings\u201d and selecting either \u201cWi-Fi\u201d or \u201cNetwork\u201d from the sidebar.<\/p>\n<p>Click the cogged wheel icon next to the connection you wish to set a MAC address for, and select the \u201cIdentity\u201d tab.<\/p>\n<p>You can enter a new MAC address in the \u201cMAC Address\u201d field, or select the genuine MAC address from the drop-down menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-881347\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/03\/11.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The GNOME network connection Identity tab in the Settings application\" width=\"628\" height=\"355\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The \u201cCloned Address\u201d drop-down menu lets you select from:<\/p>\n<ul>\n<li><strong>Preserve<\/strong>: Keep the MAC address at boot-time. Don\u2019t change from the set MAC address.<\/li>\n<li><strong>Permanent<\/strong>: Use the genuine hardware MAC address.<\/li>\n<li><strong>Random<\/strong>: Generate a random MAC address.<\/li>\n<li><strong>Stable<\/strong>: Generate a stable, hashed MAC address. Every time the connection activates, the same fake MAC address is used. This can be useful in cases where you want to hide your hardware MAC address, but you need to get the same IP address from a DHCP router.<\/li>\n<\/ul>\n<p>Your changes will take place when you reboot, or turn the connection off and on again.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Be_Careful\"><\/span><a rel=\"nofollow noopener\" target=\"_blank\" name=\"autotoc_anchor_7\">Be Careful!<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Changing your MAC address isn\u2019t illegal, so long as you don\u2019t do it to impersonate someone else\u2019s network device. Your jurisdiction will probably have laws in place to deal with unlawfully receiving network traffic. For example, the UK has the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.legislation.gov.uk\/ukpga\/1990\/18\/contents\">Computer Misuse Act<\/a> and the U.S. has the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.nacdl.org\/Landing\/ComputerFraudandAbuseAct\">Computer Fraud and Abuse Act<\/a>.<\/p>\n<p>Become anonymous by all means, but don\u2019t pretend to be someone else.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Use bmon to Monitor Network Bandwidth on Linux<\/em><\/strong><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/880124\/how-to-permanently-change-your-mac-address-on-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>fatmawati achmad zaenuri\/Shutterstock You can set a permanent new MAC address in the terminal using the macchanger utility and a systemctl unit file. Or in GNOME, go to Settings &gt; Wi-Fi [or Network] &gt; Identity, and enter a custom MAC address. Every network interface has a unique MAC address, set by the manufacturer. It\u2019s how&#8230;<\/p>\n","protected":false},"author":1,"featured_media":568223,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2023\/02\/fatmawati-achmad-zaenuri-321627716.png?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-568222","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/568222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=568222"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/568222\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/568223"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=568222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=568222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=568222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}