13

Usually I would be able to change my wifi mac address with the ifconfig command like :

ifconfig <iface> hw ether XX:XX:XX:XX:XX:XX

Ubuntu have however deprecated ifconfig in behalf of the "ip" command, so I was wondering if there is an way to get similar functionality using that command?

kimusan
  • 281

1 Answers1

22

First run:

ip link show

This will list your network devices. Find the one you want to change. Next, run:

sudo ip link set dev <your device here> down

Then:

sudo ip link set dev <your device here> address <your new mac address>

Finally:

sudo ip link set dev <your device here> up
hiigaran
  • 6,843