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.

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState