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.

Webcast
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers

Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.

Learn More

Sponsored by AMD

White Paper
Red Hat White Paper: Using an Open Source Framework to Catch the Bad Guy

Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6

Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.

Learn more about catching the bad guy in this free white paper.

Learn More

Sponsored by DLT Solutions