Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 766 Bytes

randomize-mac-address-on-linux.md

File metadata and controls

47 lines (36 loc) · 766 Bytes

How to randomize your MAC address on a Linux machine

  1. Do a web search with duckduckgo for "generate mac address"

  2. Note the MAC address

  3. Open the ternminal

  4. Get a root shell

sudo -i
  1. Get the device name
ip link show
  1. Note device name (ex: enp0s25)

  2. Clear the device record (may be optional)

ip link set dev DEVICENAMEHERE
  1. Set the new MAC address
ip link set dev DEVICENAMEHERE address NEWMACADDRESSHERE
  1. Restart the device, applying the new MAC address
ip link set dev DEVICENAMEHERE up
  1. Verify that the MAC has changed
ip link show
  1. Close the root terminal
logout