How to change MAC address in Ubuntu permanantly

Hi all, i want to change my MAC address permanently in Ubuntu. Now, i can change it temporarily i.e each time i open my Ubuntu i have to change it. I change it in this way change-mac-address-in-ubuntu. But how can i change it permanently ?? plz help

Solution

curtlee2002's picture

I know this is late, but here is the answer. Maybe at least someone else can find the answer here.

Edit /etc/network/interfaces to look something like this for your eth0. Change eth0 to the nic you are working with.
"hwaddress ether 00:01:02:03:04:05" is the key to the mac change. Set it to the mac you are wanting.

auto eth0
iface eth0 inet dhcp
hwaddress ether 00:01:02:03:04:05

Good Luck...

there is a way

neothedm's picture

you use linux, right, if i understand correctly you want linux to take the new mac and use it every time you reboot your computer. well, if that what you want you can use the ifconfig or macchanger to write a script and put it here /etc/init.d/rc.local/SCRIPTNAME.sh.

and dont forget to change the mode to enable it to be executed.

and i think the problem will be solved

peace...

prem changes

Anonymous's picture

Can be writen or rewriten to the prom that holds it, but good luck finding that software, its hardware dependant. way easier to just buy a new card. that will change it permanently too.

MAC Address change

smalone314159's picture

I believe that MAC address is hard-wired into the NIC and can't be changed permanetly.

Webinar
One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Webinar
Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix