- How do I change mac address on Ubuntu 16.10?
- 3 Answers 3
- You must log in to answer this question.
- Related
- Hot Network Questions
- Subscribe to RSS
- How to Change MAC Address on Ubuntu
- Community Q&A
- How to change or spoof a MAC Address in Ubuntu and Linux Mint
- Functioning of Networks
- MAC addresses Usage
- Why you might want to change your MAC address
- View MAC Address
- IP command
- ifconfig
- Changing MAC Address
- Prerequisite
- Changing the MAC address to a random value
- Changing the MAC address to a specific value
- Restore original MAC address
- Conclusion
How do I change mac address on Ubuntu 16.10?
AC68 I can change my mac address on windows with tmac perfectly but on linux I dont see any software with a GUI that can help me, as macchanger doesnt change my mac address it just reverst to the original.
3 Answers 3
- Go to dash, search for Network Connections.
- On Network Connections window select your current connection, then click Edit .
- Navigate to WiFi tab (for WiFi connection) or Ethernet tab (for Wired connection).
- Under Device field, type your desired MAC address on «Cloned MAC Address» field.
NOTE: Change we have applied to MAC Address are temporary, they will be reset after every reboot.
To make this work on my Ubuntu 16.10 machine I had to disable Wi-Fi, then set the «Cloned MAC address» and after pressing «Save» reenable Wi-Fi. Might be a hardware/driver issue (Asus Eee PC 1080HA).
as yu would do on windows you select «settings» from the start menu and there click on «network».
- Go to your network connection
- Right Click network Connection and Choose Edit Connection
- Choose Wireless SSID
- Select Edit Add A USB Wifi Card
- You will have a selection, choose BSSID (USB Wifi Card)
- Choose Device MAC Address
You must log in to answer this question.
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533
Ubuntu and the circle of friends logo are trade marks of Canonical Limited and are used under licence.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
How to Change MAC Address on Ubuntu
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 101,700 times.
This article will help you to change MAC address on Ubuntu using Terminal. It is very easy and simple!
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
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
Community Q&A
Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow
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.
Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow
How to change or spoof a MAC Address in Ubuntu and Linux Mint
C omputer networking is primarily based on IP addresses. To explain the relevance of IP address, we’re going to briefly describe how these networks work with the example of the internet.
Functioning of Networks
When we have a device connected to the internet, and we enter the URL of a website, say ‘www.fosslinux.com,’ what we are doing is asking the internet to search for the server of ‘FOSS Linux,’ and request them to share their data with us. This part of the process is called ‘request.’
Later, the server detects the request and analyzes whether to, or whether not to share the data. If yes, it sends a webpage to the system that requested it, and that is how we can see the homepage of a website. This part is called the ‘response.’ This whole process is repeated again and again with every link we click, and every website we visit.
All well and good. But how does it reach the target server/system? An IP address is a reference that the internet uses to reach a website server or your system. We can use the analogy of a mail letter here. Sending a letter to someone requires an address, and so does posting a reply to that very letter. In that case, it requires the geographical address, while in the case of computers, it requires the IP address.
The IP address, though, only helps data to go as far as the router that the system is connected. After that, the router requires the MAC address of the exact system (that is currently connected to that router) to route the data to that system. That is how you obtain the data on the internet.
MAC addresses Usage
With all that explained, the basic idea is that the MAC address is a unique number or address that can be used to identify your system correctly. Our systems can interact with the networks using network cards of some sort or the other. There are most commonly wireless cards (for Wi-Fi) and ethernet cards (for wired connections). All the network cards in the world have a unique MAC address.
Why you might want to change your MAC address
View MAC Address
To view the MAC address on your system, we will describe two commands, and you can use any of them. If one doesn’t work on your system, the other one definitely will.
IP command
It gives information about the networking hardware of a system. It will contain information of all the interfaces available and have the MAC address next to the part saying ‘link/ether‘ for each interface.
ifconfig
Next, you can use the Swiss-Army knife of network interface tools, ifconfig to view your networking hardware information. Use this command:
The output is a little messier but has way more information. But just because it is more powerful and shows more information, doesn’t mean that its better. If you wish to find out the MAC address, and general information, the ip command is better in my opinion, because it shows more streamlined and to-the-point information.
In the output of ifconfig, you’ll find information categorized according to the interface. The MAC address, here too, is next to the word ‘ether‘ for various interfaces.
Changing MAC Address
Prerequisite
IMPORTANT:: Before changing the MAC address, you have to switch it off. To do that, you must first know the name of the network interface on your device. Use the same commands as above, ip or ifconfig, and you’ll get a list of network interfaces in both.
If its a wired connection, it will have the part ‘eth‘ or ‘enp‘ in the interface name. If wireless, it will have ‘wlan‘ or ‘wlp‘ in the name. The key element is ‘e’ for wired, and ‘w’ for wireless. For example, here:
‘enp1s0‘ means wired connection, and ‘wlp2so‘ means wireless connection.
Now, to turn it off, use this command:
If you do not have ifconfig installed, install it using:
sudo apt-get install net-tools
Now for the main task, a program that helps change the MAC address very quickly. The tool is called macchanger (the name says it all). Install it using:
sudo apt-get install macchanger
You will get a prompt asking whether you want to automatically reset the MAC address each time you connect/disconnect utilizing a network interface. Choose as you desire.
Changing the MAC address to a random value
To change the MAC address to a random value, use the following command:
Setting a random MAC address
The output will be shown, with the previous and the current MAC address.
Changing the MAC address to a specific value
To change it to a particular number, you must enter the command in the following format:
sudo macchanger -m xx:xx:xx:xx:xx:xx
Setting a specific MAC address
Enter whatever address that you desire instead of ‘xx:xx:xx:xx:xx: xx.’ make sure that the length and format are exact.
Restore original MAC address
To restore the original, or ‘permanent’ MAC address, use the following command:
Restoring original MAC address
It will change your MAC address to the original MAC address of your hardware.
Conclusion
That is all you will ever need to change your MAC address. Just as a caution, do not misuse this freedom that Linux provides you, to create a nuisance. You can be comparatively safer by changing your MAC address, but not invincible. Even after changing the MAC address, you must keep yourself secure on public networks.