xubuntu 13.10 and 14.04
I use wifi to connect to internet. I would like to change the wifi card mac address before connecting. Let's call the original mac address macA, and the new mac address macB.
I do the following:
ifconfig wlan0 down && ifconfig wlan0 hw ether <macB> && ifconfig wlan0 up
(I have also tried thiswith ip link set wlan0 address <macB> )
I check the new mac out:
ifconfig wlan0 | grep HW
It works: macB appears
But then when I connect to internet, this is macA which is taken into account (I can see it when editing connection in Network Manager) (tcpdump should confirm this but havent tried)
So I disconnect, I erase all connections in Network manager, I disable networking, I set up macB (as done previously), but the issue remains when re-connecting
Actually, I could figure out the system behaves like this:
when I change from macA to macB without connecting to internet, the system keeps macB (watch -n 1 'ifconfig wlan0 | grep HW')
as soon as I try to connect to internet, the system gets back to macA instantaneously!! (so what's the point to change the mac this way ? )
does the wifi spot refuse the mac and have the client recheck its mac, does the client itself do a check of the mac address before connection? (yes I know I should read the corresponding rfc, but somebody may know)
I tried to install macchanger (https://help.ubuntu.com/community/An...rkMACAddresses) but the package is unknown on my system. Actually I do not know how to include universe packages.
Furthermore, as explain in https://help.ubuntu.com/community/An...rkMACAddresses, using macchanger, you cannot control the vendor part of the mac address (which removes some privacy because it makes your mac "be quite conspicuous.". Instead doing it manually, you can control the vendor part, and put whatever you want in the rest of the address ....
thanx for your help folks !
Bookmarks