PDF download Download Article
Easily view and set a new MAC address on your computer
PDF download Download Article

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

Changing an Ubuntu MAC Address: Quick Steps

  1. Open Terminal.
  2. Enter sudo -i followed by your password.
  3. Type ip link set dev [device] down and hit Enter.
  4. Type in ip link set dev [device] address [new MAC address].
  5. Enter ip link set dev [device] up to turn the device back on.
  1. sudo -i and then write your password.
    Advertisement
  2. ip link show
  3. 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
  4. 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
  5. ip link set dev xxxx up, where xxxx is the name of your device
  6. Advertisement

Community Q&A

Search
Add New Question
  • 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.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

  • Changing MAC address will help you for example when admin of your network block your MAC so you can bypass it.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Assign an IP Address on a Linux ComputerAssign an IP Address on a Linux Computer
Change a Computer's Mac Address in Windows3 Ways to Change a Computer's Mac Address in Windows
Change a Mac Address on an AndroidChange a Mac Address on an Android
Find the MAC Address of Your ComputerFind the MAC Address of Your Computer
Acquire a New IP AddressA Step-By-Step Guide to Aquire a New IP Address
Change the IP Address on a Mac Change the IP Address on a Mac: 4 Simple Methods
Add or Change the Default Gateway in LinuxAdd or Change the Default Gateway in Linux
Find Mac Address Windows 114 Quick Ways to Find the MAC Address on Your Windows 11 PC
Find Your Mac Address on Samsung Galaxy Find Your Mac Address on Samsung Galaxy
Change Your IP AddressChange Your IP Address
Find a MAC Address on a NetworkEasy Ways to Find a MAC Address on Your Network or Computer
Enable MAC Address Filtering Set Up MAC Address Filtering on Any Wireless Router
Set up a Network in UbuntuSet up a Network in Ubuntu
Turn Off MAC FilteringTurn Off MAC Filtering
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 131,958 times.
How helpful is this?
Co-authors: 5
Updated: April 11, 2025
Views: 131,958
Categories: Ubuntu | Computer Networking
Thanks to all authors for creating a page that has been read 131,958 times.

Is this article up to date?

Advertisement