Can't change MAC addres - ndiswrapper
Hi there..
I have successfully installed ndiswrapper v1.46 but, i can't change MAC address of my wireless card.First i tried to put NetworkAddress|0016E5BAFE82 in the config file,then 'modprobe -r ndiswrapper' and 'modprbe ndiswrapper'.This is the output of ifconfig Code:
wlan0 Link encap:Ethernet HWaddr 00:13:«»D4:«»D1:EE:62< my original MAC address Also, ifconfig wlan0 hw ether 00:00:00:00:00:01, for example, not work,the same ouput i got again... from dmesg Code:
ndiswrapper: using IRQ 10 |
To use ifconfig to change it, i think you have to bring the device down, then back up. eg.
Code:
ifconfig wlan0 hw ether <mac> down && ifconfig wlan0 up |
Quote:
|
Hello. I don't know if this will help or not but I googled the error message your dmesg log shows (the power management comment) and found a somewhat similar error from an Ubunutu Linux user on one of their forums. There was a pretty step-by-step helpful post that may help you some (there may be some differences (mainly where some files are located, from what I've seen playing with Debian-based distros in the past) but the bulk of the info should be relevant and hopefully helpful).
Here is the site address for the forum and the specific post I found. http--ubuntuforums.org/archive/index.php/t-9454.html (had to hack the colon,slash,slash b/c I need to post here more to be able to put URL's in my posts - sorry forgot my old user name and created this one to replace it... *g*) |
Mac address changing has been broken in ndiswrapper for a long time. I use version 1.28. This version doesn't work with recent kernels, though.
I am using Debian Testing. Kernel 2.6.18-5 (latest Etch kernel). Ndiswrapper 1.28. And mac address changing works. Make sure you include the colons in the NetworkAddress line. |
first of all...
...I want to thank you for the question. It seems that every time I am at a point where I want to do something in Linux, I find that someone else has asked the question. I wanted to spoof my MAC address, just to say I could...so I started reading here, went to the ndiswrapper home page, and I did a quick RTFM. It is there I found this tidbit...
Quote:
Both machines are running ndiswrapper 1.47, wpa_supplicant-0.5.8, and Slackware-12. I compiled both ndiswrapper and wpa_supplicant from source. Since you don't mention whether you are using the Debian pre-compiled version (according to the Debian site, there are five different ndiswrapper packages available), or the source version, it is hard to tell whether your problem is related to missing a needed file from one of those packages, or something else entirely. My strong suggestion is to get ndiswrapper version 1.47 as source. Don't try 1.48 unless you have kernel version 2.6.23.x. It locked both my machines. Compile it, and continue to use the .conf file you have been using. For your edification, here is the .conf file I use for this machine. It definitely works! Code:
NdisVersion|0x50001 Blessed be! Pappy |
ndiswrapper fixed some MAC address changing bugs.
How is this going for you? Have you got it to work, yet? Like I said earlier, mac address changing had been broken in ndiswrapper for a long time.
The good news is that ndiswrapper fixed some mac address related bugs in version 1.50. 1.50 works for me. Maybe it will work for you, too. |
Take a look at the 3rd post here:
|
The key step to changing the MAC address is to first bring your card down: "ifconfig wlan0 down". Then, use whatever method you find most convenient:
Code:
ifconfig wlan0 hw ether M:A:C:A:D:D:R:E:S:S:X:X && ifconfig wlan0 up Code:
ifconfig wlan0 down && macchanger -a wlan0 && ifconfig wlan0 up Of course, with ndiswrapper, for a permanent alternate MAC address there is an additional step of adding the desired MAC address to the ndiswrapper driver configuration file & since it's been over 10 years since I've used the ndiswrapper utility, the details are a little foggy to me. ~A~ |
All times are GMT -5. The time now is 02:14 AM. |