How to change mac address on ubuntu

You can change the Network Card Mac Address on Ubuntu and Linux Mint via GUI (graphic cal user interface) by going to the networking indicator on the top or bottom and select “Edit connection” to configure or create a new connection.

Next click “Add” and give a name to the new connection you want to create with the new spoofed MAC address.

Choose “eth0″ interface from the top dropdown, then you can change the default MAC address to another

Save that connection, and reconnect, you will be using the new MAC address.

To check the interface with new MAC address, you can use
$ ip link ls

You can also change mac address on ubuntu or linux mint via the terminal

Go to your ubuntu or linux mint terminal, edit /etc/network/interfaces file
$ sudo nano /etc/network/interfaces

You should see something like this with dhcp enabled for your network interface. Usually its eth0 for ubuntu or linux mint wired network and wlan0 for ubuntu or linux mint wireless network.
auto eth0iface eth0 inet dhcp

At the end of /etc/network/interfaces file, add this line to give your system’s network interface new MAC address.
hwaddress ether A4-19-E2-94-DD-BB

Save /etc/network/interfaces file with the new config, then restart your system network.
$ sudo /etc/init.d/networking restart
or
$ sudo service networking restart

Leave a Reply