How to change MAC address on Linux Ubuntu. You can easily change MAC address using Terminal commands (CLI) or Network Manager on Ubuntu 15.04, Ubuntu 14.04 and Derivatives.
The most easy way to change MAC address on Linux Ubuntu Systems is via Mac Changer Software. Mac Changer is an open-source tool for viewing and changing the MAC address of the network interface card on Linux Systems. The software also permits other MAC functions.
Here’s how to install and use Mac Changer 1.7.0 on Linux Ubuntu Systems. To install, run the following commands in Terminal:
$ sudo add-apt-repository ppa:pi-rho/security
$ sudo apt-get update
$ sudo apt-get install macchanger
The Mac Changer software can be started form Ubuntu Dash or via Terminal. Once open, you can set the network interface down first and then set the new MAC address. To do so, run the following commands:
$ sudo ifconfig eth0 down
$ sudo macchager -m AA:BB:CC:DD:EE:FF eth0
$ sudo ifconfig eth0 up
Assume the MAC address to be (AA:BB:CC:DD:EE:FF). If you wish to uninstall and remove the software, run the following command:
$ sudo apt-get remove macchanger
There is another method to change the MAC address, using GUI or the NetworkManager Indicator Menu.
- Open the Network Manager Indicator Menu and select “Edit Connections”
- Select the Internet Connection and then click “Edit”
- Under the “Ethernet” tab option, change the MAC address
- Click “Save” to confirm and exit the app
- Restart the network manager