LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Change mac address for wlan0 without using macchanger software? (https://www.linuxquestions.org/questions/linux-hardware-18/change-mac-address-for-wlan0-without-using-macchanger-software-4175552781/)

VolkHe 09-06-2015 06:38 PM

Change mac address for wlan0 without using macchanger software?
 
I was not sure if this is the correct subforum or it would be better suited in Networking section, please move mods and sorry if incorrect.

Question
I have running Raspbian on my Raspberry Pi

I have two usb wifi dongles that both work and connect to my router when testing.

- Edimax EW-7811UN
- Adafruit Miniature WiFi (802.11b/g/n)

However when I try to change the Mac Address's of either of these usb devices when only one is plugged in and in use at one time I cannot do it as the effects seem to not take place.

I have tried using cmd
Code:

    ifconfig wlan0 down
    ifconfig wlan0 hw ether 00:00:11:11:00:00
    ifconfig wlan0 up

and also editing /etc/network/interfaces file wlan0 entry
Code:

    iface wlan0 inet static
            hwaddress ether 01:01:01:01:01:01
            address 192.168.1.100
            netmask 255.255.255.0




After doing this and running ifconfig I can see that either of the two USB'S device has the same MAC.

I have also tried rebooting the device but the mac address is the same.

I have heard there is a package called macchanger but I would like to do this without it, how could I go about doing this?

mpapet 09-06-2015 10:26 PM

Not all network interfaces support altering the MAC address.

VolkHe 09-08-2015 08:47 AM

Quote:

Originally Posted by mpapet (Post 5416856)
Not all network interfaces support altering the MAC address.

Thats true, but both of these adapaters can have there mac changed with other distros, including windows too...


All times are GMT -5. The time now is 08:53 PM.