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:XXUbuntu 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?
2 Answers
First run:
ip link showThis will list your network devices. Find the one you want to change. Next, run:
sudo ip link set dev <your device here> downThen:
sudo ip link set dev <your device here> address <your new mac address>Finally:
sudo ip link set dev <your device here> up 2 To change the MAC (Media Access Control) address of an eth0 network interface, use the following command with argument “hw ether“. For example, see below.
[root@tecmint ~]# ifconfig eth0 hw ether AA:BB:CC:DD:EE:FFuse this article, i hope this very helpfull for you!
1