This article will help you to change MAC address on Ubuntu using Terminal. It is very easy and simple!

Steps

  1. 1
    Open Terminal.
  2. 2
    Log in as root so type: sudo -i and then write your password.
    Advertisement
  3. 3
    View your current address by typing: ip link show
  4. 4
    Set the device down to avoid problems. Type: "ip link set dev xxxx down" where xxxx is the name of device you want to set down, so for example: ip link set dev wlan0 down
  5. 5
    Change your MAC address. Write into terminal this: ip link set dev xxxx address xx:xx:xx:xx:xx:xx where xxxx is the device and xx:xx:xx:xx:xx:xx is your new MAC address. MAC addresses need hexadecimal digits (0-9 and a-f) which you can pick randomly. The command will look like: ip link set dev wlan0 address 74:d0:3b:9f:d8:48
  6. 6
    Set up your device so type: ip link set dev xxxx up, where xxxx is the name of your device
  7. 7
    Step by step:
  8. Advertisement

Community Q&A

  • Question
    Is this a permanent change or just spoofing?
    Somone
    Somone
    Community Answer
    This will remain unchanged until you change it again.
  • Question
    If I dual boot, will the MAC address remain unchanged after I switch to Windows through restart?
    Community Answer
    Community Answer
    Not necessarily. Every hardware network device (e.g., WiFi card) has its own MAC address. However, sometimes the OS (Windows or Linux) changes the MAC address. It differs from system to system and from configuration to configuration.
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 97,099 times.
How helpful is this?
Co-authors: 4
Updated: October 21, 2021
Views: 97,099
Categories: Ubuntu | Computer Networking
Advertisement