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


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/

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

and i think the problem will be solved


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.