{"id":112,"date":"2022-07-01T10:45:58","date_gmt":"2022-07-01T14:45:58","guid":{"rendered":"http:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/?p=112"},"modified":"2024-10-11T09:33:42","modified_gmt":"2024-10-11T13:33:42","slug":"raspberry-pi-changes-wi-fi-mac-address-on-boot","status":"publish","type":"post","link":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/?p=112","title":{"rendered":"Raspberry Pi changes Wi-Fi MAC address on boot"},"content":{"rendered":"\n<p>This is a new security feature in Network Manager.<\/p>\n\n\n\n<p>Disable the MAC address randomization by creating the file<\/p>\n\n\n\n<p>\/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf<\/p>\n\n\n\n<p>with the content:<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>[connection]<br>wifi.mac-address-randomization=1<\/p>\n\n\n\n<p>[device]<br>wifi.scan-rand-mac-address=no<\/p>\n<\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>or:<\/p>\n\n\n\n<p><code>mv \/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf \/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf.bak<\/code><\/p>\n\n\n\n<p><code>echo \"[connection]\" >\/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf<\/code><\/p>\n\n\n\n<p><code>echo \"wifi.mac-address-randomization=1\" >>\/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf<\/code><\/p>\n\n\n\n<p><code>echo -e \"\\n[device]\" >>\/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf<\/code><\/p>\n\n\n\n<p><code>echo \"wifi.scan-rand-mac-address=no\\n\" >>\/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Afterwards you may need to update your device&#8217;s MAC in your DHCP server.<\/p>\n\n\n\n<p>Then reboot.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a new security feature in Network Manager. Disable the MAC address randomization by creating the file \/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf with the content: [connection]wifi.mac-address-randomization=1 [device]wifi.scan-rand-mac-address=no or: mv \/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf \/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf.bak echo &#8220;[connection]&#8221; >\/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf echo &#8220;wifi.mac-address-randomization=1&#8221; >>\/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf echo -e &#8220;\\n[device]&#8221; >>\/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf echo &#8220;wifi.scan-rand-mac-address=no\\n&#8221; >>\/etc\/NetworkManager\/conf.d\/100-disable-wifi-mac-randomization.conf Afterwards you may need to update your device&#8217;s MAC in your DHCP server. Then [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=112"}],"version-history":[{"count":4,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}