User Tools

Site Tools

diy:change-mac

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
diy:change-mac [2024/06/06 07:25] – [How To Change Your MAC Address] Humphrey Boa-Gartdiy:change-mac [2024/08/06 05:48] (current) – external edit 127.0.0.1
Line 17: Line 17:
 **ifconfig** (short for "interface config") is a command-line network management utility that has been in use on Unix-like systems since 1983. Many alternatives have come and gone, but ifconfig remains the de facto standard on most BSD, MacOS and Linux machines. **ifconfig** (short for "interface config") is a command-line network management utility that has been in use on Unix-like systems since 1983. Many alternatives have come and gone, but ifconfig remains the de facto standard on most BSD, MacOS and Linux machines.
  
-Run ''ifconfig'' to find your network adapter name:+Run ''ifconfig'' in your [[tools:bash|shell]] to find your network adapter name:
  
   $ ifconfig   $ ifconfig
Line 51: Line 51:
 Most of you using Linux will likely have **NetworkManager** installed already. To set-and-forget your machine to automatically generate & provide a **random MAC address** every time you connect to a network, save the following file to ''/etc/NetworkManager/conf.d/'': Most of you using Linux will likely have **NetworkManager** installed already. To set-and-forget your machine to automatically generate & provide a **random MAC address** every time you connect to a network, save the following file to ''/etc/NetworkManager/conf.d/'':
  
-<file conf /etc/NetworkManager/conf.d/random-mac.conf> +<file conf /etc/NetworkManager/conf.d/mac-randomization.conf> 
-############################################################## +######################################################### 
-## RANDOM MAC DROP-IN CONFIGURATION FILE FOR NETWORKMANAGER ## +## DROP-IN CONFIGURATION FILE FOR NETWORKMANAGER:      ## 
-## PROVIDED BY THE ANONYMOUS MILITARY INSTITUTE             ## +##    AUTOMATIC MAC RANDOMIZATION                      ## 
-## HTTPS://BESTPOINT.INSTITUTE/DIY/CHANGE-MAC               ## +## REQUISITIONED FROM THE ANONYMOUS MILITARY INSTITUTE ## 
-##############################################################+##    HTTPS://BESTPOINT.INSTITUTE/DIY/CHANGE-MAC       ## 
 +#########################################################
  
 [device-mac-randomization] [device-mac-randomization]
Line 88: Line 89:
 ===== Windows Instructions ===== ===== Windows Instructions =====
  
-{{wst>expand}}+==== Manually, with PowerShell ==== 
 + 
 +  - Open the **Command Prompt** or [[tools:powershell|PowerShell]] with administrator privileges. 
 +  - Use the ''netsh interface show interface'' command to get a list of network adapters on your system. 
 +  - Identify the network adapter for which you want to change the MAC address. 
 +  - To change the MAC address, use this command: ''netsh interface set interface <adapter namenewmac=<new MAC address>'' 
 +  - Replace ''<adapter name>'' with the name of the network adapter, and ''<new MAC address>'' with the desired MAC address (in the format xx-xx-xx-xx-xx-xx). 
 +  - Press **Enter** to execute the command. 
 +  - Restart your computer for the changes to take effect.
  
 ===== Android Instructions ===== ===== Android Instructions =====
  
-{{ :diy:non-persistent-option.png|}}+[{{ :diy:non-persistent-option.png|Non-persistent MAC randomization can be enabled in Developer Options, without rooting your Android device.}}
 + 
 +Changing your MAC address on Android is an ordeal which traditionally has involved rooting your phone. This isn't so much a problem anymore, as starting with Android 10, MAC address randomization is enabled by default. (You can double-check this if you hit the gear icon for your current wifi network, and look at the **Privacy** setting.)
  
-Starting with Android 10MAC address randomization is enabled by default. (You can double-check this if you hit the gear icon for your current wifi network, and look at the **Privacy** setting.)+However, these randomized MAC addresses are //persistent//, meaning they are generated once for each wireless connection, and saved. Starting with Android 11you can override this behavior, and force it to use //non-persistent// random addresses which constantly regenerate on a regular basis.
  
-However, these randomized MAC addresses are //persistent//, meaning they are generated once for each wireless connection. In Android 11/12, you can override this behavior, and force it to use //non-persistent// addresses:+To set-and-forget this option:
  
   - In **Settings**, go to **System** and then **Developer options**.   - In **Settings**, go to **System** and then **Developer options**.
-    - If **Developer options** is not available, then you must enable developer access first. Under **Settings**, go to **About phone**, and tap on **Build number** a bunch of times until it says you are a developer.+    - If **Developer options** is not available, then you must enable developer access first. 
 +    - Under **Settings**, go to **About phone**, and tap on **Build number** a bunch of times until it says you are a developer.
   - Find the setting **"Wi-Fi non-persistent MAC randomization"** and enable it.   - Find the setting **"Wi-Fi non-persistent MAC randomization"** and enable it.
  
diy/change-mac.1717658722.txt.gz · Last modified: (external edit)

Find this page online at: https://bestpoint.institute/diy/change-mac